IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python function

auto_cast_weights_from_env

auto_cast_weights_from_env()

max.pipelines.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