Aller au contenu
Run LLM Locally

Modèle · Alibaba Qwen

Qwen2.5 Coder 32B Instruct : VRAM et matériel nécessaires

En Q4_K_M avec un contexte de 8K, Qwen2.5 Coder 32B Instruct demande environ 22,4 Go : un GPU de 24 Go ou plus le fait tourner entièrement en VRAM.

  • Paramètres32,5B
  • Contexte max128K
  • LicenceApache-2.0

Caractéristiques

Organisation
Alibaba Qwen
Architecture
qwen2
Sortie
novembre 2024
Couches
64
Dimension cachée
5120
Têtes d'attention
40
Têtes KV
8
Dimension par tête
128
Vocabulaire
152 064
Cache KV pour 1K tokens (f16)
0,25 Go

Spécification officielleDonnées mises à jour il y a 24 joursSource: Hugging Face config.json + model card

Quantifications et mémoire

Qwen2.5 Coder 32B Instruct : mémoire par quantification, contexte 8K
QuantificationTaille du fichierMémoire nécessaireMémoire GPU minimaleQualité
BF16Non disponible~66,5 Go80 GoRéférence (non quantifié)
Q8_032,4 Go~36,7 Go48 GoQuasi sans perte
Q6_K25 Go~29,1 Go32 GoQuasi sans perte
Q5_K_M21,7 Go~25,6 Go32 GoTrès bonne
Q4_K_MLa plus utilisée18,5 Go~22,4 Go24 GoBonne — le choix courant
IQ4_XS16,5 Go~20,7 Go24 GoBonne — le choix courant
Q3_K_M14,8 Go~18,8 Go20 GoPerte perceptible
Q2_K11,5 Go~15,6 Go16 GoPerte importante

Tailles de fichier : non disponibles tant qu'elles ne sont pas importées du dépôt du modèle. Mémoire = poids (estimés d'après les bits par poids) + cache KV + surcoût runtime + marge de sécurité. (BF16 ≈ 16 bpw, Q8_0 ≈ 8,5 bpw, Q6_K ≈ 6,57 bpw, Q5_K_M ≈ 5,7 bpw, Q4_K_M ≈ 4,9 bpw, IQ4_XS ≈ 4,46 bpw, Q3_K_M ≈ 4 bpw, Q2_K ≈ 3,17 bpw)

Q4, Q5 ou Q8 : comment choisir sa quantification

Les GPU qui font tourner Qwen2.5 Coder 32B Instruct

Qwen2.5 Coder 32B Instruct Q4_K_M · contexte 8K, un GPU
RTX 509032 Go · 64 Go RAM~22,4 Go · 53–76 tok/s estimationExcellent
RTX 409024 Go · 64 Go RAM~22,4 Go · 33–45 tok/s estimationCompatible
RTX 309024 Go · 64 Go RAM~22,4 Go · 31–42 tok/s estimationCompatible
RX 7900 XTX24 Go · 64 Go RAM~22,4 Go · 27–39 tok/s estimationCompatible
RTX 5060 Ti 16 GB16 Go · 64 Go RAM~22,4 Go · 2,5–5 tok/s estimationOffload CPU/GPU
RTX 5070 Ti16 Go · 64 Go RAM~22,4 Go · 3–5,5 tok/s estimationOffload CPU/GPU
RTX 508016 Go · 64 Go RAM~22,4 Go · 3–5,5 tok/s estimationOffload CPU/GPU
RTX 4070 Ti SUPER16 Go · 64 Go RAM~22,4 Go · 3–5,5 tok/s estimationOffload CPU/GPU
RX 9070 XT16 Go · 64 Go RAM~22,4 Go · 2,5–5 tok/s estimationOffload CPU/GPU
RTX 4060 Ti 16 GB16 Go · 64 Go RAM~22,4 Go · 2,5–4,5 tok/s estimationPossible mais lent
RTX 3060 12 GB12 Go · 64 Go RAM~22,4 Go · 1,8–3,5 tok/s estimationPossible mais lent
RTX 407012 Go · 64 Go RAM~22,4 Go · 1,8–3,5 tok/s estimationPossible mais lent
RTX 507012 Go · 64 Go RAM~22,4 Go · 1,9–3,5 tok/s estimationPossible mais lent
RTX 40608 Go · 64 Go RAM~22,4 Go · 1,3–2,5 tok/s estimationPossible mais lent

