qwen2.5-coder

The latest series of Code-Specific Qwen models, with significant improvements in code generation, code reasoning, and code fixing.

Araç Kullanımı 0.5b 1.5b 3b 7b 14b 32b
Hızlı Kurulum (Ollama kuruluysa)
ollama run qwen2.5-coder

Ollama kurulu değil mi? ollama.com/download — Windows, macOS ve Linux için ücretsiz. İlk çalıştırmada model indirilir, sonrası tamamen çevrimdışıdır.

Varyantlar

Boyut büyüdükçe kalite artar, donanım ihtiyacı yükselir. Başlangıç için küçük varyantı deneyin.

EtiketBoyutBağlamGirdiKomut
latest 4.7GB 32K Text ollama run qwen2.5-coder:latest
0.5b 398MB 32K Text ollama run qwen2.5-coder:0.5b
1.5b 986MB 32K Text ollama run qwen2.5-coder:1.5b
3b 1.9GB 32K Text ollama run qwen2.5-coder:3b
7b 4.7GB 32K Text ollama run qwen2.5-coder:7b
14b 9.0GB 32K Text ollama run qwen2.5-coder:14b
32b 20GB 32K Text ollama run qwen2.5-coder:32b
0.5b-base 531MB 32K Text ollama run qwen2.5-coder:0.5b-base
0.5b-base-q2_K 339MB 32K Text ollama run qwen2.5-coder:0.5b-base-q2_K
0.5b-base-q3_K_S 338MB 32K Text ollama run qwen2.5-coder:0.5b-base-q3_K_S
0.5b-base-q3_K_M 355MB 32K Text ollama run qwen2.5-coder:0.5b-base-q3_K_M
0.5b-base-q3_K_L 369MB 32K Text ollama run qwen2.5-coder:0.5b-base-q3_K_L
0.5b-base-q4_0 352MB 32K Text ollama run qwen2.5-coder:0.5b-base-q4_0
0.5b-base-q4_1 375MB 32K Text ollama run qwen2.5-coder:0.5b-base-q4_1
0.5b-base-q4_K_S 385MB 32K Text ollama run qwen2.5-coder:0.5b-base-q4_K_S
0.5b-base-q4_K_M 398MB 32K Text ollama run qwen2.5-coder:0.5b-base-q4_K_M
0.5b-base-q5_0 397MB 32K Text ollama run qwen2.5-coder:0.5b-base-q5_0
0.5b-base-q5_1 419MB 32K Text ollama run qwen2.5-coder:0.5b-base-q5_1
0.5b-base-q5_K_S 413MB 32K Text ollama run qwen2.5-coder:0.5b-base-q5_K_S
0.5b-base-q5_K_M 420MB 32K Text ollama run qwen2.5-coder:0.5b-base-q5_K_M
0.5b-base-q6_K 506MB 32K Text ollama run qwen2.5-coder:0.5b-base-q6_K
0.5b-base-q8_0 531MB 32K Text ollama run qwen2.5-coder:0.5b-base-q8_0
0.5b-base-fp16 994MB 32K Text ollama run qwen2.5-coder:0.5b-base-fp16
0.5b-instruct 398MB 32K Text ollama run qwen2.5-coder:0.5b-instruct
0.5b-instruct-q2_K 339MB 32K Text ollama run qwen2.5-coder:0.5b-instruct-q2_K

174 varyant daha var — tümü için ollama.com.

Model Detayları ve Benchmarklar (kaynak: ollama.com)

Qwen 2.5 Coder series of models are now updated in 6 sizes: 0.5B, 1.5B, 3B, 7B, 14B and 32B.

There are significant improvements in code generation, code reasoning and code fixing. The 32B model has competitive performance with OpenAI’s GPT-4o.

32B: ollama run qwen2.5-coder:32b

14B: ollama run qwen2.5-coder:14b

7B: ollama run qwen2.5-coder:7b

3B: ollama run qwen2.5-coder:3b

1.5B: ollama run qwen2.5-coder:1.5b

0.5B: ollama run qwen2.5-coder:0.5b

Code capabilities reaching state of the art for open-source models

Comparison benchmarks

Code Generation: Qwen2.5 Coder 32B Instruct, as the flagship model of this open-source release, has achieved the best performance among open-source models on multiple popular code generation benchmarks (EvalPlus, LiveCodeBench, BigCodeBench), and has competitive performance with GPT-4o.

Code Repair: Code repair is an important programming skill. Qwen2.5 Coder 32B Instruct can help users fix errors in their code, making programming more efficient. Aider is a popular benchmark for code repair, and Qwen2.5 Coder 32B Instruct scored 73.7, performing comparably to GPT-4o on Aider.

Code Reasoning: Code reasoning refers to the model’s ability to learn the process of code execution and accurately predict the model’s inputs and outputs. The recently released Qwen2.5 Coder 7B Instruct has already shown impressive performance in code reasoning, and this 32B model takes it a step further.

Benchmarks

Multiple programming languages

An intelligent programming assistant should be familiar with all programming languages. Qwen 2.5 Coder 32B performs excellent across more than 40 programming languages, scoring 65.9 on McEval, with impressive performances in languages like Haskell and Racket. The Qwen team used their own unique data cleaning and balancing during the pre-training phase.

McEval Performance

Additionally, the multi-language code repair capabilities of Qwen 2.5 Coder 32B Instruct remain impressive, aiding users in understanding and modifying programming languages they are familiar with, significantly reducing the learning cost of unfamiliar languages. Similar to McEval, MdEval is a multi-language code repair benchmark, where Qwen 2.5 Coder 32B Instruct scored 75.2, ranking first among all open-source models.

MdEval Performance

Human Preference

To evaluate the alignment performance of Qwen 2.5 Coder 32B Instruct with human preferences, we constructed an internal annotated code preference evaluation benchmark called Code Arena (similar to Arena Hard). We used GPT-4o as the evaluation model for preference alignment, employing an ‘A vs. B win’ evaluation method, which measures the percentage of instances in the test set where model A’s score exceeds model B’s. The results below demonstrate the advantages of Qwen 2.5 Coder 32B Instruct in preference alignment.

human preference

Comprehensive model sizes to fit your device

Model sizes

References

Blog Post

HuggingFace