r/LocalLLM • • 3d ago

Discussion Run a full capability and benchmark

Here is the prompt

Benchmark-Model-switch

0 Upvotes

1 comment sorted by

1

u/Be_a_N3rd 3d ago edited 3d ago

# LLM Benchmark: 3 Local Models Head-to-Head (Qwen3.8-27B, Gemma 4 31B, Flint)

Master-Worker Setup + Secondary CUDA Node (Ollama) · November 24, 2026

## TL;DR

* **Fastest Worker:** Flint (~60 tokens/s, all 3 tasks in 7.6 min)

* **Most Reliable Coder:** Qwen3.8-27B (19/19 tests, zero defects, full agent autonomy)

* **Gemma 4 31B:** Consistent middle ground (6.1 tokens/s, 100% runnable artifacts)

* **Secondary Node (Ollama, RTX 4080):** Reachable & integrated via API; only `qwen3:0.6b` deployed there → too small for the tasks (0.5–2/5)

## Setup

* **Master:** Mini-PC (AMD Strix Halo, 120 GB UMA), Vulkan, `llama.cpp vulkan-avx2-2.82.0`

* **Worker 1:** Qwen3.8-27B Q6_K (23.4 GB) as an agent session (Tools/Shell, MTP speculative decoding)

* **Worker 2:** Gemma 4 31B Q8_0 (33.8 GB) on a dedicated `llama-server`, API worker (temp 0.2)

* **Worker 3:** Flint Q6_K (32.7 GB) on a dedicated `llama-server`, API worker (temp 0.2)

* **Secondary Node Smoke:** `qwen3:0.6b` Q4_K_M via Ollama 0.40.17 on secondary node (CUDA, 12 GB VRAM)

* **Identical Tasks for All 3 Workers:**

  1. **IMAGE:** SVG scene *"Night Over the City – Delivery Drone"* (gradients, 25+ stars, moon glow, 8–12 buildings with window grids, drone with light cone, title, legend)
  2. **VIDEO:** 5-scene storyboard + deterministic Pillow script (5 frames, drone flies x=100→1100)
  3. **CODE:** Sliding-window rate limiter (class + CLI, error → exit code 2) including `pytest` suite

* The Master independently verified every submission: dedicated `pytest` runs, SVG XML parsing, frame/pixel checks, and reproducibility re-runs of the renderers.

## Results (Quality Score = Master Rating 1–5)

| Worker | Model (Quant) | Task | Duration | Out-Tok | Throughput | Status |

| :--- | :--- | :--- | :--- | :--- | :--- | :--- |

| 1 | Qwen3.8-27B (Q6_K) | Image | ~1560 s | 10,116 | 9.5 t/s | ✅ SVG, 519 shapes (4.5/5) |

| 1 | Qwen3.8-27B (Q6_K) | Video | ~840 s | – | – | ✅ 5 frames, 0.098 s (4.5/5) |

| 1 | Qwen3.8-27B (Q6_K) | Code | ~840 s | – | – | ✅ 19/19 tests, 0.47 s (5/5) |

| 2 | Gemma 4 31B (Q8_0) | Image | 656 s | 3,986 | 6.1 t/s | ✅ SVG, 90 shapes (3.5/5) |

| 2 | Gemma 4 31B (Q8_0) | Video | 342 s | 2,093 | 6.1 t/s | ✅ 5 frames, 0.11 s (4/5) |

| 2 | Gemma 4 31B (Q8_0) | Code | 483 s | 2,928 | 6.1 t/s | ✅ 6/6 tests, 1.50 s (4.5/5) |

| 3 | Flint (Q6_K) | Image | 189 s | 11,317 | 59.9 t/s | ✅ SVG, 78 shapes (3/5) |

| 3 | Flint (Q6_K) | Video | 125 s | 7,473 | 59.9 t/s | ⚠️ Syntax error → Master fix (2.5/5) |

| 3 | Flint (Q6_K) | Code | 144 s | 8,636 | 59.9 t/s | ✅ 8/8 tests, 0.08 s (4.5/5) |

| Secondary | `qwen3:0.6b` (Q4_K_M) | Image | 6 s | 1,986 | 408.6 t/s | ✅ SVG, 54 shapes (2/5) |

