MCPcopy Create free account
hub / github.com/AI-Hypercomputer/maxtext / _validate_config

Function _validate_config

src/MaxText/inference/scripts/decode_multi.py:32–40  ·  view source on GitHub ↗

Validate configuration settings.

(config)

Source from the content-addressed store, hash-verified

30
31
32def _validate_config(config):
33 """Validate configuration settings."""
34 assert config.load_full_state_path == "", (
35 "Decode doesn't operate on full states! Convert to parameter checkpoint first."
36 "Using generate_param_only_checkpoint."
37 )
38 assert (
39 0 < _INITIAL_PREFILL_STREAMS <= _NUM_STREAMS
40 ), f"_INITIAL_PREFILL_STREAMS ({_INITIAL_PREFILL_STREAMS}) must be > 0 and <= _NUM_STREAMS ({_NUM_STREAMS})"
41
42
43def main(argv: Sequence[str]) -> None:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected