Phi-3 model

Demonstration environment

Development Board: Raspberry Pi 5B

SD(TF)card:64G(Above 16G, the larger the capacity, the more models can be experienced)

Phi-3 is a powerful and cost-effective Small Language Model (SLM) launched by Microsoft, which outperforms models of the same size and higher in various language, inference, coding, and mathematical benchmarks.

Model scale

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

Performance performance

image-20240624233649583

Got Phi-3

Using the pull command will automatically pull the models from the Ollama model library.

image-20240625152410815

Use Phi-3

Run Phi-3

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

Dialogue

The time to reply to the question is related to the hardware configuration, please be patient.

image-20240625153458483

End conversation

You can end the conversation by using the shortcut key 'Ctrl+d' or '/bye'.

image-20240625153656408

Reference material

Ollama

Website: https://ollama.com/

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

Phi-3

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