Upload folder using huggingface_hub
Browse files- all_models/README.md +259 -0
- all_models/bench_all_models.sh +74 -0
- all_models/bench_log.txt +69 -0
- all_models/results.md +22 -0
all_models/README.md
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- benchmark
|
| 4 |
+
- amd
|
| 5 |
+
- rocm
|
| 6 |
+
- local-llm
|
| 7 |
+
- linux
|
| 8 |
+
- latam
|
| 9 |
+
language:
|
| 10 |
+
- es
|
| 11 |
+
- en
|
| 12 |
+
license: apache-2.0
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# AMD RX 6700 XT + ROCm — Master Benchmark
|
| 16 |
+
|
| 17 |
+
> 🇲🇽 [Versión en Español](#versión-en-español) | 🇺🇸 [English Version](#english-version)
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
## English Version
|
| 22 |
+
|
| 23 |
+
### Hardware
|
| 24 |
+
|
| 25 |
+
| Component | Detail |
|
| 26 |
+
|-----------|--------|
|
| 27 |
+
| GPU | AMD RX 6700 XT 12GB (gfx1031) |
|
| 28 |
+
| CPU | AMD Ryzen 5 5600G |
|
| 29 |
+
| RAM | 16GB |
|
| 30 |
+
| OS | Pop!_OS 24.04 LTS |
|
| 31 |
+
| Ollama | 0.20.2 |
|
| 32 |
+
| ROCm fix | HSA_OVERRIDE_GFX_VERSION=10.3.0 |
|
| 33 |
+
|
| 34 |
+
### Results (average of 3 runs)
|
| 35 |
+
|
| 36 |
+
| Model | Category | Prefill (tok/s) | Decode (tok/s) | VRAM |
|
| 37 |
+
|-------|----------|----------------|----------------|------|
|
| 38 |
+
| llama3.2:3b | General / 3B / Dense | 1165.30 | 107.79 | ✅ full GPU |
|
| 39 |
+
| gemma4:e2b | General / 2B / Dense | 941.24 | 84.69 | ✅ full GPU |
|
| 40 |
+
| qwen2.5:7b | General / 7B / Dense | 1003.74 | 61.09 | ✅ full GPU |
|
| 41 |
+
| qwen2.5-coder:7b | Coding / 7B / Dense | 1073.21 | 60.86 | ✅ full GPU |
|
| 42 |
+
| mistral:7b | General / 7B / Dense | 431.96 | 60.36 | ✅ full GPU |
|
| 43 |
+
| gemma4:e4b | General / 4B / Dense | 334.35 | 21.23 | ⚠️ partial |
|
| 44 |
+
| phi3:mini | General / 3.8B / Dense | 234.12 | 20.24 | ⚠️ partial |
|
| 45 |
+
| gemma4:26b | General / 26B / MoE | 141.55 | 9.50 | ⚠️ RAM offload |
|
| 46 |
+
| deepseek-r1:14b | Reasoning / 14B / Dense | 59.48 | 4.91 | ⚠️ RAM offload |
|
| 47 |
+
| qwen2.5:14b | General / 14B / Dense | 162.33 | 4.84 | ⚠️ RAM offload |
|
| 48 |
+
| qwopus | Reasoning / 27B / IQ3_XS | 7.09 | 3.76 | ⚠️ RAM offload |
|
| 49 |
+
|
| 50 |
+
> **Key insight:** 7B models that fit in VRAM hit 60+ tok/s consistently.
|
| 51 |
+
> 14B+ models drop to ~5 tok/s due to RAM offload on 12GB VRAM.
|
| 52 |
+
|
| 53 |
+
### Which model for which task?
|
| 54 |
+
|
| 55 |
+
#### Fast chat / quick answers
|
| 56 |
+
**Best:** `llama3.2:3b` (107 tok/s) or `gemma4:e2b` (84 tok/s)
|
| 57 |
+
- Use when: you need instant responses, simple Q&A, quick summaries
|
| 58 |
+
- Avoid when: complex reasoning or long code generation needed
|
| 59 |
+
```bash
|
| 60 |
+
ollama run llama3.2:3b "Summarize this in one paragraph: ..."
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
#### General purpose / daily use
|
| 64 |
+
**Best:** `qwen2.5:7b` (61 tok/s)
|
| 65 |
+
- Use when: writing, analysis, explanations, multilingual tasks
|
| 66 |
+
- Context: handles Spanish and English well
|
| 67 |
+
- Tip: temperature 0.7 for creative tasks, 0.1 for factual
|
| 68 |
+
```bash
|
| 69 |
+
ollama run qwen2.5:7b "Explain the difference between DevOps and MLOps"
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
#### Coding assistant
|
| 73 |
+
**Best:** `qwen2.5-coder:7b` (60 tok/s)
|
| 74 |
+
- Use when: code generation, debugging, code review, shell scripts
|
| 75 |
+
- Tip: always include the full error message, not just the line
|
| 76 |
+
- Works well with: Python, Bash, Terraform, Docker
|
| 77 |
+
```bash
|
| 78 |
+
ollama run qwen2.5-coder:7b "Write a Python script that monitors GPU usage every 5 seconds"
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
#### Deep reasoning / complex problems
|
| 82 |
+
**Best:** `deepseek-r1:14b` (4.91 tok/s) — slow but worth it
|
| 83 |
+
- Use when: math problems, architecture decisions, multi-step analysis
|
| 84 |
+
- Note: uses `<think>` tags internally, expect longer responses
|
| 85 |
+
- Tip: be patient, the thinking process is where the quality comes from
|
| 86 |
+
```bash
|
| 87 |
+
ollama run deepseek-r1:14b "Design a fault-tolerant MLOps pipeline for a startup with limited budget"
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
#### Gemma 4 family (Google, April 2026)
|
| 91 |
+
- `gemma4:e2b`: fastest of the family, good for edge/interactive use
|
| 92 |
+
- `gemma4:e4b`: better quality, still usable speed on 12GB
|
| 93 |
+
- `gemma4:26b`: MoE architecture, activates only 4B params per token, but RAM offload kills speed on 12GB VRAM
|
| 94 |
+
```bash
|
| 95 |
+
ollama run gemma4:e4b "What is sliding window attention and why does it matter?"
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
#### Qwopus — Claude Opus reasoning distilled into Qwen3.5
|
| 99 |
+
**`qwopus` = Qwen3.5-27B fine-tuned on Claude 4.6 Opus reasoning chains**
|
| 100 |
+
- Very slow on 12GB (3.76 tok/s) due to heavy RAM offload
|
| 101 |
+
- Quality is noticeably better than base Qwen for structured reasoning
|
| 102 |
+
- Best use: offline complex analysis where you can wait
|
| 103 |
+
- Tip: set num_ctx to 4096 max on 12GB to avoid further slowdown
|
| 104 |
+
```bash
|
| 105 |
+
ollama run qwopus "Analyze the tradeoffs between serverless and container-based MLOps"
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
### ROCm optimization tips for RX 6700 XT
|
| 109 |
+
|
| 110 |
+
```bash
|
| 111 |
+
# Always export this before running ollama manually
|
| 112 |
+
export HSA_OVERRIDE_GFX_VERSION=10.3.0
|
| 113 |
+
|
| 114 |
+
# In ollama service (add to /etc/systemd/system/ollama.service.d/rocm-fix.conf)
|
| 115 |
+
Environment="HSA_OVERRIDE_GFX_VERSION=10.3.0"
|
| 116 |
+
Environment="ROCR_VISIBLE_DEVICES=0"
|
| 117 |
+
|
| 118 |
+
# Context length vs speed tradeoff
|
| 119 |
+
# 12GB VRAM fills fast with large context
|
| 120 |
+
# For 7B models: 16K context is fine
|
| 121 |
+
# For 14B+ models: keep at 4K-8K max or decode drops further
|
| 122 |
+
|
| 123 |
+
# Verify GPU is being used
|
| 124 |
+
journalctl -u ollama -n 5 --no-pager | grep "AMD Radeon"
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
### VRAM sweet spot guide
|
| 128 |
+
|
| 129 |
+
| Model size | Fits in 12GB? | Expected decode |
|
| 130 |
+
|-----------|---------------|----------------|
|
| 131 |
+
| 2-4B Q4 | ✅ Yes | 80-110 tok/s |
|
| 132 |
+
| 7B Q4 | ✅ Yes | 55-65 tok/s |
|
| 133 |
+
| 8B Q4 | ✅ Yes | 50-60 tok/s |
|
| 134 |
+
| 14B Q4 | ❌ RAM offload | 4-6 tok/s |
|
| 135 |
+
| 27B IQ3 | ❌ RAM offload | 3-5 tok/s |
|
| 136 |
+
| 26B MoE Q4 | ❌ RAM offload | 8-10 tok/s |
|
| 137 |
+
|
| 138 |
+
---
|
| 139 |
+
|
| 140 |
+
## Versión en Español
|
| 141 |
+
|
| 142 |
+
### Hardware
|
| 143 |
+
|
| 144 |
+
| Componente | Detalle |
|
| 145 |
+
|------------|---------|
|
| 146 |
+
| GPU | AMD RX 6700 XT 12GB (gfx1031) |
|
| 147 |
+
| CPU | AMD Ryzen 5 5600G |
|
| 148 |
+
| RAM | 16GB |
|
| 149 |
+
| OS | Pop!_OS 24.04 LTS |
|
| 150 |
+
| Ollama | 0.20.2 |
|
| 151 |
+
| Fix ROCm | HSA_OVERRIDE_GFX_VERSION=10.3.0 |
|
| 152 |
+
|
| 153 |
+
### Resultados (promedio de 3 corridas)
|
| 154 |
+
|
| 155 |
+
| Modelo | Categoría | Prefill (tok/s) | Decode (tok/s) | VRAM |
|
| 156 |
+
|--------|-----------|----------------|----------------|------|
|
| 157 |
+
| llama3.2:3b | General / 3B / Dense | 1165.30 | 107.79 | ✅ GPU completa |
|
| 158 |
+
| gemma4:e2b | General / 2B / Dense | 941.24 | 84.69 | ✅ GPU completa |
|
| 159 |
+
| qwen2.5:7b | General / 7B / Dense | 1003.74 | 61.09 | ✅ GPU completa |
|
| 160 |
+
| qwen2.5-coder:7b | Coding / 7B / Dense | 1073.21 | 60.86 | ✅ GPU completa |
|
| 161 |
+
| mistral:7b | General / 7B / Dense | 431.96 | 60.36 | ✅ GPU completa |
|
| 162 |
+
| gemma4:e4b | General / 4B / Dense | 334.35 | 21.23 | ⚠️ parcial |
|
| 163 |
+
| phi3:mini | General / 3.8B / Dense | 234.12 | 20.24 | ⚠️ parcial |
|
| 164 |
+
| gemma4:26b | General / 26B / MoE | 141.55 | 9.50 | ⚠️ offload a RAM |
|
| 165 |
+
| deepseek-r1:14b | Reasoning / 14B / Dense | 59.48 | 4.91 | ⚠️ offload a RAM |
|
| 166 |
+
| qwen2.5:14b | General / 14B / Dense | 162.33 | 4.84 | ⚠️ offload a RAM |
|
| 167 |
+
| qwopus | Reasoning / 27B / IQ3_XS | 7.09 | 3.76 | ⚠️ offload a RAM |
|
| 168 |
+
|
| 169 |
+
> **Conclusión clave:** Modelos 7B que caben en VRAM logran 60+ tok/s consistente.
|
| 170 |
+
> Modelos 14B+ caen a ~5 tok/s por offload a RAM en 12GB VRAM.
|
| 171 |
+
|
| 172 |
+
### ¿Qué modelo usar para qué?
|
| 173 |
+
|
| 174 |
+
#### Chat rápido / respuestas inmediatas
|
| 175 |
+
**Mejor:** `llama3.2:3b` (107 tok/s) o `gemma4:e2b` (84 tok/s)
|
| 176 |
+
- Usar cuando: necesitas respuestas instantáneas, preguntas simples, resúmenes rápidos
|
| 177 |
+
- Evitar cuando: necesitas razonamiento complejo o código extenso
|
| 178 |
+
```bash
|
| 179 |
+
ollama run llama3.2:3b "Resume esto en un párrafo: ..."
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
#### Uso general / día a día
|
| 183 |
+
**Mejor:** `qwen2.5:7b` (61 tok/s)
|
| 184 |
+
- Usar cuando: redacción, análisis, explicaciones, tareas multilingüe
|
| 185 |
+
- Maneja bien español e inglés
|
| 186 |
+
- Tip: temperatura 0.7 para tareas creativas, 0.1 para preguntas factuales
|
| 187 |
+
```bash
|
| 188 |
+
ollama run qwen2.5:7b "Explica la diferencia entre DevOps y MLOps"
|
| 189 |
+
```
|
| 190 |
+
|
| 191 |
+
#### Asistente de código
|
| 192 |
+
**Mejor:** `qwen2.5-coder:7b` (60 tok/s)
|
| 193 |
+
- Usar cuando: generar código, debuggear, revisar scripts, Terraform, Docker
|
| 194 |
+
- Tip: siempre incluye el mensaje de error completo, no solo la línea
|
| 195 |
+
- Funciona bien con: Python, Bash, Terraform, Docker
|
| 196 |
+
```bash
|
| 197 |
+
ollama run qwen2.5-coder:7b "Escribe un script en Python que monitoree el uso de GPU cada 5 segundos"
|
| 198 |
+
```
|
| 199 |
+
|
| 200 |
+
#### Razonamiento profundo / problemas complejos
|
| 201 |
+
**Mejor:** `deepseek-r1:14b` (4.91 tok/s) — lento pero vale la pena
|
| 202 |
+
- Usar cuando: matemáticas, decisiones de arquitectura, análisis multi-paso
|
| 203 |
+
- Nota: usa tags `<think>` internamente, espera respuestas más largas
|
| 204 |
+
- Tip: ten paciencia, el proceso de pensamiento es donde está la calidad
|
| 205 |
+
```bash
|
| 206 |
+
ollama run deepseek-r1:14b "Diseña un pipeline de MLOps tolerante a fallos para una startup con presupuesto limitado"
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
#### Familia Gemma 4 (Google, abril 2026)
|
| 210 |
+
- `gemma4:e2b`: el más rápido de la familia, bueno para uso interactivo
|
| 211 |
+
- `gemma4:e4b`: mejor calidad, velocidad usable en 12GB
|
| 212 |
+
- `gemma4:26b`: arquitectura MoE, activa solo 4B params por token, pero el offload a RAM mata la velocidad en 12GB
|
| 213 |
+
```bash
|
| 214 |
+
ollama run gemma4:e4b "¿Qué es el sliding window attention y por qué importa?"
|
| 215 |
+
```
|
| 216 |
+
|
| 217 |
+
#### Qwopus — razonamiento de Claude Opus destilado en Qwen3.5
|
| 218 |
+
**`qwopus` = Qwen3.5-27B fine-tuned con chains de razonamiento de Claude 4.6 Opus**
|
| 219 |
+
- Muy lento en 12GB (3.76 tok/s) por offload pesado a RAM
|
| 220 |
+
- La calidad de razonamiento estructurado es notablemente mejor que el Qwen base
|
| 221 |
+
- Mejor uso: análisis complejos offline donde puedes esperar
|
| 222 |
+
- Tip: limita num_ctx a 4096 máximo en 12GB para evitar más lentitud
|
| 223 |
+
```bash
|
| 224 |
+
ollama run qwopus "Analiza los tradeoffs entre serverless y contenedores para MLOps"
|
| 225 |
+
```
|
| 226 |
+
|
| 227 |
+
### Tips de optimización ROCm para RX 6700 XT
|
| 228 |
+
|
| 229 |
+
```bash
|
| 230 |
+
# Siempre exporta esto antes de usar ollama manualmente
|
| 231 |
+
export HSA_OVERRIDE_GFX_VERSION=10.3.0
|
| 232 |
+
|
| 233 |
+
# En el servicio ollama (agrega a rocm-fix.conf)
|
| 234 |
+
Environment="HSA_OVERRIDE_GFX_VERSION=10.3.0"
|
| 235 |
+
Environment="ROCR_VISIBLE_DEVICES=0"
|
| 236 |
+
|
| 237 |
+
# Tradeoff context length vs velocidad
|
| 238 |
+
# Para modelos 7B: 16K context está bien
|
| 239 |
+
# Para modelos 14B+: máximo 4K-8K o el decode baja aún más
|
| 240 |
+
|
| 241 |
+
# Verificar que la GPU está siendo usada
|
| 242 |
+
journalctl -u ollama -n 5 --no-pager | grep "AMD Radeon"
|
| 243 |
+
```
|
| 244 |
+
|
| 245 |
+
### Guía de VRAM para 12GB
|
| 246 |
+
|
| 247 |
+
| Tamaño modelo | ¿Cabe en 12GB? | Decode esperado |
|
| 248 |
+
|--------------|----------------|----------------|
|
| 249 |
+
| 2-4B Q4 | ✅ Sí | 80-110 tok/s |
|
| 250 |
+
| 7B Q4 | ✅ Sí | 55-65 tok/s |
|
| 251 |
+
| 8B Q4 | ✅ Sí | 50-60 tok/s |
|
| 252 |
+
| 14B Q4 | ❌ Offload RAM | 4-6 tok/s |
|
| 253 |
+
| 27B IQ3 | ❌ Offload RAM | 3-5 tok/s |
|
| 254 |
+
| 26B MoE Q4 | ❌ Offload RAM | 8-10 tok/s |
|
| 255 |
+
|
| 256 |
+
---
|
| 257 |
+
|
| 258 |
+
*Positronica Labs — CDMX, México*
|
| 259 |
+
*Hardware de segunda mano. Software libre. AI para todos.*
|
all_models/bench_all_models.sh
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
export HSA_OVERRIDE_GFX_VERSION=10.3.0
|
| 3 |
+
export NO_COLOR=1
|
| 4 |
+
export OLLAMA_HOST=127.0.0.1:11434
|
| 5 |
+
|
| 6 |
+
PROMPT="Explain what MLOps is in 3 steps"
|
| 7 |
+
RESULTS_FILE="$HOME/HF_repos/benchmarks/all_models/results.md"
|
| 8 |
+
DATE=$(date '+%Y-%m-%d %H:%M')
|
| 9 |
+
RUNS=3
|
| 10 |
+
|
| 11 |
+
mkdir -p "$(dirname "$RESULTS_FILE")"
|
| 12 |
+
|
| 13 |
+
MODELS=(
|
| 14 |
+
"gemma4:e2b|General / 2B / Dense"
|
| 15 |
+
"gemma4:e4b|General / 4B / Dense"
|
| 16 |
+
"gemma4:26b|General / 26B / MoE"
|
| 17 |
+
"qwopus|Reasoning / 27B / IQ3_XS"
|
| 18 |
+
"deepseek-r1:14b|Reasoning / 14B / Dense"
|
| 19 |
+
"qwen2.5:14b|General / 14B / Dense"
|
| 20 |
+
"qwen2.5:7b|General / 7B / Dense"
|
| 21 |
+
"qwen2.5-coder:7b|Coding / 7B / Dense"
|
| 22 |
+
"mistral:7b|General / 7B / Dense"
|
| 23 |
+
"phi3:mini|General / 3.8B / Dense"
|
| 24 |
+
"llama3.2:3b|General / 3B / Dense"
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
printf "# AMD RX 6700 XT + ROCm Master Benchmark\n" > "$RESULTS_FILE"
|
| 28 |
+
printf "**Date:** %s\n\n" "$DATE" >> "$RESULTS_FILE"
|
| 29 |
+
printf "| Model | Category | Prefill (tok/s) | Decode (tok/s) | GPU |\n" >> "$RESULTS_FILE"
|
| 30 |
+
printf "|-------|----------|----------------|----------------|-----|\n" >> "$RESULTS_FILE"
|
| 31 |
+
|
| 32 |
+
echo "Iniciando benchmark de ${#MODELS[@]} modelos..."
|
| 33 |
+
|
| 34 |
+
for ENTRY in "${MODELS[@]}"; do
|
| 35 |
+
MODEL="${ENTRY%%|*}"
|
| 36 |
+
CATEGORY="${ENTRY##*|}"
|
| 37 |
+
echo ""
|
| 38 |
+
echo "[$MODEL] $CATEGORY"
|
| 39 |
+
PREFILL_SUM=0
|
| 40 |
+
DECODE_SUM=0
|
| 41 |
+
VALID_RUNS=0
|
| 42 |
+
for i in $(seq 1 $RUNS); do
|
| 43 |
+
OUTPUT=$(echo "$PROMPT" | ollama run "$MODEL" --verbose 2>&1)
|
| 44 |
+
PREFILL=$(echo "$OUTPUT" | awk '/prompt eval rate/ {print $4}')
|
| 45 |
+
DECODE=$(echo "$OUTPUT" | awk '/eval rate:/ && !/prompt/ {print $3}')
|
| 46 |
+
if [[ -n "$PREFILL" && -n "$DECODE" ]]; then
|
| 47 |
+
PREFILL_SUM=$(awk "BEGIN {print $PREFILL_SUM + $PREFILL}")
|
| 48 |
+
DECODE_SUM=$(awk "BEGIN {print $DECODE_SUM + $DECODE}")
|
| 49 |
+
VALID_RUNS=$((VALID_RUNS + 1))
|
| 50 |
+
echo " Run $i: prefill=$PREFILL decode=$DECODE"
|
| 51 |
+
else
|
| 52 |
+
echo " Run $i: error"
|
| 53 |
+
fi
|
| 54 |
+
done
|
| 55 |
+
if [[ $VALID_RUNS -gt 0 ]]; then
|
| 56 |
+
PREFILL_AVG=$(awk "BEGIN {printf \"%.2f\", $PREFILL_SUM / $VALID_RUNS}")
|
| 57 |
+
DECODE_AVG=$(awk "BEGIN {printf \"%.2f\", $DECODE_SUM / $VALID_RUNS}")
|
| 58 |
+
IS_SLOW=$(awk "BEGIN {print ($DECODE_AVG < 5) ? 1 : 0}")
|
| 59 |
+
[[ $IS_SLOW -eq 1 ]] && GPU_STATUS="ROCm WARN offload" || GPU_STATUS="ROCm OK"
|
| 60 |
+
else
|
| 61 |
+
PREFILL_AVG="N/A"
|
| 62 |
+
DECODE_AVG="N/A"
|
| 63 |
+
GPU_STATUS="FAIL"
|
| 64 |
+
fi
|
| 65 |
+
echo "| $MODEL | $CATEGORY | $PREFILL_AVG | $DECODE_AVG | $GPU_STATUS |" >> "$RESULTS_FILE"
|
| 66 |
+
echo "-> $MODEL: decode=$DECODE_AVG tok/s"
|
| 67 |
+
done
|
| 68 |
+
|
| 69 |
+
printf "\n## Notas\n" >> "$RESULTS_FILE"
|
| 70 |
+
printf -- "- 3 runs por modelo\n" >> "$RESULTS_FILE"
|
| 71 |
+
printf -- "- gfx1031 requiere HSA_OVERRIDE_GFX_VERSION=10.3.0\n\n" >> "$RESULTS_FILE"
|
| 72 |
+
printf "*Positronica Labs*\n" >> "$RESULTS_FILE"
|
| 73 |
+
|
| 74 |
+
echo "Listo: $RESULTS_FILE"
|
all_models/bench_log.txt
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nohup: ignoring input
|
| 2 |
+
Iniciando benchmark de 11 modelos...
|
| 3 |
+
|
| 4 |
+
[gemma4:e2b] General / 2B / Dense
|
| 5 |
+
Run 1: prefill=635.98 decode=84.76
|
| 6 |
+
Run 2: prefill=1095.17 decode=84.09
|
| 7 |
+
Run 3: prefill=1092.58 decode=85.22
|
| 8 |
+
-> gemma4:e2b: decode=84.69 tok/s
|
| 9 |
+
|
| 10 |
+
[gemma4:e4b] General / 4B / Dense
|
| 11 |
+
Run 1: prefill=161.56 decode=20.91
|
| 12 |
+
Run 2: prefill=420.65 decode=21.48
|
| 13 |
+
Run 3: prefill=420.84 decode=21.31
|
| 14 |
+
-> gemma4:e4b: decode=21.23 tok/s
|
| 15 |
+
|
| 16 |
+
[gemma4:26b] General / 26B / MoE
|
| 17 |
+
Run 1: prefill=3.83 decode=8.97
|
| 18 |
+
Run 2: prefill=226.03 decode=9.55
|
| 19 |
+
Run 3: prefill=194.78 decode=9.97
|
| 20 |
+
-> gemma4:26b: decode=9.50 tok/s
|
| 21 |
+
|
| 22 |
+
[qwopus] Reasoning / 27B / IQ3_XS
|
| 23 |
+
Run 1: prefill=3.99 decode=3.70
|
| 24 |
+
Run 2: prefill=9.29 decode=3.79
|
| 25 |
+
Run 3: prefill=8.00 decode=3.79
|
| 26 |
+
-> qwopus: decode=3.76 tok/s
|
| 27 |
+
|
| 28 |
+
[deepseek-r1:14b] Reasoning / 14B / Dense
|
| 29 |
+
Run 1: prefill=30.47 decode=4.90
|
| 30 |
+
Run 2: prefill=73.63 decode=4.94
|
| 31 |
+
Run 3: prefill=74.34 decode=4.89
|
| 32 |
+
-> deepseek-r1:14b: decode=4.91 tok/s
|
| 33 |
+
|
| 34 |
+
[qwen2.5:14b] General / 14B / Dense
|
| 35 |
+
Run 1: prefill=93.92 decode=4.82
|
| 36 |
+
Run 2: prefill=196.16 decode=4.89
|
| 37 |
+
Run 3: prefill=196.91 decode=4.82
|
| 38 |
+
-> qwen2.5:14b: decode=4.84 tok/s
|
| 39 |
+
|
| 40 |
+
[qwen2.5:7b] General / 7B / Dense
|
| 41 |
+
Run 1: prefill=574.59 decode=60.49
|
| 42 |
+
Run 2: prefill=953.09 decode=61.39
|
| 43 |
+
Run 3: prefill=1483.54 decode=61.39
|
| 44 |
+
-> qwen2.5:7b: decode=61.09 tok/s
|
| 45 |
+
|
| 46 |
+
[qwen2.5-coder:7b] Coding / 7B / Dense
|
| 47 |
+
Run 1: prefill=222.64 decode=60.80
|
| 48 |
+
Run 2: prefill=1504.39 decode=61.20
|
| 49 |
+
Run 3: prefill=1492.61 decode=60.58
|
| 50 |
+
-> qwen2.5-coder:7b: decode=60.86 tok/s
|
| 51 |
+
|
| 52 |
+
[mistral:7b] General / 7B / Dense
|
| 53 |
+
Run 1: prefill=279.20 decode=59.85
|
| 54 |
+
Run 2: prefill=604.70 decode=60.60
|
| 55 |
+
Run 3: prefill=411.98 decode=60.62
|
| 56 |
+
-> mistral:7b: decode=60.36 tok/s
|
| 57 |
+
|
| 58 |
+
[phi3:mini] General / 3.8B / Dense
|
| 59 |
+
Run 1: prefill=27.76 decode=20.43
|
| 60 |
+
Run 2: prefill=283.88 decode=19.89
|
| 61 |
+
Run 3: prefill=390.73 decode=20.40
|
| 62 |
+
-> phi3:mini: decode=20.24 tok/s
|
| 63 |
+
|
| 64 |
+
[llama3.2:3b] General / 3B / Dense
|
| 65 |
+
Run 1: prefill=690.30 decode=107.59
|
| 66 |
+
Run 2: prefill=912.40 decode=107.21
|
| 67 |
+
Run 3: prefill=1893.20 decode=108.58
|
| 68 |
+
-> llama3.2:3b: decode=107.79 tok/s
|
| 69 |
+
Listo: /home/gio/HF_repos/benchmarks/all_models/results.md
|
all_models/results.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AMD RX 6700 XT + ROCm Master Benchmark
|
| 2 |
+
**Date:** 2026-04-05 12:40
|
| 3 |
+
|
| 4 |
+
| Model | Category | Prefill (tok/s) | Decode (tok/s) | GPU |
|
| 5 |
+
|-------|----------|----------------|----------------|-----|
|
| 6 |
+
| gemma4:e2b | General / 2B / Dense | 941.24 | 84.69 | ROCm OK |
|
| 7 |
+
| gemma4:e4b | General / 4B / Dense | 334.35 | 21.23 | ROCm OK |
|
| 8 |
+
| gemma4:26b | General / 26B / MoE | 141.55 | 9.50 | ROCm OK |
|
| 9 |
+
| qwopus | Reasoning / 27B / IQ3_XS | 7.09 | 3.76 | ROCm WARN offload |
|
| 10 |
+
| deepseek-r1:14b | Reasoning / 14B / Dense | 59.48 | 4.91 | ROCm WARN offload |
|
| 11 |
+
| qwen2.5:14b | General / 14B / Dense | 162.33 | 4.84 | ROCm WARN offload |
|
| 12 |
+
| qwen2.5:7b | General / 7B / Dense | 1003.74 | 61.09 | ROCm OK |
|
| 13 |
+
| qwen2.5-coder:7b | Coding / 7B / Dense | 1073.21 | 60.86 | ROCm OK |
|
| 14 |
+
| mistral:7b | General / 7B / Dense | 431.96 | 60.36 | ROCm OK |
|
| 15 |
+
| phi3:mini | General / 3.8B / Dense | 234.12 | 20.24 | ROCm OK |
|
| 16 |
+
| llama3.2:3b | General / 3B / Dense | 1165.30 | 107.79 | ROCm OK |
|
| 17 |
+
|
| 18 |
+
## Notas
|
| 19 |
+
- 3 runs por modelo
|
| 20 |
+
- gfx1031 requiere HSA_OVERRIDE_GFX_VERSION=10.3.0
|
| 21 |
+
|
| 22 |
+
*Positronica Labs*
|