zhiyucheng's picture
Initial commit
cb950fd
---
base_model:
- microsoft/Phi-4-reasoning-plus
license: mit
library_name: Model Optimizer
tags:
- nvidia
- ModelOpt
- Phi4
- quantized
- FP4
- fp4
---
# Model Overview
## Description:
The NVIDIA Phi-4-reasoning-plus FP4 model is the quantized version of Microsoft’s Phi-4-reasoning-plus model, which is a multimodal foundation model that uses an optimized transformer architecture. For more information, please check [here](https://huggingface.co/microsoft/Phi-4-reasoning-plus). The NVIDIA Phi-4-reasoning-plus FP4 model is quantized with [TensorRT Model Optimizer](https://github.com/NVIDIA/TensorRT-Model-Optimizer).
This model is ready for commercial/non-commercial use. <br>
## Third-Party Community Consideration
This model is not owned or developed by NVIDIA. This model has been developed and built to a third-party’s requirements for this application and use case; see link to Non-NVIDIA [(Phi-4-reasoning-plus) Model Card](https://huggingface.co/microsoft/Phi-4-reasoning-plus).
### License/Terms of Use:
Use of this model is governed by [MIT](https://huggingface.co/datasets/choosealicense/licenses/blob/main/markdown/mit.md)
### Deployment Geography:
Global, except in European Union <br>
### Use Case: <br>
Developers looking to take off the shelf pre-quantized models for deployment in AI Agent systems, chatbots, RAG systems, and other AI-powered applications. <br>
### Release Date: <br>
Huggingface 09/15/2025 via https://huggingface.co/nvidia/Phi-4-reasoning-plus-FP4 <br>
## Model Architecture:
**Architecture Type:** Transformers <br>
**Network Architecture:** Phi3ForCausalLM <br>
**This model was developed based on Phi-4-reasoning-plus
** Number of model parameters 14.7*10^9
## Input:
**Input Type(s):** Text <br>
**Input Format(s):** String <br>
**Input Parameters:** 1D (One-Dimensional): Sequences <br>
**Other Properties Related to Input:** Context length up to 64k <br>
## Output:
**Output Type(s):** Text <br>
**Output Format:** String <br>
**Output Parameters:** 1D (One-Dimensional): Sequences <br>
**Other Properties Related to Output:** N/A <br>
Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA’s hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions. <br>
## Software Integration:
**Supported Runtime Engine(s):** <br>
* TensorRT-LLM <br>
**Supported Hardware Microarchitecture Compatibility:** <br>
* NVIDIA Blackwell <br>
**Preferred Operating System(s):** <br>
* Linux <br>
## Model Version(s):
The model is quantized with nvidia-modelopt **v0.35.0** <br>
## Post Training Quantization
This model was obtained by quantizing the weights and activations of Phi-4-reasoning-plus to FP4 data type, ready for inference with TensorRT-LLM. Only the weights and activations of the linear operators within transformer blocks are quantized.
## Training and Testing Datasets:
** Data Modality
* [Text]
** Text Training Data Size
* [1 Billion to 10 Trillion Tokens]
## Calibration Dataset:
** Link: [cnn_dailymail](https://huggingface.co/datasets/abisee/cnn_dailymail) <br>
** Data collection method: Automated. <br>
** Labeling method: Automated. <br>
## Training Datasets:
** Data Collection Method by Dataset: Automated, Synthetic, Human <br>
** Labeling Method by Dataset: Undisclosed<br>
** Properties: Training data is a mixture of Q&A, chat format data in math, science, and coding. The chat prompts are sourced from filtered high-quality web data and optionally rewritten and processed through a synthetic data generation pipeline. We further include data to improve truthfulness and safety.
## Testing Dataset:
** Data Collection Method by Dataset: Undisclosed <br>
** Labeling Method by Dataset: Undisclosed <br>
** Properties: Undisclosed <br>
## Inference:
**Engine:** TensorRT-LLM <br>
**Test Hardware:** B200 <br>
## Usage
### Deploy with TensorRT-LLM
To deploy the quantized checkpoint with [TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM) LLM API, follow the sample codes below:
* LLM API sample usage:
```
from tensorrt_llm import LLM, SamplingParams
def main():
prompts = [
"Hello, my name is",
"The president of the United States is",
"The capital of France is",
"The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
llm = LLM(model="nvidia/Phi-4-reasoning-plus-FP4")
outputs = llm.generate(prompts, sampling_params)
# Print the outputs.
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
# The entry point of the program need to be protected for spawning processes.
if __name__ == '__main__':
main()
```
## Ethical Considerations
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns here.