Phi-3-vision-128k-instruct
Microsoft (United States) · Language (text)
Which way is for me?
💻 On my own computer
No ready LM Studio version (GGUF) of this model has been published yet. Use the online way for now; this page is checked again every night and the steps will appear here when one comes out.
Similar models you can run on your computer right now:
- Phi-4-mini-instructQ4 2.6 GB
- Phi-3.5-mini-instructQ4 2.6 GB
- Phi-3-mini-4k-instructQ4 2.6 GB
🧑💻 For developers
vLLM
vllm serve microsoft/Phi-3-vision-128k-instructTransformers (Python)
from transformers import pipeline
pipe = pipeline("text-generation", model="microsoft/Phi-3-vision-128k-instruct")Words used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
From the Hugging Face model card
The Phi-3-Vision-128K-Instruct is a lightweight, state-of-the-art open multimodal model built upon datasets which include - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data both on text and vision. The model belongs to the Phi-3 model family, and the multimodal version comes with 128K context length (in tokens) it can support.
Intended use
The model is intended for broad commercial and research use in English. The model provides uses for general purpose AI systems and applications with visual and text input capabilities which require
Benchmarks (from the model card)
| Benchmark | Phi-3 Vision-128K-In | LlaVA-1.6 Vicuna-7B | QWEN-VL Chat | Llama3-Llava-Next-8B | Claude-3 Haiku | Gemini 1.0 Pro V |
|---|---|---|---|---|---|---|
| MMMU | 40.4 | 34.2 | 39.0 | 36.4 | 40.7 | 42.0 |
| MMBench | 80.5 | 76.3 | 75.8 | 79.4 | 62.4 | 80.0 |
| ScienceQA | 90.8 | 70.6 | 67.2 | 73.7 | 72.0 | 79.7 |
| MathVista | 44.5 | 31.5 | 29.4 | 34.8 | 33.2 | 35.0 |
| InterGPS | 38.1 | 20.5 | 22.3 | 24.6 | 32.1 | 28.6 |
| AI2D | 76.7 | 63.1 | 59.8 | 66.9 | 60.3 | 62.8 |
| ChartQA | 81.4 | 55.0 | 50.9 | 65.8 | 59.3 | 58.0 |
| TextVQA | 70.9 | 64.6 | 59.4 | 55.7 | 62.7 | 64.7 |
Source: Hugging Face · microsoft/Phi-3-vision-128k-instruct · License: mit
Hardware and running it
Local Weights are published and it runs on your own hardware.
- Minimum Q4
- 2.8 GB
- Recommended Q8
- 5 GB
- Full quality FP16
- 10 GB
On common hardware
| RTX 4060 · 8 GB | Great | Q8 · ≈ 24–39 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 44–73 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 77–130 tokens/s |
| Mac M4 Max · 128 GB | Great | FP16 · ≈ 24–39 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 140–240 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 1,160–1,930 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: