LLMs · Microsoft
Phi-3 Medium 128K Instruct
- Parameters
- 14B
- Architecture
- Dense
- Max context
- 128K tokens
- License
- mit
- Released
- 2024-05
How to run it
- Install PocketPal AI (free) and open it.
- Tap the menu (☰), then Models, then + and Add from Hugging Face.
- Search for
bartowski/Phi-3-medium-128k-instruct-GGUF, open it and downloadPhi-3-medium-128k-instruct-Q4_K_M.gguf. - Tap Load next to the model and start a chat. It runs on the device, with no connection needed from then on.
- Install PocketPal AI (free) and open it.
- Tap the menu (☰), then Models, then + and Add from Hugging Face.
- Search for
bartowski/Phi-3-medium-128k-instruct-GGUF, open it and downloadPhi-3-medium-128k-instruct-Q4_K_M.gguf. - Tap Load next to the model and start a chat. It runs on the device, with no connection needed from then on.
On a mobile device
Phi-3 Medium 128K Instruct is too big for a device like yours: it needs more memory than the device has. Models that run on mobile devices.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run phi3:medium-128kQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF (opens in a new tab)
ollama run hf.co/bartowski/Phi-3-medium-128k-instruct-GGUFOriginal weights · Hugging Face
Full-precision files from Microsoft, for fine-tuning, vLLM, Transformers.
huggingface.co/microsoft/Phi-3-medium-128k-instruct (opens in a new tab)
Apps that run Phi-3 Medium 128K Instruct
Our pick for each kind of computer, assuming the model fits in its memory. Pick your own GPU or device in the Model Finder for an exact answer.
| App | Type | Opens it as | Systems | Engine | Start |
|---|---|---|---|---|---|
| LM Studio | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in LM Studio | |
| Ollama | CLI + API | Ollama library | macOSWindowsLinux |
|
|
| llama.cpp | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Jan | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in Jan | |
| MLX LM | CLI + API | MLX | macOS |
|
|
| vLLM | Server | Original weights | WSLWindowsLinux |
|
|
| SGLang | Server | Original weights | WSLWindowsLinux |
|
|
| Docker Model Runner | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Lemonade | Desktop app | GGUF | macOSWindowsLinux |
|
|
| Unsloth Desktop | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in Unsloth Desktop | |
| Atomic Chat | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in Atomic Chat | |
| GPT4All | Desktop app | GGUF | macOSWindowsLinux | Get GPT4All | |
| KoboldCpp | Desktop app | GGUF | macOSWindowsLinux | Get KoboldCpp | |
| Text Generation WebUI | Desktop app | GGUF | macOSWindowsLinux | Get Text Generation WebUI | |
| llamafile | CLI + API | GGUF | macOSWindowsLinux | Get llamafile | |
| Msty Studio | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in Msty Studio | |
| Llama (macOS) | Desktop app | GGUF | macOS | Open in Llama (macOS) | |
| RecurseChat | Desktop app | GGUF | macOS | Open in RecurseChat | |
| Inferencer | Desktop app | MLX | macOS | Get Inferencer | |
| node-llama-cpp | Library | GGUF | macOSWindowsLinux | Get node-llama-cpp | |
| exo | Server | MLX | macOSLinux | Get exo | |
| PocketPal AI | Mobile app | GGUF | iOSAndroid | App Store Google Play | |
| ChatterUI | Mobile app | GGUF | Android | Download the APK | |
| LLM Farm | Mobile app | GGUF | iOS |
Memory needed
Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps. Try another context length.
| Quantization | Quality | Weights | Total at 8K context | Total at 32K context | Download |
|---|---|---|---|---|---|
Q2_K |
Low | 5.6 GB | 7.9 GB | 12.9 GB | GGUF (opens in a new tab) |
Q3_K_M |
Low | 6.8 GB | 9.1 GB | 14.2 GB | GGUF (opens in a new tab) |
Q4_K_M |
Good | 8.5 GB | 10.8 GB | 15.8 GB | GGUF (opens in a new tab) |
Q5_K_M |
High | 9.9 GB | 12.2 GB | 17.2 GB | GGUF (opens in a new tab) |
Q6_K |
High | 11.4 GB | 13.7 GB | 18.8 GB | GGUF (opens in a new tab) |
Q8_0 |
Very high | 14.8 GB | 17.1 GB | 22.1 GB | GGUF (opens in a new tab) |
F16 |
Full | 27.9 GB | 30.2 GB | 35.2 GB | Original weights (opens in a new tab) |
Best hardware for Phi-3 Medium 128K Instruct
The least expensive GPU in our catalog that runs it without offloading is the Intel Arc B570 (launch price $219) at Q3_K_M.
| Quality | Hardware | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 46Fair quality (C) · 46 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 3090 |
Q8_0 | 18.3 GB / 24.0 GB | 41.9 tok/s | Runs great |
| 46Fair quality (C) · 46 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4090 |
Q8_0 | 18.3 GB / 24.0 GB | 45.1 tok/s | Runs great |
| 44Fair quality (C) · 44 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 9070 XT |
Q5_K_M | 13.0 GB / 16.0 GB | 40.0 tok/s | Runs great |
| 44Fair quality (C) · 44 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4070 Ti SUPER |
Q5_K_M | 13.0 GB / 16.0 GB | 48.8 tok/s | Runs great |
| 44Fair quality (C) · 44 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4080 SUPER |
Q5_K_M | 13.0 GB / 16.0 GB | 53.5 tok/s | Runs great |
| 44Fair quality (C) · 44 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5070 Ti |
Q5_K_M | 13.0 GB / 16.0 GB | 65.1 tok/s | Runs great |
| 44Fair quality (C) · 44 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5080 |
Q5_K_M | 13.0 GB / 16.0 GB | 69.7 tok/s | Runs great |
| 45Fair quality (C) · 45 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 74/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 7900 XTX |
Q6_K | 14.9 GB / 24.0 GB | 50.4 tok/s | Runs great |
| 43Fair quality (C) · 43 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 74/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5060 Ti 16GB |
Q4_K_M | 11.6 GB / 16.0 GB | 39.4 tok/s | Runs great |
| 46Fair quality (C) · 46 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 74/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5090 |
Q8_0 | 18.7 GB / 32.0 GB | 80.2 tok/s | Runs great |
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.









