Lab Reports · Field Report Nº 01 · Part 3 of 5
Coding Models and 4-Bit Compression
Of three coding-oriented models, only qwen38-flash-next ran cleanly through every test, and it scored about the same as qwen-coder-next on answer quality. On compression, who made the 4-bit version mattered more than the format, and for image models 4-bit saved memory but not time.
Coding models
glm-4.7-flash failed with long prompts and whenever more than one request ran at once, though we only tried a community 4-bit build of it, which is the likely cause.
| Model | Writing speed, one user | Reading speed, ~55k prompt | Several users at once | Memory used | Verdict |
|---|---|---|---|---|---|
| qwen38-flash-next (NVFP4) | 17–20 tok/s, steady up to 110k context | 2,300 tok/s | 47 tok/s combined at 4 users; wait for the first word reached 41 s at 8 | ~115 GB | Stable but slow, and fills the box |
| qwen-coder-next | Inconclusive (replies were too short to time reliably) | 3,329 tok/s | Not run | ~83 GB | Needs a re-run |
| glm-4.7-flash | Not reliably measured | Server errors at 32k and 65k | Every request failed at 1, 2, 4 and 8 users | ~67 GB | Failed with the community 4-bit build we tried |
On answer quality, each model ran alone on an automatically graded suite: code checked by unit tests, tool calls by their structure, reasoning and long-document lookups by known answers, and creative writing by its hard rules only.
| Area (cases) | qwen-coder-next | qwen38-flash-next |
|---|---|---|
| Coding (6) | 100% | 67% |
| Tool calling (6) | 83% | 100% |
| Long context | 100% (4) | 100% (5, including a >131k case) |
| Reasoning (6) | 100% | 100% |
| Creative (5) | 50% | 80% |
| Overall | 87% | 89% |
- Every qwen38-flash-next miss was the same failure. Its reasoning got stuck repeating itself until it hit the length limit and returned nothing. It never gave a wrong answer on those cases.
- qwen-coder-next's tool miss was a restraint test. Asked to convert a currency with a required detail missing, it called the tool anyway instead of asking.
- qwen-coder-next was much faster per case: typically 1–10 seconds, against 5–150 seconds for qwen38-flash-next.
Compression: what helped and what did not
Language models: check who made the 4-bit version
NVIDIA's NVFP4 release of Gemma 4 26B-A4B left the attention projections at 16-bit. On GB10 those fall back to an older, slower code path that took 70% of GPU time. A community build from bg-digitalservices also compresses the attention layers, and avoided that with no loss of accuracy.
Our pilot's accuracy drop came from its calibration recipe, not from the format. Gemma's remaining gap to the Qwen reference is its very large output layer (a 256K-token vocabulary), which stays at 16-bit and takes about 30% of GPU time. Our current deployment runs NVIDIA's version, and we have not yet re-measured whether the gap remains on today's vLLM.
Image models: protect the attention layers, and do not expect speed
Starting from Ideogram 4's public 8-bit weights, we tried five 4-bit recipes on four test prompts, including lettering, with matched seeds.
| Recipe | Attention layers compressed | Text in image | Photos | Time to compress |
|---|---|---|---|---|
| Feed-forward layers only | none | clean | ok | ~4 min |
| Attention in middle blocks | 30 of 34 blocks | partly garbled | ok | ~4 min |
| Default (maximum) | all | garbled | ok | ~6 min |
| AWQ-lite | all | safety-filter card instead of an image | ok | 47 min |
| SVDQuant | all | safety-filter card instead of an image | ok | 5.8 h |
The core matrix maths ran 1.2–1.65× faster at 4-bit and 1.9–2.3× faster at 8-bit, but the gains did not survive a full image.
- The released 8-bit model computes at 16-bit speed. It converts weights back to 16-bit before every matrix multiplication, so 8-bit only shrinks the file.
- Emulated 4-bit code paths mislead. The common emulated paths ran 3–9× slower than the real torchao kernel.
- On GB10, 4-bit image models save memory, not time. The memory saving matters more on larger Blackwell GPUs. Compiling the model with
torch.compileis the one lever we have not tested.
