Skip to main content

Python function

auto_cast_weights_from_env

auto_cast_weights_from_env()

max.pipelines.modeling.weights.auto_cast_weights_from_env()

source

Returns the pipeline default for Module auto-cast, read from env.

Reads MODULAR_AUTO_CAST_WEIGHTS; defaults to True when unset. Accepted values are true/false/1/0/yes/no/ on/off (case-insensitive). Any other value raises ValueError so a typo surfaces immediately rather than silently falling back to a default.

Return type:

bool