MCPcopy Create free account
hub / github.com/MiniMax-AI/MiniMax-01 / check_params

Function check_params

inference/minimax-text-01.py:34–38  ·  view source on GitHub ↗
(args, hf_config: AutoConfig)

Source from the content-addressed store, hash-verified

32
33
34def check_params(args, hf_config: AutoConfig):
35 if args.quant_type == "int8":
36 assert args.world_size >= 8, "int8 weight-only quantization requires at least 8 GPUs"
37
38 assert hf_config.num_hidden_layers % args.world_size == 0, f"num_hidden_layers({hf_config.num_hidden_layers}) must be divisible by world_size({args.world_size})"
39
40
41@torch.no_grad()

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected