Skip to content

Commit 2f95279

Browse files
authored
Add Phi-4-mini-reasoning NPU model (#4173)
1 parent 4519735 commit 2f95279

4 files changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extra_config: model.yaml
2+
spec: spec.yaml
3+
type: model
4+
categories: ["Local"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
This model is an optimized version of Phi-4-mini-reasoning to enable local inference on QNN NPUs. This model uses QuaRot and GPTQ quantization.
2+
3+
# Model Description
4+
- **Developed by:** Microsoft
5+
- **Model type:** ONNX
6+
- **License:** MIT
7+
- **Model Description:** This is a conversion of the Phi-4-mini-reasoning for local inference on QNN NPUs.
8+
- **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. Note that optimizations applied are distinct from fine tuning and thus do not alter the intended uses or capabilities of the model.
9+
10+
# Base Model Information
11+
See Hugging Face model [Phi-4-mini-reasoning](https://huggingface.co/microsoft/Phi-4-mini-reasoning) for details.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
path:
2+
container_name: models
3+
container_path: microsoft/phi-4-mini-reasoning-onnx/npu/qnn-phi4-mini-reasoning-onnx
4+
storage_name: automlcesdkdataresources
5+
type: azureblob
6+
publish:
7+
description: description.md
8+
type: custom_model
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
$schema: https://azuremlschemas.azureedge.net/latest/model.schema.json
2+
name: Phi-4-mini-reasoning-qnn-npu
3+
version: 1
4+
path: ./
5+
tags:
6+
foundryLocal: ""
7+
license: "MIT"
8+
licenseDescription: "This model is provided under the License Terms available at <https://huggingface.co/microsoft/Phi-4-mini-reasoning/blob/main/LICENSE>."
9+
author: Microsoft
10+
inputModalities: "text"
11+
outputModalities: "text"
12+
task: chat-completion
13+
maxOutputTokens: 2048
14+
alias: phi-4-mini-reasoning
15+
directoryPath: v1
16+
promptTemplate: "{\"system\": \"<|system|>Your name is Phi, an AI math expert developed by Microsoft. {Content}<|end|>\", \"user\": \"<|user|>{Content}<|end|>\", \"assistant\": \"<|assistant|>{Content}<|end|>\", \"prompt\": \"<|user|>{Content}<|end|><|assistant|>\"}"
17+
type: custom_model
18+
variantInfo:
19+
parents:
20+
- assetId: azureml://registries/azureml/models/Phi-4-mini-reasoning/versions/1
21+
variantMetadata:
22+
modelType: 'ONNX'
23+
quantization: ['QuaRot', 'GPTQ']
24+
device: 'npu'
25+
executionProvider: 'QNNExecutionProvider'
26+
fileSizeBytes: 2982936576
27+
vRamFootprintBytes: 1749486141

0 commit comments

Comments
 (0)