20 diverse prompts (general knowledge, code, math, science)
What is Phi-3?
Phi-3-Mini-4K-Instruct is a 3.8B parameter lightweight model from Microsoft, trained on 4.9 trillion tokens. It excels at reasoning, math, and code generation while being small enough for edge deployments. MIT licensed.
How to use
1. Download
Place the .rkllm file and config.json in a model directory on your RK3588 board:
bash
1mkdir -p ~/models/Phi-3-mini-4k-instruct
2# Copy both files into this directory
The RKLLM runtime applies Phi-3's chat template (<|system|>...<|end|><|user|>...<|end|><|assistant|>) internally at the token level. Send plain text only.
3. Chat template
Phi-3 uses a distinctive chat format:
<|system|>
You are a helpful assistant.<|end|>
<|user|>
How does photosynthesis work?<|end|>
<|assistant|>
The runtime handles this automatically — no manual template needed.
Calibration dataset: 20 prompts covering general knowledge, code, math, science, and creative writing, formatted with Phi-3's native chat template via tokenizer.apply_chat_template().
Notes
No <think> tags: Phi-3 is not a reasoning model — it does not produce chain-of-thought in <think>...</think> tags. For thinking mode, use Qwen3 models.
Strong at math/code: Despite its size, Phi-3 scores 85.7% on GSM8K and 57.3% on HumanEval.
English-primary: Best performance in English. Other languages have reduced quality.