Huggingface.js documentation
Interface: ModelConfig
Interface: ModelConfig
Properties
expert _ dtype
• Optional expert_dtype: string
Some MoEs store their experts at a narrower precision than the rest of the model and declare
it here, outside quantization_config (e.g. DeepSeek-V4). Used as a fallback when the
quantization config does not declare its own expert_dtype (as DeepSeek-V4.1 does).
Defined in
packages/hub/src/lib/parse-safetensors-metadata.ts:726
quantization
• Optional quantization: MlxQuantizationConfig
Current MLX format, optionally with per-module overrides keyed by module name.
Defined in
packages/hub/src/lib/parse-safetensors-metadata.ts:718
quantization _ config
• Optional quantization_config: MlxQuantizationConfig | QuantizationConfig
Defined in
packages/hub/src/lib/parse-safetensors-metadata.ts:719
text _ config
• Optional text_config: Pick<ModelConfig, "expert_dtype" | "quantization" | "quantization_config">
Defined in
packages/hub/src/lib/parse-safetensors-metadata.ts:720
Update on GitHub