Microsoft/Dense

MicrosoftPhi-1 1.3B

Microsoft's first Phi model. Trained on textbook-quality data for code generation.

coding
1.3B
Parameters
2K
Context length
6
Benchmarks
6
Quantizations
0
Architecture
Dense
Released
2023-06-20
Layers
24
KV Heads
32
Head Dim
64
Family
phi

Quantization Options

QuantBitsVRAMQuality
Q4_K_M4.891.3 GBgood
Q5_K_S5.571.4 GBgood
Q5_K_M5.71.4 GBgood
Q6_K6.561.6 GBexcellent
Q8_08.51.9 GBlossless
FP16163.1 GBlossless

Select your GPU above to see speed estimates and compatibility for each quantization.

READY TO RUN THIS?RENT BY THE HOUR

RENT A GPU AND RUN PHI-1 1.3B NOW

Spin up an A100 / H100 / 4090 in ~60s. Pay by the second. Cancel anytime.

Community Ratings

Loading ratings...

Benchmarks (6)

IFEval20.3
MMLU-PRO7.7
BBH7.5
MUSR3.4
GPQA2.3
MATH1.8

Run this model

Easiest way to get started·Beginners
DOCS ↗
curl -fsSL https://ollama.com/install.sh | sh
$ollama run phi:1.3b-q4_K_M

Downloads and runs automatically. Add --verbose for speed stats.

▸ SETUP GUIDE
>_

Auto-setup with fitmyllm CLI

Detects your GPU, recommends the best model, downloads it, and starts chatting — zero config. Benchmarks your speed and contributes anonymous data to improve predictions.

pip install fitmyllmthen run fitmyllmLearn more
Auto-detect GPULive tok/s in chatSpeed benchmarks9 inference engines

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

NVIDIA Tesla C870
2 GB VRAM • 76.8 GB/s
NVIDIA
NVIDIA Tesla D870
2 GB VRAM • 76.8 GB/s
NVIDIA
NVIDIA Tesla S870
2 GB VRAM • 76.8 GB/s
NVIDIA

Find the best GPU for Phi-1 1.3B

Build Hardware for Phi-1 1.3B

Microsoft's first Phi model. Trained on textbook-quality data for code generation.

▸ SPEC SHEET

Phi-1 1.3B1.3B Dense.

▸ SPECIFICATIONS
PARAMETERS
1.3B
ARCHITECTURE
Dense Transformer
CONTEXT LENGTH
2K tokens
CAPABILITIES
coding
RELEASE DATE
2023-06-20
PROVIDER
Microsoft
FAMILY
phi
▸ VRAM REQUIREMENTS
QUANTBPWVRAMQUALITY
Q4_K_M4.891.3 GB94%
Q5_K_S5.571.4 GB96%
Q5_K_M5.71.4 GB96%
Q6_K6.561.6 GB97%
Q8_08.51.9 GB100%
FP16163.1 GB100%
§ 01BENCHMARK SCORES
MMLU-PRO7.7
MATH1.8
IFEval20.3
BBH7.5
GPQA2.3
MUSR3.4
§ 02RUN COMMAND

Run Phi-1 1.3B locally with Ollama — needs 1.3 GB VRAM at Q4_K_M:

$ollama run phi:1.3b