alt.freeweights.phi / Phi-4-reasoning-plus-onnx
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject:

Phi-4-reasoning-plus-onnx

Date: 2026-11-15Commit: 8646193Signed: 2DC28CC7B26A283B ✓

Model. Onnx weights, 27.9 GB in all. Published by microsoft under MIT.

phi27.9GBPhi-4-reasoning-plus-onnxonnxpermissive
FactsParamsnot statedSize27.9 GBFormatsonnxTasknot taggedLicenseMITFrom sourcepermissive
$ fw get microsoft/Phi-4-reasoning-plus-onnx
# manifest sha256 041704bccd0d… · 27.9 GB · 45 files
$ fw verify ./Phi-4-reasoning-plus-onnx microsoft/Phi-4-reasoning-plus-onnx
From sourceHosted (signed)microsoft/Phi-4-reasoning-plus-onnxLast check: 2026-11-15 03:55 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

Scan with

Overview

Size
27.9 GB
Weights
266 KB (smallest of 6 ONNX variants)
Parameters
not stated
Formats
onnx
Task
not tagged
License
MIT (permissive)
Files
45, 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:55 UTCpassed

Model card

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

Phi-4 Reasoning Plus ONNX models#

Introduction#

This repository hosts the optimized versions of the Phi-4 reasoning plus models to accelerate inference with ONNX Runtime.

Optimized 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.

Here are some of the optimized configurations we have added:

  1. ONNX model for int4 CPU: ONNX model for CPU and mobile using int4 quantization via RTN.
  2. ONNX model for int4 GPU: ONNX model for GPU using int4 quantization via RTN.

Model Run#

You can see how to run examples with ORT GenAI here

For CPU:

