Across 1 comparable benchmark, Phi-4-mini-instruct (3.8B) has better reported results on 1 and worse on 0. 1 further shared result is listed below, each with the reason it is not counted.
Limited evidence1 of 2 shared results countedHow we compare
Price basis: Listed rates vs standard rates. The price section below shows the applicable periods.
| Fact | PaLM-Coder | Phi-4-mini-instruct (3.8B) |
|---|---|---|
| Context window | 4K tokens | 128K tokens |
| Input / 1M | — | $0.075 |
| Output / 1M | — | $0.300 |
| Blended (4:1) | — | $0.120 |
| Status | Available | Available |
| Released | April 5, 2022 | February 27, 2025 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 1 shared benchmark grouped by capability on a 0–100 scale. How averages are built
Phi-4-mini-instruct (3.8B) ahead on 1 of 1 counted
No shared comparable results for Abstract reasoning, Mathematics, Science & health, Computer & tool use, Research & search, Long context, Multimodal, Professional work & productivity, Cybersecurity.
Published scores, with matching modes where available. Gaps show PaLM-Coder relative to Phi-4-mini-instruct (3.8B). Reading the results
| Benchmark | PaLM-Coder | Phi-4-mini-instruct (3.8B) | Gap |
|---|---|---|---|
| HumanEvalCode Generation & Editing · AccuracyNot counted · Different or unrecorded test environments — excluded from the tally | 88.4Historical · pass@100· pass-at-100 | 74.4≠Normal · no tools· legacy-default | —#23 vs #42 of 100 |
| MBPPCode Generation & Editing · Pass rate (%) | 47.0Historical | 65.3≠Normal · no tools | −18.3 pts#55 vs #33 of 67 |
Code Generation & Editing · Accuracy
Not counted · Different or unrecorded test environments — excluded from the tally
Code Generation & Editing · Pass rate (%)
Time-of-day providers use peak-hour rates; fixed-price providers use standard rates. Off-peak discounts remain in the published details.
Drag the handle above the bar for cache hits, the one below it for the input : output mix · 5% steps
Blended price = effective input rate at 90% cache hits × 80% + output rate × 20%
A blended cost needs a published input and output price on both sides, and one of these two does not have them yet.
PaLM-Coder: Listed text rates; pricing tier not confirmed.
Phi-4-mini-instruct (3.8B): Standard pricing. Azure AI Foundry (Phi-4-mini (128K)) verified 2026-11-14
| Price / 1M tokens | PaLM-Coder | Phi-4-mini-instruct (3.8B) | Ratio |
|---|---|---|---|
| Input | — | $0.075 | — |
| Output | — | $0.30 | — |
| Cached input | — | — | — |
| Cache write | — | — | — |
| Blended | — | $0.12 | — |
Estimates use the selected token mix. Cache writes, tool fees and long-context surcharges are excluded.
| Attribute | PaLM-Coder | Phi-4-mini-instruct (3.8B) |
|---|---|---|
| Availability | Available | Available |
| Provider | Google Research | Microsoft |
| Model type | Coding model | Chat model |
| First release | April 5, 2022 | February 27, 2025 |
| Context window | 4K tokens | 128K tokens |
| Total parameters | 540B | 3.8B |
| Architecture | Dense | Dense |
| Documented capabilities | Multilingual, Coding | Multilingual |
| Input modalities | — | Text |
| Output modalities | — | Text |
| Weights | Closed / API only | Open weights |
| Licence | — | MIT License |
| Commercial use | Proprietary | Commercial use allowed |
These are reported-score comparisons, not controlled head-to-head tests.
What people found comparing these models, or using either one. Comments also appear on the models' own pages.
Sign in with Google to comment on PaLM-Coder vs Phi-4-mini-instruct (3.8B).
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.