Sampling knobs that the trainer passes to ``generate`` each step.
| 26 | |
| 27 | @dataclass |
| 28 | class SamplingConfig: |
| 29 | """Sampling knobs that the trainer passes to ``generate`` each step.""" |
| 30 | |
| 31 | max_new_tokens: int |
| 32 | temperature: float = 1.0 |
| 33 | top_p: float = 1.0 |
| 34 | top_k: int = -1 |
| 35 | n_samples_per_prompt: int = 1 |
| 36 | continuous_batch_size: Optional[int] = None |
| 37 | |
| 38 | |
| 39 | @dataclass |
no outgoing calls