Welcome to ROSMASTER A1 repository
5. Microsoft Phi-4 mini model
Phi4-mini
Phi4-mini1. Model Size2. Performance3. Using Phi4-mini3.1 Running Phi4-mini3.2 Engaging in a Dialogue3.3 Ending the Dialogue3.4 Chinese DialogueReferences
Demo Environment
Development Boards: Jetson Orin, RDK X5, Raspberry Pi 5 series motherboard
Note: Jetson Orin Nano 4GB and Raspberry Pi 5 2GB cannot run this model due to performance limitations.
Phi-4-mini-instruct is a lightweight, open model built on synthetic data and selected public websites, focusing on high-quality, inference-intensive data.
1. Model Size
| Model | Size |
|---|---|
| phi4-mini:3.8b | 2.5GB |
2. Performance

3. Using Phi4-mini
3.1 Running Phi4-mini
Use the run command to start running the model. If you haven't downloaded this model before, it will automatically pull the model from the Ollam model library:
xxxxxxxxxxollama run phi4-mini:3.8b

3.2 Engaging in a Dialogue
xxxxxxxxxxHow many minutes is a quarter of an hour?
The response time depends on your hardware configuration. Please be patient!

3.3 Ending the Dialogue
Use the shortcut Ctrl+d or /bye to end the dialogue!
3.4 Chinese Dialogue
For those without a Chinese input method, please refer to the Chinese input method switching tutorial.
Chinese Dialogue:

References
Ollama
Official Website: https://ollama.com/
GitHub: https://github.com/ollama/ollama
Phi4-mini
Ollama corresponding model: https://ollama.com/library/phi4-mini