Key Takeaways
Phi 4 wins:
- Faster response time
- Better at coding
- Better at math
Qwen2.5 7B Instruct wins:
- Cheaper input tokens
- Cheaper output tokens
- Larger context window
- Higher intelligence benchmark
Price Advantage
Qwen2.5 7B Instruct
Benchmark Advantage
Phi 4
Context Window
Qwen2.5 7B Instruct
Speed
Phi 4
Pricing Comparison
Price Comparison
| Metric | Phi 4 | Qwen2.5 7B Instruct | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $0.06 | $0.04 | Qwen2.5 7B Instruct |
| Output (per 1M tokens) | $0.14 | $0.10 | Qwen2.5 7B Instruct |
Using a 3:1 input/output ratio, Qwen2.5 7B Instruct is 31% cheaper overall.
Phi 4 Providers
NextBit $0.06 (Cheapest)
DeepInfra $0.07
Qwen2.5 7B Instruct Providers
Phala $0.04 (Cheapest)
AtlasCloud $0.04 (Cheapest)
Together $0.30
Benchmark Comparison
8
Benchmarks Compared
2
Phi 4 Wins
1
Qwen2.5 7B Instruct Wins
Benchmark Scores
| Benchmark | Phi 4 | Qwen2.5 7B Instruct | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 10.5 | 35.2 | |
Coding Index Code generation & understanding | 11.2 | - | - |
Math Index Mathematical reasoning | 18.0 | - | - |
MMLU Pro Academic knowledge | 71.4 | 36.5 | |
GPQA Graduate-level science | 57.5 | 5.5 | |
LiveCodeBench Competitive programming | 23.1 | - | - |
AIME Competition math | 14.3 | - | - |
BBH Big-Bench Hard | - | 34.9 | - |
Phi 4 significantly outperforms in coding benchmarks.
Cost vs Quality
X-axis:
Y-axis:
Loading chart...
Phi 4
Other models
Context & Performance
Context Window
Phi 4
16,384
tokens
Max output: 16,384 tokens
Qwen2.5 7B Instruct
32,768
tokens
Qwen2.5 7B Instruct has a 50% larger context window.
Speed Performance
| Metric | Phi 4 | Qwen2.5 7B Instruct | Winner |
|---|---|---|---|
| Tokens/second | 6.0 tok/s | N/A | |
| Time to First Token | 0.79s | N/A |
Capabilities
Feature Comparison
| Feature | Phi 4 | Qwen2.5 7B Instruct |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | Phi 4 | Qwen2.5 7B Instruct |
|---|---|---|
| License | Open Source | Open Source |
| Author | Microsoft | Qwen |
| Released | Jan 2025 | Oct 2024 |
Phi 4 Modalities
Input
text
Output
text
Qwen2.5 7B Instruct Modalities
Input
text
Output
text
