MCPcopy Create free account
hub / github.com/MARIO-Math-Reasoning/Super_MARIO / validate_config

Method validate_config

mcts_math/react_batch.py:42–46  ·  view source on GitHub ↗
(cls, cfg: Any)

Source from the content-addressed store, hash-verified

40
41 @field_validator("config")
42 def validate_config(cls, cfg: Any):
43 if issubclass(type(cfg), DictConfig):
44 return cfg
45
46 raise TypeError("Wrong type for `config`, must be subclass of BaseConfig")
47
48 def create_llm(self):
49 GPUS = os.environ.get('CUDA_VISIBLE_DEVICES', "0").split(',')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected