pymllm.configs.model_config¶
Lightweight model configuration: path + HuggingFace config handle.
Classes¶
Minimal model config wrapping a HuggingFace PretrainedConfig. |
Module Contents¶
- class pymllm.configs.model_config.ModelConfig¶
Minimal model config wrapping a HuggingFace PretrainedConfig.
Attributes on
hf_configare flattened onto this object:cfg = get_global_config().model cfg.hidden_size # -> hf_config.hidden_size cfg.vocab_size # -> hf_config.vocab_size cfg.text_config # -> hf_config.text_config (multimodal)
- hf_config: Any | None = None¶
- __getattr__(name)¶
- Parameters:
name (str)
- Return type:
Any