Add minimal quantization config to correct Hub parameter count

#3
by burtenshaw HF Staff - opened

Summary

Add the minimal top-level quantization metadata in config.json so the Hub reports approximately 594.05B parameters.

+  "quantization_config": {
+    "quant_method": "modelopt",
+    "quant_algo": "MXFP8"
+  }

The Hub's ModelOpt counting rules exclude the U8 *_weight_scale tensors (18,345,885,696 elements), while counting F8_E4M3 weights once.

Evidence

Ran computeNumOfParamsByDtypeSingleFile from @huggingface/hub@2.17.10 against the real safetensors headers of all 48 shards, pinned to 086a047e8b7ff2ac902dd52355328ddb66b16914. No weight payloads were downloaded.

  • Before: 612,396,527,616 parameters; exactly matches the current Hub count.
  • After: 594,050,641,920 parameters (594.05B).

Checked that the JSON is valid and this block is the only semantic change.

Merge Danger

Door: two-way β€” remove this block to revert.

Blast Radius: config

This validates Hub parameter counting only. Transformers/vLLM inference loading has not been validated. The current Transformers auto-quantizer registry does not register modelopt; maintainers should confirm the Inkling2 loading path accepts this metadata before merging.

Thinking Machines Lab org

Thank you!

aurick changed pull request status to merged

Sign up or log in to comment