# Download the model directly using the Hugging Face CLI
huggingface-cli download microsoft/Phi-4-reasoning-plus-onnx --include cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/* --local-dir .

# Install the CPU package of ONNX Runtime GenAI
pip install --pre onnxruntime-genai

# Please adjust the model directory (-m) accordingly
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
python model-qa.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu

For CUDA:

# Download the model directly using the Hugging Face CLI
huggingface-cli download microsoft/Phi-4-reasoning-plus-onnx --include gpu/* --local-dir .

# Install the CUDA package of ONNX Runtime GenAI
pip install --pre onnxruntime-genai-cuda

# Please adjust the model directory (-m) accordingly
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
python model-qa.py -m gpu/gpu-int4-rtn-block-32 -e cuda

For DirectML:

# Download the model directly using the Hugging Face CLI
huggingface-cli download microsoft/Phi-4-reasoning-plus-onnx --include gpu/* --local-dir .

# Install the DML package of ONNX Runtime GenAI
onnxruntime-genai-directml

# Please adjust the model directory (-m) accordingly
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
python model-qa.py -m gpu/gpu-int4-rtn-block-32 -e dml

Model Description#

  • Developed by: Microsoft
  • Model type: ONNX
  • License: MIT
  • Model Description: This is a conversion of the Phi-4 reasoning plus model for ONNX Runtime inference.

Disclaimer: Model is only an optimization of the base model, any risk associated with the model is the responsibility of the user of the model. Please verify and test for your scenarios. There may be a slight difference in output from the base model with the optimizations applied.

Base Model#

Phi-4 reasoning plus is a state-of-the-art open model built upon a blend of synthetic datasets, data from filtered public domain websites, and acquired academic books and Q&A datasets. The goal of this approach was to ensure that small capable models were trained with data focused on high quality and advanced reasoning. See details at https://huggingface.co/microsoft/Phi-4-reasoning-plus/blob/main/README.md.

Files

45 files · 27.9 GBWeights 266 KB (smallest of 6 ONNX variants). Sizes and sha256 from the signed manifest.
Show all 45 files with their sha256
FileSizesha256
.gitattributes1.61 KB6d37258060e6eabdd54ea002644865fdaaa41030cb2a01fb037333493b169d10
LICENSE1.10 KBc49419617a6070bcb197cfe272f7007fdec3e790dbb529cb995473bd69c0bd51
README.md3.72 KB6790643dd380f7a129b937f032d0a9c5f197f18627e1420c9b6811a0ea751701
config.json796 B0a13d8a96ac97a77871e10739669fd75cb1d7e2e403d5cd6ee0819233a30eff8
configuration_phi3.py10.9 KBec2044b77d0b8111640ac134daa3af1f40dc552a739f8959626e7e58ea3352df
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/config.json796 B0a13d8a96ac97a77871e10739669fd75cb1d7e2e403d5cd6ee0819233a30eff8
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/configuration_phi3.py10.9 KBec2044b77d0b8111640ac134daa3af1f40dc552a739f8959626e7e58ea3352df
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/genai_config.json1.48 KBf58bf7a843c74acaa47c135d2eeaa10b8c93cd1ab6d1313bec0a8db5ee62769f
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/merges.txt917 KBb6fe424e334903f7fb84d3a106d9730455f4744b9fe3c21ee136d97a00e72502
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/model.onnx266 KB5398bcc88f945aea1ce42648dbec37b520915d3f41d5fb199cc8002113d58a0c
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/model.onnx.data10.9 GBb77dce28291a38371dd2804b6fd121c7c55bf341c72f5cc0489decb050fb03c6
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/special_tokens_map.json463 Bbeb064d75e46a606ef1404691efc14c40b73b98ba4e4b20f35f1383b3f6c0c42
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/tokenizer.json7.15 MBb28a32dcbbb2779573aa8e345457e7b10f470ccfd262d01672c2469698cbd4f7
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/tokenizer_config.json19.0 KB889e1696cfd3ac5f091e676b9ea78d8899a1f45d18a2f0f96bb7221d2b172a80
cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/vocab.json1.61 MB23b80b3c4932a7733eb91487cb2fdbc56c5bd199a459128f538095a36dad5287
gpu/gpu-int4-rtn-block-32/config.json796 B0a13d8a96ac97a77871e10739669fd75cb1d7e2e403d5cd6ee0819233a30eff8
gpu/gpu-int4-rtn-block-32/configuration_phi3.py10.9 KBec2044b77d0b8111640ac134daa3af1f40dc552a739f8959626e7e58ea3352df
gpu/gpu-int4-rtn-block-32/genai_config.json1.52 KB8a26e6b15490393865cf5fd7632451c2dc2d4b79b14ff159f337e2296fb66a7f
gpu/gpu-int4-rtn-block-32/merges.txt917 KBb6fe424e334903f7fb84d3a106d9730455f4744b9fe3c21ee136d97a00e72502
gpu/gpu-int4-rtn-block-32/model.onnx359 KBbc2038958d9a92310c4fc3727bd51b760bc6aa915bd8d9c897f61070ddfdfc93
gpu/gpu-int4-rtn-block-32/model.onnx.data8.99 GB2255d9e38be93dcb5719e6ae7e3a02f5e9acf49a61c389f02c1da98a3ff04507
gpu/gpu-int4-rtn-block-32/special_tokens_map.json463 Bbeb064d75e46a606ef1404691efc14c40b73b98ba4e4b20f35f1383b3f6c0c42
gpu/gpu-int4-rtn-block-32/tokenizer.json7.15 MBb28a32dcbbb2779573aa8e345457e7b10f470ccfd262d01672c2469698cbd4f7
gpu/gpu-int4-rtn-block-32/tokenizer_config.json19.0 KB889e1696cfd3ac5f091e676b9ea78d8899a1f45d18a2f0f96bb7221d2b172a80
gpu/gpu-int4-rtn-block-32/vocab.json1.61 MB23b80b3c4932a7733eb91487cb2fdbc56c5bd199a459128f538095a36dad5287
npu/qnn-int4/LICENSE1.08 KBfa8235e5b48faca34e3ca98cf4f694ef08bd216d28b58071a1f85b1d50cb814d
npu/qnn-int4/README.md18.1 KBca426437f884618e22aa262652d2cd66a2b825d58ff1cbf5235d41f378ae4b3c
npu/qnn-int4/added_tokens.json249 Bd4f2aceb0f20b71dd1f4bcc7e052e4412946bf281840b8f83d39f259571af486
npu/qnn-int4/config.json796 B0a13d8a96ac97a77871e10739669fd75cb1d7e2e403d5cd6ee0819233a30eff8
npu/qnn-int4/genai_config.json19.9 KB1c0c158cfe7695a737fdaa50382f26985bc3bffc418c17ac1ff0b05bcfb10aa8
npu/qnn-int4/inference_model.json359 Ba04c98f19af62281aa32a946b6da19dc956d556a4f85b65852c13ca8d431e4f7
npu/qnn-int4/merges.txt2.42 MB856ce61180bb689282eed6b3a6838bb1f438399be23aefe9d20eb379791fb4ad
npu/qnn-int4/phi_4_14B_cb_1.bin1.72 GBd5dc7dbb34d77c83d361eec748d5a99de13c0ce5dec3840438cd08f9bb6d4c30
npu/qnn-int4/phi_4_14B_cb_2.bin1.42 GBb6716309ce3d1ac2627d17b71ac610938e4d9afbcbd576178b752d46b03db42a
npu/qnn-int4/phi_4_14B_cb_3.bin1.38 GB0ed0b99a318124127ae0aa4636edc4edbae2f49d34b9106c8d3bdf1df8c01120
npu/qnn-int4/phi_4_14B_cb_4.bin1.38 GB2c210155ee01e12570a251fe8582d918f017580beb6f2ee77b4f943f47ce6ef3
npu/qnn-int4/phi_4_14B_cb_5.bin1.38 GB8955dc70a5dba6ec4c19f28732155c857fb5899985d74323749acef22d6a01ff
npu/qnn-int4/phi_4_14B_ctx.onnx_ctx.onnx2.17 MBa741e6332042a32bbd7d7436109f0126252269295a66b70a33c4d0a638f287c6
npu/qnn-int4/phi_4_14B_embeddings.all.quant.onnx321 MB7a5051f287c00fc0505b694dc13ab3f0b84c8bb5b7e4666c0429f42376e5c88a
npu/qnn-int4/phi_4_14B_iter.onnx_ctx.onnx2.17 MB45643780f932f0bef51837cbfd8f29b7aaa79bcf02e2b2d1e18adc121a70a1d8
npu/qnn-int4/phi_4_14B_lm_head.all.quant.onnx321 MBdc355dd9de7e4d6ddf17745ad2efc7b52076179e5e9ef46abfa714cc319fec1f
npu/qnn-int4/special_tokens_map.json463 Bbeb064d75e46a606ef1404691efc14c40b73b98ba4e4b20f35f1383b3f6c0c42
npu/qnn-int4/tokenizer.json7.15 MBb28a32dcbbb2779573aa8e345457e7b10f470ccfd262d01672c2469698cbd4f7
npu/qnn-int4/tokenizer_config.json19.0 KB889e1696cfd3ac5f091e676b9ea78d8899a1f45d18a2f0f96bb7221d2b172a80
npu/qnn-int4/vocab.json1.61 MB23b80b3c4932a7733eb91487cb2fdbc56c5bd199a459128f538095a36dad5287
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
8646193e05 pinned now2026-11-15 03:55 UTC45 files · 27.9 GB

Use it

$ fw get microsoft/Phi-4-reasoning-plus-onnx
# manifest sha256 041704bccd0d… · 27.9 GB · 45 files
$ fw verify ./Phi-4-reasoning-plus-onnx microsoft/Phi-4-reasoning-plus-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-4-reasoning-plus-onnx.json --dir ./Phi-4-reasoning-plus-onnx $ python3 fw.py verify ./Phi-4-reasoning-plus-onnx ./microsoft__Phi-4-reasoning-plus-onnx.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-4-reasoning-plus-onnx --revision 8646193e05fb4051c858f07375ef28de975b37d0 --local-dir ./Phi-4-reasoning-plus-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
c49419617a6070bcb197cfe272f7007fdec3e790dbb529cb995473bd69c0bd51
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-4-reasoning-plus-onnxDate: 2026-11-15Commit: 8646193Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/Phi-4-reasoning-plus-onnx
Pinned commit
8646193e05fb4051c858f07375ef28de975b37d0
Manifest
Phi-4-reasoning-plus-onnx.json · .minisig
Manifest sha256
041704bccd0dad25edc6112406ba35da7130daae2942b2cbcc177cdcdcab4b40
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:55 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-4-reasoning-plus-onnx.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-4-reasoning-plus-onnx.json.minisig $ minisign -Vm Phi-4-reasoning-plus-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-4-reasoning-plus-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-4-reasoning-plus-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