Skip to content

Commit bc04265

Browse files
authored
Merge pull request #197 from pytorch-labs/sdym/tasks
Fix docstring args names
2 parents 091515a + 80a8fb4 commit bc04265

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def eval(
165165
Args:
166166
model (Transformer): The pre-trained language model to evaluate.
167167
tokenizer: The tokenizer to use for encoding/decoding text.
168-
task (str): The name of the evaluation task to perform.
168+
tasks (list): The names of the evaluation tasks to perform.
169169
limit (Optional[int]): The maximum number of samples to evaluate (None for all available).
170170
max_seq_length (Optional[int]): The maximum sequence length allowed for input text.
171171
@@ -208,7 +208,7 @@ def main(
208208
Args:
209209
checkpoint_path (Path): The path to the model checkpoint file to load.
210210
compile (bool): Whether or not to compile the model for optimization.
211-
task (Optional[str]): The name of the evaluation task or a list of tasks to perform.
211+
tasks (list): The names of the evaluation tasks to perform.
212212
limit (Optional[int]): The maximum number of samples to evaluate (None for all available).
213213
max_seq_length (Optional[int]): The maximum sequence length allowed for input text.
214214

0 commit comments

Comments
 (0)