You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nemo_rl/models/generation/interfaces.py
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,22 @@ class ColocationConfig(TypedDict):
116
116
117
117
118
118
classGenerationConfig(TypedDict):
119
-
"""Configuration for generation."""
119
+
"""Configuration for generation.
120
+
121
+
Args:
122
+
backend: The backend to use for generation.
123
+
max_new_tokens: The maximum number of tokens to generate.
124
+
temperature: The temperature for sampling.
125
+
top_p: The top-p sampling parameter.
126
+
top_k: The top-k sampling parameter.
127
+
model_name: The name of the model.
128
+
stop_token_ids: The list of token IDs to stop generation.
129
+
stop_strings: The list of strings to stop generation.
130
+
ignore_eos: Whether to ignore the EOS token. This is only used for performance benchmarking purposes.
131
+
output_len_or_output_len_generator: An integer or a dictionary with keys 'mean' and 'std' for the normal distribution that samples the output length. This is only used for performance benchmarking purposes.
132
+
colocated: The configuration for colocated generation.
0 commit comments