CoolFace
Modelpublic

simaai/Phi-4-mini-instruct-Autoround-Safetensors

sourceHugging Facemitupdated 26d agoView on Hugging Face
0likes186downloads
Model Card

Phi-4-mini-instruct Autoround

This is a post-training quantized version of `microsoft/Phi-4-mini-instruct`, prepared as a Hugging Face checkpoint for LLiMa compilation and deployment on Sima.ai hardware.

This checkpoint remains subject to the source model's license, intended-use guidance, and limitations.

Quantization

ComponentMethodWeight formatDetails
Decoder Linear layersAutoRoundsymmetric INT4, G256lm_head excluded; 200 iterations; batch size 1
lm_headGPTQsymmetric INT8, per-channelstatic act-order
Mixed-precision exceptions—source dtypenon-Linear parameters remain at source precision

Calibration used HuggingFaceH4/ultrachat_200k, split train_sft[:512]. Conversations were rendered with the source chat template and packed into 512 sequences of 1,024 tokens without shuffling.

Evaluation

Full wikitext-2-raw-v1 evaluation used the wikitext lm-eval task with no example limit and matched source/quantized settings on 2026-07-31.

CheckpointWord perplexityStatus
microsoft/Phi-4-mini-instruct11.713516Full run
This quantized checkpoint12.560528Full run
Absolute degradation0.847012Lower is better
Relative degradation7.231%100 * (quantized / source - 1)

Finite-scale validation and a Transformers chat-generation smoke test passed.

Reproduction

This directory includes the model-specific quantize.py, recipe.yaml, and versions.txt.

bash
python quantize.py \
  --model-path /path/to/models--microsoft--Phi-4-mini-instruct \
  --output-dir /path/to/Phi-4-mini-instruct-Autoround-Safetensors

Environment

Exact Python, CUDA, Torch, Transformers, llmcompressor, AutoRound, and compressed-tensors versions are recorded in versions.txt.

Deployment

This is the pre-LLiMa quantized Hugging Face artifact. Compile it separately for the target Sima.ai platform and keep compiler output separate.

Limitations

Quantization quality can vary by language, domain, prompt format, context length, and deployment runtime. Validate the intended workload independently.