mstar.utils.generation_kwargs#
The client-facing generation knobs, checked once where every endpoint submits.
One meaning per knob on every model: null is the
same as leaving the key out, types are strict (no "0.7"), and a value out of
range is a ValueError (a 400) before any worker sees the request. A
multi-stage model’s <stage>_<knob> (talker_temperature) follows the
rule for <knob>.
Functions
|
Raise |
|
|
- mstar.utils.generation_kwargs.check_seed(seed)[source]#
Raise
ValueErrorunlessseedis None or an integer that fits in int64.int64 is the widest seed a sampler can store or pass to
manual_seed, and past it the request cannot even be packed for the conductor.- Return type:
None