Ollama · phi4

<img src="https://ollama.com/assets/library/phi3.5/dbf19a17-e3fd-46b6-a059-e6b4f1fae59f" width="320" /> **Phi-4** is a 14B parameter, state-of-the-art open model built upon a blend of synthetic datas…

ollama/phi4

<img src="https://ollama.com/assets/library/phi3.5/dbf19a17-e3fd-46b6-a059-e6b4f1fae59f" width="320" />

**Phi-4** is a 14B parameter, state-of-the-art open model built upon a blend of synthetic datasets, data from filtered public domain websites, and acquired academic books and Q&A datasets.

![Phi-4 benchmark](/assets/library/phi4/67391ae2-e565-4173-ac3c-5e49bc977ac4)

The model underwent a rigorous enhancement and alignment process, incorporating both supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures.

**Context length:** 16k tokens

![Phi-4 performance eval by Microsoft](/assets/library/phi4/5da7d0b6-53df-42f9-9c1b-651bfc380cdd)

### Primary use cases

The model is designed to accelerate research on language models, for use as a building block for generative AI powered features. It provides uses for general purpose AI systems and applications (primarily in English) which require:

1. Memory/compute constrained environments. 2. Latency bound scenarios. 3. Reasoning and logic.

### Out-of-scope use cases

The models are not specifically designed or evaluated for all downstream purposes, thus:

1. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fairness before using within a specific downstream use case, particularly for high-risk scenarios. 2. Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case, including the model’s focus on English. 3. Nothing contained in this readme should be interpreted as or deemed a restriction or modification to the license the model is released under.

Specifications & capabilities

Published model ID
phi4

Deployments & artifacts

1–5 / 5

ollama

source id
ollama
execution mode
local
parameter size
14.7B
parameter count
14700000000
parameter count is approximate
true
quantization level
Q4_K_M
context window
16000
context window is approximate
true
artifact size bytes
9053115905
updated at
2026-11-16T08:10:06.079865+00:00

ollama

source id
ollama
execution mode
local
parameter size
14.7B
parameter count
14700000000
parameter count is approximate
true
quantization level
F16
context window
16000
context window is approximate
true
artifact size bytes
29323400705
updated at
2026-11-16T08:10:06.079865+00:00

ollama

source id
ollama
execution mode
local
parameter size
14.7B
parameter count
14700000000
parameter count is approximate
true
quantization level
Q4_K_M
context window
16000
context window is approximate
true
artifact size bytes
9053115905
updated at
2026-11-16T08:10:06.079865+00:00

ollama

source id
ollama
execution mode
local
parameter size
14.7B
parameter count
14700000000
parameter count is approximate
true
quantization level
Q8_0
context window
16000
context window is approximate
true
artifact size bytes
15580501505
updated at
2026-11-16T08:10:06.079865+00:00

ollama

source id
ollama
execution mode
local
parameter size
14.7B
parameter count
14700000000
parameter count is approximate
true
quantization level
Q4_K_M
context window
16000
context window is approximate
true
artifact size bytes
9053115905
updated at
2026-11-16T08:10:06.079865+00:00

Original sources

1–2 / 2

Ollama · Model page ↗

Ollama · Catalog ↗

Source links

1–1 / 1

Explore more models

Models

Loading
EVIDENCE / COMPARISON

Benchmarks

Explore every benchmark

Loading

These charts contain model-linked results. The charts above also include unlinked source profiles. Compare scores within each evaluation. Model quality, usage, transparency and system performance measure different things.

Install TensorTrace