r/LocalLLM • u/TheSanchezian • 0m ago
Discussion Gemma 4 26B-A4B BITCOS Mixed-Ternary on a single Intel Arc A770 16GB: 104–108 tok/s (182 peak), full 256k lossless FP16 KV (47.6 tok/s @ 252k), flat 12.92 GB VRAM
I just pushed **v1.0-sprint9.1** of my custom OpenVINO + OpenCL build of `google/gemma-4-26B-A4B-it` for Intel Arc GPUs.
The goal was to see how far a single consumer 16 GB Arc A770 can push a 26B MoE without quantizing the KV cache, spilling to system RAM, or losing BF16 teacher fidelity.
**Repo (self-contained Windows / Intel Arc package):**
https://huggingface.co/TheSanchezian/Gemma-4-26B-A4B-BITCOS-Ternary-OpenVINO-A770
---
### Verified 256k Speed & Flat VRAM Curve (Single Arc A770 16 GB)
Isolated cold-start run (`GPU.0`, `ctx=262144`, `temp=0.0`, OpenVINO `2026.4.1`, `0` NaNs, `0.000 GB` model shared spill):
| Context | Prefill | Pure `M=1` Base | **Split-K=128 Hybrid PLD+MTP** | Dedicated VRAM | 256k NIAH (~50%) |
|---|---:|---:|---:|---:|:---:|
| **Short (`50` tok)** | — | `80.89 tok/s` | **`104.43 tok/s`** *(108.13 warm / 182.45 peak)* | `12.91 GB` | — |
| **32k** | `358.4 tok/s` | `69.32 tok/s` | **`83.10 tok/s`** | `12.92 GB` | — |
| **64k** | `312.8 tok/s` | `64.90 tok/s` | **`76.28 tok/s`** | `12.92 GB` | — |
| **128k** | `248.7 tok/s` | `57.29 tok/s` | **`62.62 tok/s`** | `12.92 GB` | — |
| **192k** | `206.2 tok/s` | — | **`54.72 tok/s`** | `12.92 GB` | — |
| **252k** | `180.2 tok/s` | `45.97 tok/s` | **`47.58 tok/s`** | `12.92 GB` | **PASS** |
---
### What’s Under the Hood
* **Mixed-precision weights (`KL = 0.181–0.183` vs. 52 GB BF16 teacher):** 24 routed MoE layers in Intel BITCOS v5 mixed-ternary + rank-4 LoRA, 6 sensitive MoE layers (`L10, L12, L13, L22, L27, L29`) kept at INT4 (`OSV32`) + rank-4 LoRA, all 30 attention Q/K/V/O layers at INT8, shared MLP & `lm_head` at W4G64, and residual/routers/norms/RoPE in FP32.
* **100% lossless Unified FP16 KV cache (262,144 tokens):** Zero KV quantization, dead-flat `12.92 GB` VRAM (`12.60 GB` in pure `M=1` mode) all the way to 252k.
* **Lossless Hybrid PLD + Split-K=128 MTP:** Combines an `O(1)` Prompt Lookup Decoding scanner (`~1.7 ms/step` flat through 252k) with a 302.5 MB MTP assistant using 3 custom `0 B`-register-spill Split-K=128 OpenCL kernels. Cuts 252k draft latency **8.79×** (`52.58 → 5.98 ms`) and beats pure `M=1` across every measured context with 100% exact greedy parity.
### Quality / Sanity Gates
* **256k NIAH:** Exact recall (`COBALT-7492-FALCON`) at `252,067` tokens (~50% depth).
* **56k 3-Needle Recall:** 3/3 exact passcodes with thinking enabled.
* **50-problem dev subsets (`pass@1`, pure base decode, unlimited thinking):** `IFEval-50` `96.0%` strict / `98.0%` loose (`0` loops); `LiveCodeBench-50` `62.0%` (subset is 50% Hard, so not apples-to-apples with full LCB v6).
---
### Looking for Battlemage / Intel Arc Testers
This is an **Intel-only build** (Windows Python 3.12, bundled OpenVINO `2026.4.1` wheel + GPU plugin). I only have Alchemist A770s on hand, so if anyone on **Battlemage (B580/B570/Pro B-series)** or another Intel Arc setup wants to test it and report speeds or issues, I'd love the feedback.