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

Function validate_config

src/MaxText/train_compile.py:54–59  ·  view source on GitHub ↗

Validates the config is is setup correctly to compile, returning a useful error message if not.

(config)

Source from the content-addressed store, hash-verified

52
53
54def validate_config(config):
55 """Validates the config is is setup correctly to compile, returning a useful error message if not."""
56 assert (
57 config.compile_topology != ""
58 ), "You must pass your desired target hardware in compile_topology, e.g. compile_topology=v5e-256"
59 assert config.compile_topology_num_slices > 0, "You must set compile_topology_num_slices to a positive integer"
60
61
62def get_topology_mesh(config):

Callers 4

mainFunction · 0.90
is_oomFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by 1