alt.freeweights.phi / Phi-3.5-mini-instruct-onnx
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject:

Phi-3.5-mini-instruct-onnx

Date: 2026-11-15Commit: 7230dcdSigned: 2DC28CC7B26A283B ✓

Text generation model. Onnx weights, 5.10 GB in all. Published by microsoft under MIT.

phi5.10GBPhi-3.5-mini-instruct-onnxonnxpermissive
FactsParamsnot statedSize5.10 GBFormatsonnxTasktext generationLicenseMITFrom sourcepermissive
$ fw get microsoft/Phi-3.5-mini-instruct-onnx
# manifest sha256 1c61a053a04e… · 5.10 GB · 22 files
$ fw verify ./Phi-3.5-mini-instruct-onnx microsoft/Phi-3.5-mini-instruct-onnx
From sourceHosted (signed)microsoft/Phi-3.5-mini-instruct-onnxLast check: 2026-11-15 03:46 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Overview

Size
5.10 GB
Weights
26.2 MB (smallest of 2 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text generation
License
MIT (permissive)
Files
22, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.phi
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:46 UTCpassed

Model card

From the publisher at commit 7230dcd. Shown as plain text with links; images open at the publisher.

Phi-3.5-Mini-Instruct ONNX models#

This repository hosts the optimized versions of Phi-3.5-mini-instruct to accelerate inference with ONNX Runtime.

Optimized Phi-3.5 Mini models are published here in ONNX format to run with ONNX Runtime on CPU and GPU across devices, including server platforms, Windows, Linux and Mac desktops, and mobile CPUs, with the precision best suited to each of these targets.

To easily get started with Phi-3.5, you can use our newly introduced ONNX Runtime Generate() API. See here for instructions on how to run it.

ONNX Models#

Here are some of the optimized configurations we have added:

  1. ONNX model for INT4 CPU: ONNX model for CPUs using int4 quantization via AWQ.
  2. ONNX model for INT4 GPU: ONNX model for GPUs using int4 quantization via AWQ.

Model Summary#

Phi-3.5 mini is a lightweight, state-of-the-art open model built upon datasets used for Phi-3 - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data. The model belongs to the Phi-3 model family and supports 128K token context length. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning, proximal policy optimization, and direct preference optimization to ensure precise instruction adherence and robust safety measures.

Intended Uses#

The Phi 3.5 mini model is intended for commercial and research use in multiple languages. The model provides uses for general purpose AI systems and applications which require:

  1. Memory/compute constrained environments
  2. Latency bound scenarios
  3. Strong reasoning (especially code, math and logic)

Use Case Considerations#

Phi 3.5 models are not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fariness before using within a specific downstream use case, particularly for high risk scenarios. Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case.

Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.

Release Notes#

This is an update over the instruction-tuned Phi-3 Mini ONNX model release. We believe most use cases will benefit from this release, but we encourage users to test their particular AI applications. We appreciate the enthusiastic adoption of the Phi-3 model family and continue to welcome all feedback from the community.

What’s New (2026-02)#

This update introduces an improved INT4 GPU ONNX model that incorporates quantization-aware fine-tuning (QAT) on top of the existing quantization pipeline.

Benchmark Accuracy Improvements (INT4 GPU)#
Benchmark GroupRepresentative TasksAvg Improvement
Knowledge & QATriviaQA, CommonSenseQA, OpenBookQA+3 to +10 pts
ReasoningARC-Easy, ARC-Challenge+0.6 to +4.2 pts
CommonsensePIQA, Winogrande+0.5 to +1.0 pts
Broad CoverageMMLU (overall)−0.5 pts

The table above provides a high-level summary of observed accuracy deltas across benchmark categories compared to the old INT4 GPU model. The QAT-tuned INT4 GPU model improves performance on the majority of downstream reasoning and QA benchmarks, with a small regression on broad-coverage evaluation.

Generation Stability (EOS Behavior)#
ModelEOS Non-Emission Rate
Torch baseline6%
Previous INT4 GPU ONNX model52%
Updated QAT INT4 GPU ONNX model11%

The updated model reduces EOS non-emission by approximately 5× compared to the previous INT4 GPU ONNX release, as observed across a large set of randomly generated prompts, resulting in more reliable sequence termination and generation behavior closer to the Torch baseline.

Hardware Supported#

The ONNX models are tested on:

  • GPU SKU: RTX 4090 (DirectML)
  • GPU SKU: 1 A100 80GB GPU, SKU: Standard_ND96amsr_A100_v4 (CUDA)
  • CPU SKU: Standard D16s v6 (16 vcpus, 64 GiB memory)
  • AMD CPU: Internal_D64as_v5

Minimum Configuration Required:

  • Windows: DirectX 12-capable GPU and a minimum of 4GB of combined RAM
  • CUDA: NVIDIA GPU with Compute Capability >= 7.0

Model Description#

  • Developed by: Microsoft
  • Model type: ONNX
  • Language(s) (NLP): Python, C, C++
  • License: MIT
  • Model Description: This is a conversion of the Phi-3.5 Mini-Instruct model for ONNX Runtime inference.

How to Get Started with the Model#

To make running of the Phi-3.5 models across a range of devices and platforms across various execution provider backends possible, we introduce a new API to wrap several aspects of generative AI inferencing. This API make it easy to drag and drop LLMs straight into your app. For running the early version of these models with ONNX Runtime, follow the steps here.

For example:

python model-qa.py -m /*{YourModelPath}*/Phi-3.5-mini-instruct-onnx/cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4 -k 40 -p 0.95 -t 0.8 -r 1.0
*Input:*  <|user|>Tell me a joke<|end|><|assistant|>

*Output:*  Why don't scientists trust atoms?
           Because they make up everything!

This joke plays on the double meaning of "make up." In science, atoms are the fundamental building blocks of matter, literally making up everything. However, in a colloquial sense, "to make up" can mean to fabricate or lie, hence the humor.

Performance Metrics#

Phi-3.5 Mini-Instruct performs better in ONNX Runtime than PyTorch for all batch size, prompt length combinations.

The table below shows the average throughput of the first 256 tokens generated (tps) for FP16 and INT4 precisions on CUDA as measured on 1 A100 80GB GPU, SKU: Standard_ND96amsr_A100_v4. ONNX Runtime models for GPU are 21X faster than PyTorch Compile and up to 8X faster than llama.cpp on A100 GPU.

Batch Size, Sequence LengthONNX RT INT4PyTorch Eager INT4PyTorch Compile INT4Llama.cpp INT4INT4 SpeedUp ORT/PyTorch EagerINT4 SpeedUp ORT/PyTorch CompileINT4 SpeedUp ORT/Llama.cpp
1, 16238.9717.7511.36183.1713.4621.041.30
1, 64233.7417.7411.32182.7713.1720.651.28
1, 256208.5217.8211.34182.1511.7018.381.14
1, 1024174.1917.8511.36166.399.7615.341.05
1, 2048146.1017.9611.35153.508.1412.870.95
1, 3840112.6817.9111.34141.536.299.940.80
4, 16286.7360.9040.89180.824.717.011.59
4, 64282.8760.8841.03177.694.656.891.59
4, 256268.3060.8540.90166.344.416.561.61
4, 1024223.3060.8640.90133.393.675.461.67
4, 2048187.6260.8040.93106.033.094.581.77
4, 3840145.5955.9640.8878.122.603.561.86
8, 16541.04121.9281.96171.904.446.603.15
8, 64532.68121.8781.98166.334.376.503.20
8, 256480.00122.0681.80148.073.935.873.24
8, 1024360.60122.4881.59103.582.944.423.48
8, 2048274.16105.9281.7174.012.593.363.70
8, 3840192.5079.7481.5049.232.412.363.91
16, 161007.69244.16163.09156.994.136.186.42
16, 64966.42244.89163.26148.233.955.926.52
16, 256827.37244.84163.23121.853.385.076.79
16, 1024536.73209.13169.3071.572.573.177.50
16, 2048375.31153.95158.7745.972.442.368.16
16, 3840243.66OOMOOM28.338.60
Batch Size, Sequence LengthONNX RT FP16PyTorch Eager FP16PyTorch Compile FP16Llama.cppFP16 SpeedUp ORT/PyTorch EagerFP16 SpeedUp ORT/PyTorch CompileFP16 SpeedUp ORT/Llama.cpp
1, 16137.3026.0226.83125.865.285.121.09
1, 64135.7926.0126.48125.755.225.131.08
1, 256127.9226.1726.61125.244.894.811.02
1, 1024114.0826.1126.63117.974.374.280.97
1, 2048101.6817.7721.05111.085.724.830.92
1, 384084.9425.1726.77104.883.373.170.81
4, 16529.0799.47100.22124.635.325.284.25
4, 64513.8599.47100.54123.205.175.114.17
4, 256466.5699.21100.22117.614.704.663.97
4, 1024352.0699.56100.50100.423.543.503.51
4, 2048271.0270.1273.6683.953.863.683.23
4, 3840191.3674.3579.6865.512.572.402.92
8, 16936.46198.99212.40120.244.714.417.79
8, 64926.83200.28213.97117.774.634.337.87
8, 256783.95200.66214.88108.333.913.657.24
8, 1024511.96183.10201.0182.522.802.556.20
8, 2048352.8696.99122.1062.413.642.895.65
8, 3840228.9796.81101.6043.892.372.255.22
16, 161675.72396.52422.13112.784.233.9714.86
16, 641591.61395.66422.47108.364.023.7714.69
16, 2561249.94399.30429.1093.683.132.9113.34
16, 1024685.63270.99292.2460.662.532.3511.30
16, 2048441.15121.17162.9341.303.642.7110.68
16, 3840270.38OOMOOM26.500.000.0010.20

The table below shows the average throughput of the first 256 tokens generated (tps) for INT4 precision on CPU as measured on a Standard D16s v6 (16 vcpus, 64 GiB memory)

Batch Size, Sequence LengthORT INT4 AWQLlama.cpp INT4INT4 AWQ SpeedUp Llama.cpp
1, 1641.9926.721.57
1, 6441.8126.671.57
1, 25641.2626.301.57
1, 102437.1524.021.55
1, 204832.6821.821.50

Package Versions#

Pip package nameVersion
torch2.4.1
triton3.0.0
onnxruntime-gpu1.20.1
onnxruntime-genai0.5.2
onnxruntime-genai-cuda0.5.2
onnxruntime-genai-directml0.5.2
transformers4.44.2
llama.cppbdf314f38a2c90e18285f7d7067e8d736a14000a

Appendix#

Activation Aware Quantization (AWQ) works by identifying the top 1% most salient weights that are most important for maintaining accuracy and quantizing the remaining 99% of weights. This leads to less accuracy loss from quantization compared to many other quantization techniques. For more on AWQ, see here.

Model Card Contact#

parinitarahi

Contributors#

Sunghoon Choi, Yufeng Li, Kunal Vaishnavi, Akshay Sonawane, Rui Ren, Parinita Rahi, Nenad Banfic

License#

The model is licensed under the MIT license.

Trademarks#

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Files

22 files · 5.10 GBWeights 26.2 MB (smallest of 2 ONNX variants). Sizes and sha256 from the signed manifest.
Show all 22 files with their sha256
FileSizesha256
.gitattributes1.57 KB1403a1a07764f40b81196144fc294c8daff49cbc0f1d0a79fcfbf5e35a027311
LICENSE1.08 KBfa8235e5b48faca34e3ca98cf4f694ef08bd216d28b58071a1f85b1d50cb814d
README.md12.2 KBf0376b376200ad6fb2f6e7c7f9ef5546c1b530b599707779e1db84eb62dff374
config.json3.45 KB224de4f6a15b9d2a89695ec04b7f7ab2dd93a008a506979925e5a88cb5804974
configuration_phi3.py11.2 KBd25f57c0823fcb9753880a25e79ab562b039d6187102ac13e4ff26dd11e9a81c
cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4/config.json3.45 KB224de4f6a15b9d2a89695ec04b7f7ab2dd93a008a506979925e5a88cb5804974
cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4/configuration_phi3.py11.2 KBd25f57c0823fcb9753880a25e79ab562b039d6187102ac13e4ff26dd11e9a81c
cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4/genai_config.json1.58 KBd1036a44e904c816c864931b961483eccf18e985dbd6797eecb33e01b626f580
cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4/phi-3.5-mini-instruct-cpu-int4-awq-block-128-acc-level-4.onnx52.2 MBc4f05e6ef52f2588df181e566afbf5e8eeba097fece2fc8246770473a10225fd
cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4/phi-3.5-mini-instruct-cpu-int4-awq-block-128-acc-level-4.onnx.data2.73 GB3351fe9cc669eba43e07fb3cec436078629d5145531a28bc36fe6d5ad7683eb8
cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4/special_tokens_map.json569 B474d699677e264edd3851559548cbbb61801ad8da6b249c81455007602313c34
cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4/tokenizer.json1.84 MBd0f067e1e15cd0a36ebef3668024882cb67a80b86fb4b7b4b128481f0d474db7
cpu_and_mobile/cpu-int4-awq-block-128-acc-level-4/tokenizer_config.json3.36 KBa12badd3fb56adb29bc7cfe03cf6fa7e3e19dd3d7602b85ce6ed63d424f5f222
gpu/gpu-int4-awq-block-128/chat_template.jinja430 B78d976a442bcde2f0be15aafbb8e3050e1104f86732266f68403251b89982a90
gpu/gpu-int4-awq-block-128/config.json3.45 KB224de4f6a15b9d2a89695ec04b7f7ab2dd93a008a506979925e5a88cb5804974
gpu/gpu-int4-awq-block-128/configuration_phi3.py11.2 KBd25f57c0823fcb9753880a25e79ab562b039d6187102ac13e4ff26dd11e9a81c
gpu/gpu-int4-awq-block-128/genai_config.json1.53 KB4c54a6aa89532decf72fce0dae51b770a001d41bc32c31f5a39ba6f7b8662c1f
gpu/gpu-int4-awq-block-128/model.onnx26.2 MBc022f639a6db4f0da6308e2f578fc698ac59c19a1976daee77783845c0807ee7
gpu/gpu-int4-awq-block-128/model.onnx.data2.29 GBa515261766fe96490c65f4ed9ebd2b07206d77dc90e7a6422a807cce4ccc84e8
gpu/gpu-int4-awq-block-128/special_tokens_map.json569 B474d699677e264edd3851559548cbbb61801ad8da6b249c81455007602313c34
gpu/gpu-int4-awq-block-128/tokenizer.json3.62 MB3cb815b904d82b82b25dcd90edd00e71a5ee5443472ad611bcb84f1339300647
gpu/gpu-int4-awq-block-128/tokenizer_config.json2.93 KB78f1699f672ba5c8c958fa9f69040560a0310967db88fcba80746d299738f13c
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7230dcd6c1 pinned now2026-11-15 03:46 UTC22 files · 5.10 GB

Use it

$ fw get microsoft/Phi-3.5-mini-instruct-onnx
# manifest sha256 1c61a053a04e… · 5.10 GB · 22 files
$ fw verify ./Phi-3.5-mini-instruct-onnx microsoft/Phi-3.5-mini-instruct-onnx
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/Phi-3.5-mini-instruct-onnx.json --dir ./Phi-3.5-mini-instruct-onnx $ python3 fw.py verify ./Phi-3.5-mini-instruct-onnx ./microsoft__Phi-3.5-mini-instruct-onnx.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-3.5-mini-instruct-onnx --revision 7230dcd6c1dd28aab70f263ecc8734ec9d9bcb70 --local-dir ./Phi-3.5-mini-instruct-onnx

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
LICENSE
Text sha256
fa8235e5b48faca34e3ca98cf4f694ef08bd216d28b58071a1f85b1d50cb814d
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject: Phi-3.5-mini-instruct-onnxDate: 2026-11-15Commit: 7230dcdSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/Phi-3.5-mini-instruct-onnx
Pinned commit
7230dcd6c1dd28aab70f263ecc8734ec9d9bcb70
Manifest
Phi-3.5-mini-instruct-onnx.json · .minisig
Manifest sha256
1c61a053a04e1cbef9ad2374f137f95fb0c97413ac5e1c55d1e37bd3ba23af67
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:46 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-3.5-mini-instruct-onnx.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-3.5-mini-instruct-onnx.json.minisig $ minisign -Vm Phi-3.5-mini-instruct-onnx.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-3.5-mini-instruct-onnx
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Phi-3.5-mini-instruct-onnx.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: bunny-phi-2-siglip-lora
From: microsoft <huggingface.co/microsoft>Subject: MediPhi
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Clinical
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Guidelines
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Instruct
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-MedCode