Phi-3

Phi-3Model sizePerformancePull Phi-3Using Phi-3Run Phi-3Have a conversationEnd the conversationReferences

Demo Environment

Development board: Jetson Orin series motherboard

SSD: 128G

Tutorial application scope: Whether the motherboard can run is related to the available memory of the system. The user's own environment and the programs running in the background may cause the model to fail to run

Motherboard modelOllamaOpen WebUI
Jetson Orin NX 16GB
Jetson Orin NX 8GB
Jetson Orin Nano 8GB
Jetson Orin Nano 4GB

Phi-3 is a powerful, cost-effective Small Language Model (SLM) from Microsoft that outperforms models of the same and higher sizes across a variety of language, reasoning, encoding, and math benchmarks.

Model size

ModelParameters
Phi-3 (Mini)3.8B
Phi-3 (Medium)14B

Performance

image-20240624233649583

Pull Phi-3

Using the pull command will automatically pull the model from the Ollama model library:

image-20240708183125965

Using Phi-3

Run Phi-3

If the system does not have a running model, the system will automatically pull the Phi-3 3.8B model and run it:

Have a conversation

The time to reply to the question depends on the hardware configuration, so be patient!

image-20240708183229237

End the conversation

Use the Ctrl+d shortcut key or /bye to end the conversation!

image-20240708183340843

References

Ollama

Official website: https://ollama.com/

GitHub: https://github.com/ollama/ollama

Phi-3

Ollama corresponding model: https://ollama.com/library/phi3