Flash Coder IQ1_M on a handheld iGPU — one-shot C tasks + agentic C work

#30
by 7eks - opened

Flash Coder IQ1_M on a handheld iGPU — one-shot C tasks + agentic C work (OpenCode)**

Thanks for the release. I tested the IQ1_M on a GPD Win Mini (Ryzen 7 7840U, Radeon 780M iGPU, 46 GiB shared RAM, 20 W) with llama.cpp 0.9.0 Vulkan: flash-attn, q8_0 KV cache, --lazy-mode on, about 28.6 GiB in GPU memory, about 10 t/s generation and about 140 t/s prompt processing. I used Qwen's usual thinking-mode sampling (temp 1.0, top-p 0.95, top-k 20) with a 16k reasoning budget. The one-shot table shows default and medium effort, and the agentic runs used medium (the card's numbers are at xhigh). All tasks were in C (C11): every result was built with -Wall -Wextra -Wpedantic -fsanitize=address,undefined and run against tests. The baseline is Qwen3.6-35B-A3B UD-Q4_K_XL on the same machine (about 26 t/s).

1. One-shot C tasks (6 tasks: ring buffer, string split, a 5-bug fix, an expression parser with overflow checks, a hash map with 1M insert/delete churn, strict UTF-8; one attempt each, hidden tests):

Config Passed Time
Flash, default effort 5/6 ~2.9 h
Flash, medium effort 4/6 2.3 h
Flash, medium + "seeded" thinking (see below) 4/6 (8/10 over two runs) 1.2 h, ~2-4× fewer tokens
Qwen3.6-35B-A3B 4/6 47 min

Flash solved the parser task that Qwen3.6-35B-A3B failed twice. Most of Flash's failures came from hitting the thinking budget: it asks itself hundreds of questions (overflow, hidden tests, exotic platforms) and switches designs, then makes rushed slips like missing includes. A 24k budget didn't help; it just thought more. System-prompt instructions alone did not change how it thinks.

The thing that worked was seeding the thinking: a chat template that starts each new user turn's reasoning with Contract (from the request and the project rules; this list is the whole contract):\n1., plus three short rules in the system prompt (list the requirements, commit to one design, compile and run instead of tracing by hand). After that, Flash stopped on its own before the budget on every seeded task and used far fewer tokens, at about the same quality.

2. Agentic C work (OpenCode, non-interactive): a small C11 Game of Life (about 1.3k lines, ncurses + GTK3 behind a render interface) with a strict AGENTS.md. Prompt: "Read AGENTS.md, then review the project against its rules and fix what doesn't comply." I scored each result against 8 known bugs (a hang on non-tty stdin, silent bad CLI values, speed out of range, GTK 100% CPU while paused, window X not quitting, no way out of fullscreen, a sleep that blocks the GTK loop, sizes ignored in GTK), and I checked every result by hand in a real window.

Run Known bugs fixed Time Compactions (96k context)
Qwen3.6-35B-A3B, plain template ~0/8 (claimed full compliance) 1.3 h 2
Qwen3.6-35B-A3B, seeded ~4/8, but the GTK grid no longer draws 2.5 h 3
Flash, seeded, run 1 ~6.5/8 2.5 h 0
Flash, seeded, run 2 ~7/8 7 h 3
Flash, seeded, run 3 (+ todo tool) ~6/8, the window X fix broke 10 h+ (stopped) 5

Flash behaved like a careful engineer. It built with sanitizers before editing, reproduced a hang by actually running the program, listed the violations, fixed them in the right layer, and reported honestly what it couldn't check without a display. It is slow, though, and long runs are where it struggles: after each context compaction it re-read files and sometimes re-designed. In one run it mistook its own uncommitted work for the user's and created a new git worktree. Forcing a todo list didn't help. Run-to-run variance is large (2.5 h to 10 h with identical settings).

One cost of the pruning showed up clearly: the card says degradation outside code, agentic tool use, vision and spatial reasoning is accepted, and non-English output is part of that. My AGENTS.md asked for Italian user strings and an Italian README, and the Italian came out garbled (the last 1.5 h of run 3 went there). Give it English-only instructions.

Caveats: small sample (one run per task per config for most rows), temperature 1.0, scoring partly manual. Overall, it's the best local coder I've run on this hardware for C, provided you seed its thinking and keep tasks short enough to avoid compaction. Happy to share the template, logs and test harness.

Sign up or log in to comment