Les Mac qui font tourner Qwen2.5 Coder 32B Instruct

Qwen2.5 Coder 32B Instruct Q4_K_M · contexte 8K
M3 Ultra (80-core GPU) · 512 GoMac Studio~22,2 Go · 22–36 tok/s estimationExcellent
M4 Max (40-core GPU) · 128 GoMacBook Pro 14, MacBook Pro 16~22,2 Go · 16–24 tok/s estimationExcellent
M3 Max (40-core GPU) · 128 GoMacBook Pro 14, MacBook Pro 16~22,2 Go · 12–18 tok/s estimationExcellent
M4 Pro (20-core GPU) · 64 GoMac mini, MacBook Pro 14~22,2 Go · 8–12 tok/s estimationCompatible
M4 Max (32-core GPU) · 36 GoMacBook Pro 14, MacBook Pro 16~22,2 Go · 12–18 tok/s estimationCompatible
M4 · 32 GoMacBook Air, MacBook Pro 14~22,2 Go · Pas de donnéesCompatible avec limites
M5 · 32 GoMacBook Pro 14~22,2 Go · Pas de donnéesCompatible avec limites
M3 · 24 GoMacBook Air, MacBook Pro 14~22,2 Go · Pas de donnéesIncompatible

EstimationDonnées mises à jour il y a 24 joursSource: moteur Run LLM Locally

Les limites en clair

Le cache KV grandit avec le contexte : à 32K, il ajoute environ 8 Go aux poids.

Avec moins de 8 Go de VRAM, choisissez une quantification plus petite ou un modèle plus petit de la même famille.

Où acheter

Les prix et les liens suivent le marché choisi.

Radeon RX 7900 XTX

AMD

CompatibleFait tourner Qwen2.5 Coder 32B Instruct Q4_K_M entièrement en mémoire

Prix indisponible

Disponibilité inconnue

Voir sur amazon.fr

Lien affilié

MacBook Pro 14 M3 Pro

Apple Silicon

CompatibleFait tourner Qwen2.5 Coder 32B Instruct Q4_K_M entièrement en mémoire

Prix indisponible

Disponibilité inconnue

Voir sur amazon.fr

Lien affilié

AMD Ryzen AI Max+ 395

PC à mémoire unifiée

CompatibleFait tourner Qwen2.5 Coder 32B Instruct Q4_K_M entièrement en mémoire

Prix indisponible

Disponibilité inconnue

Voir sur amazon.fr

Lien affilié

Aucune offre importée pour ce marché : le lien ouvre une recherche sur la boutique.

Questions fréquentes

Combien de VRAM faut-il pour Qwen2.5 Coder 32B Instruct ?
Environ 22,4 Go en Q4_K_M avec un contexte de 8K, cache KV et surcoût compris. En Q8_0, il faut environ 36,7 Go. Un contexte plus long ajoute davantage : environ 8 Go de cache KV à 32K.
Qwen2.5 Coder 32B Instruct tourne-t-il sur Mac ?
Oui, sur un Mac dont le GPU peut utiliser au moins 22,2 Go, par exemple M4 32 Go. Par défaut, macOS laisse le GPU utiliser environ deux tiers à trois quarts de la mémoire unifiée.
À quelle vitesse tourne Qwen2.5 Coder 32B Instruct ?
Sur une RTX 4090, nous estimons 33–45 tok/s en Q4_K_M. C'est une estimation fondée sur la bande passante mémoire (confiance faible) tant que des benchmarks ne sont pas importés.