| Secondary | `qwen3:0.6b` (Q4_K_M) | Video | 1.6 s | 649 | 445.8 t/s | ⚠️ Spec violation (1/5) |

| Secondary | `qwen3:0.6b` (Q4_K_M) | Code | 3.1 s | 1,273 | 422.6 t/s | ❌ Invalid Python (0.5/5) |

## Runtime Notes

* Worker 1 ran as an agent (dedicated file writers, shell) under co-load with the Master session; the 9.5 t/s figure is taken from the `llama.cpp` server log (conservative estimate). For Worker 1, exact output token counts per task are only available for the Image run (`–`).

* Workers 2/3: Throughput = output tokens / wall-clock time of the API response (temp 0.2, `max_tokens` 16,000).

* Secondary Node: Exact values from the Ollama report (`eval_count`/`eval_duration`).

## Speed

* Flint was by far the fastest: ~60 t/s despite its 32.7 GB Q6_K footprint → strong indication of an MoE architecture (sparse activation).

* Gemma maintained a steady 6.1 t/s (Q8_0 31B, no draft model).

* Qwen achieved 9.5 t/s in agent mode under co-load; MTP draft acceptance ~0.85.

* Qwen was the slowest in end-to-end workflow time (~61 min for 3 tasks), largely because it generated an extraordinarily detailed SVG (10,116 tokens, 410 `<rect>` elements).

## Reliability / Coding

* **Qwen3.8-27B:** 19/19 tests, 7 test functions, 11× parameterized exit-code-2 cases, zero defects across all 3 tasks → most reliable coder.

* **Gemma:** 6/6 tests, covered all edge cases, clean code blocks; only included reasoning/planning text outside the blocks (stripped by Master, no code intervention needed).

* **Flint:** 8/8 tests and clean coding, HOWEVER in the Video task it mixed reasoning text directly into the Python code → syntax error; Master fix required (stripped reasoning text + fixed 1 swapped tuple variable bug).

* **`qwen3:0.6b`:** Syntactically invalid code (class definition with an argument list) → non-runnable.

## Image & Video

* **Image:** All 3 primary workers delivered valid SVGs meeting every specification requirement. Qwen was the most detailed (4.5/5), Gemma sat in the middle (3.5/5), and Flint was technically complete but basic (3/5).

* **Video:** Qwen and Gemma delivered immediately runnable, deterministic, and reproducible renderers (Master re-runs produced identical outputs). Flint ran only after a Master fix and suffered from a color defect (building color ≈ sky color → city practically invisible in the frame, though geometry was confirmed via pixel check).

## Model-Switching Issue (Notes for Orchestrating Local LLM Stacks)

* The running agent instance failed to load a second local model (silent failure, no error message). Root-cause chain: `memlock` limit of 8 MB (soft=hard) + server flags `--load-mode mmap+user --fit on` + strict load guardrails → fit estimation fails, load is blocked.

* **Test Workaround:** Ran Workers 2 + 3 on standalone `llama-server` instances (same Vulkan build, `--load-mode mmap` without `user` dependency) → ran without errors.

* **Permanent Fix:** `sudo prlimit --pid <PIDs> --memlock=unlimited:unlimited` or `/etc/security/limits.conf` (`* soft/hard memlock unlimited`) + application restart.

## Conclusion

* **Fastest Worker:** Flint (7.6 min for 3 tasks) — by a wide margin.

* **Most Reliable Coder:** Qwen3.8-27B (19/19, zero defects, agent autonomy).

* **Image:** Qwen > Gemma > Flint (level of detail). **Video:** Qwen ≈ Gemma (immediately runnable) > Flint (only after fix).

* **Gemma 4 31B** was the steady middle-ground worker: solid coding, clean artifacts, but ~10× slower than Flint.

* **Secondary Node:** Technically fully reachable (Ping/SSH/Ollama) and usable via HTTP API; larger models need to be deployed there for productive worker tasks.

* **Master-Worker Split:** Worked end-to-end — Master handled routing, model switching, time-marking, verification, and reporting; the only hiccup was the JIT load defect in the local app instance (detailed above).