MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / SamplingConfig

Class SamplingConfig

deepspeed/runtime/rollout/base.py:28–36  ·  view source on GitHub ↗

Sampling knobs that the trainer passes to ``generate`` each step.

Source from the content-addressed store, hash-verified

26
27@dataclass
28class 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

Calls

no outgoing calls