mstar.utils.generation_kwargs#
The client-facing generation knobs, sampling and output geometry, checked once where every endpoint submits.
One meaning per knob on every model: null is the
same as leaving the key out, a value is coerced to the knob’s type only when it
denotes exactly that value ("0.7", "5", 5.0 for an integer; never a
bool), 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