modosaic.core.hf_model_spec¶
modosaic.core.hf_model_spec ¶
HFModelSpec
dataclass
¶
HFModelSpec(model_id, revision, dtype, trust_remote_code=True)
Hugging Face model loading metadata.
Attributes:
| Name | Type | Description |
|---|---|---|
model_id |
str
|
Repository identifier passed to Hugging Face loaders. |
revision |
str
|
Revision, tag, or commit to load. |
dtype |
dtype
|
Torch dtype used for model weights. |
trust_remote_code |
bool
|
Whether to allow custom model code from the repo. |