Qwen 3.5 4B scores 10/10 on hidden coding tests fully local on a 16GB MacBook Air

Ok-Brush8377 · reddit · 2026-11-14

A fully offline test on a 16GB M4 MacBook Air ran Qwen 3.5 4B and 9B (q4km GGUF via llama.cpp) as atomic coding agents on a Python expense tracker graded by hidden tests.

Results

The fix that cost hours

Both models initially scored 0: files were corrupted because the author used llama-server's native /completion endpoint with a JSON grammar for tool calls, forcing entire Python files through escaped JSON strings that small models mangle. Switching to the OpenAI-compatible /v1 endpoint — where Qwen's chat template handles tool calls and file contents pass as plain text — fixed every file instantly.

Caveats: one run per setup, one task, one machine; the 4B wasn't rerun on the full app after the fix.

Original post →

More from coding & agent

coding & agent channel →