/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
gemma4 · dense
Базовая модель
gemma-4-26B-A4B-it
Опубликована
27 ноя 2026

Gemma-4-26B-A4B-BITCOS-Ternary-OpenVINO-A770

Генерация текстаТекст → текст14 профессий
2 759скачиваний за 30 дней1лайквеса обновлены3 дек 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Производная сборка Gemma 4 для локальной генерации текста и диалогов на Intel Arc с OpenVINO, длинным контекстом и заявленной поддержкой изображений и видео.

TheSanchezian создал производную сборку Gemma 4 26B-A4B-it для локального запуска на видеокарте Intel Arc A770 с OpenVINO и пользовательскими ядрами OpenCL. Это диалоговая модель условной генерации текста на архитектуре Gemma 4 с разреженной MoE-структурой: около 25,2 млрд параметров всего и 3,8 млрд активных на токен. README также заявляет поддержку изображений и видео, контекст до 262 144 токенов, смешанную квантизацию весов, FP16 KV-кэш и ускорение генерации с помощью PLD и MTP.

Сборка предназначена для локальных диалогов и генерации текста на совместимом оборудовании Intel; в README приведены показатели скорости, использования памяти и тесты сохранения качества. Заявленные характеристики производительности и точности относятся к описанной конфигурации и тестам автора. Лицензия — Apache-2.0.

Сценарии применения

  • локальные диалоги на видеокарте Intel Arc A770
  • генерация текста с длинным контекстом
  • анализ изображений в диалоге
  • анализ видеоклипов в диалоге
  • локальный запуск Gemma 4 с ускоренным декодированием

Ограничения

Сборка ориентирована на Intel Arc и пакет OpenVINO для Windows; применимость на другом оборудовании не подтверждена. Показатели скорости, точности и мультимодальности приведены автором README для конкретной конфигурации и не являются независимой оценкой.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит14

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Gemma 4 26B-A4B BITCOS Mixed-Ternary for Intel Arc (OpenVINO GPU, 256k FP16 KV + Hybrid PLD/MTP + v1.1 Vision)

Built from google/gemma-4-26B-A4B-it by Google DeepMind (Apache 2.0).

Intel-Only Build (OpenVINO 2026.4.1 + Custom OpenCL Kernels) — Near-lossless BITCOS mixed-ternary MoE with full 262,144-token lossless Unified FP16 KV, lossless Hybrid PLD + Split-K=128 MTP speculative decoding, and live v1.1 Multimodal Vision & .mp4 Video on a single consumer Intel Arc A770 16 GB.

  • Decode Speed (Hybrid PLD+MTP, Split-K=128): 104.43 tok/s cold isolated smoke · 108.13–117.83 tok/s warm sustained (up to 182.45 tok/s peak) · 83.10 tok/s @ 32k · 76.28 tok/s @ 64k · 62.62 tok/s @ 128k · 54.72 tok/s @ 192k · 47.58 tok/s @ 252k
  • Pure M=1 Base Decode (No Draft Heads): 80.89 tok/s short · 69.32 tok/s @ 32k · 64.90 tok/s @ 64k · 57.29 tok/s @ 128k · 45.97 tok/s @ 252k
  • v1.1 Multimodal Vision & Video (INT8 ViT + Projector, batch=1): 235 ms single image (280 tok) · 318 ms 2-image comparison · 849 ms 5s .mp4 clip (1 fps, 70 tok/frame) · cos_sim = 0.9993 (f32) / 0.9959 (f16) vs. reference · 0 NaNs
  • Flat VRAM Ceiling (Full 256k Context): 12.92 GB text-only (12.60 GB pure M=1) · 13.07 GiB steady / 13.62 GiB peak (14.62 GB) single-card all-in-one (26B MoE + 256k FP16 KV + MTP + INT8 Vision on one 16 GB A770) · 0.000 GB model shared spill
  • Long-Context & Fidelity Gates: 256k NIAH PASS (COBALT-7492-FALCON @ 252,067 tokens, ~50% depth) · KL = 0.181–0.183 vs. 52 GB BF16 teacher · 0 NaNs · 100% exact greedy parity between pure M=1, Hybrid PLD+MTP, and v1.1 Vision server

Why This Release Exists

Uniform 1.58-bit dense quantization often trades away reasoning stability (run-on loops, constraint drift, excess token burn), while most long-context local builds either crush VRAM, spill to system RAM, or stall past 32k.

This build pairs a mixed-precision sparse MoE layout (google/gemma-4-26B-A4B-it, 25.2B total / 3.8B active parameters per token, 8/128 routed experts + 1 shared expert) with custom OpenCL kernels so the ~52 GB BF16 model runs end-to-end inside a single 16 GB Intel Arc A770 at full 262,144 context:

  • Near-lossless mixed-precision weights (KL = 0.181–0.183 vs. 52 GB BF16 teacher):
    • 24 routed MoE layers: Intel BITCOS v5 mixed-ternary + unmerged rank-4 LoRA
    • 6 sensitive MoE layers (L10, L12, L13, L22, L27, L29): INT4 (OSV32) + unmerged rank-4 LoRA
    • Attention Q/K/V/O (30 layers): 100% INT8 (OSV32 custom OpenCL kernels)
    • Dense shared MLP & lm_head: W4G64 (Gemma4MGUGeGLUOSV32F32 / FullyConnectedCompressed)
    • Residual stream, routers, RMSNorms, RoPE: FP32
  • 100% lossless Unified FP16 KV cache (262,144 tokens): 25 sliding layers (1,024 window, ring-1280 for M=4 verification) + 5 global layers (262,144 window) with zero KV quantization and zero VRAM growth past allocation.
  • Lossless Hybrid PLD + Split-K=128 MTP (v1.0-sprint9.1): Combines an O(1) Prompt Lookup Decoding (PLD) scanner with a 302.5 MB Multi-Token Prediction (MTP) assistant powered by 3 register-spill-free Split-K=128 OpenCL kernels—beating pure M=1 at every single measured context from 50 to 252,067 tokens with exact greedy output parity.

Verified 256k Speed & Flat VRAM Curve (Single Intel Arc A770 16 GB)

Measured from an isolated cold start (GPU.0, empty OpenVINO cache, ctx=262144, temperature=0.0, OpenVINO 2026.4.1-63022 + custom OpenCL ops, 0 GPU Reorders, 0 NaNs). Defaults: --mtp auto --mtp-k 3 --pld auto --pld-k 5 --pld-ngram 5 --pld-min-ngram 5.

ContextPrompt ToksPrefillSplit-K=128 Hybrid PLD+MTPPure M=1 (--mtp "" --pld off)Old 16-WG MTPTok / StepMTP Acc (prop / bb)PLD Acc (scan)GPU.0 VRAM (ded / sh*)256k NIAH (~50%)
Short (binary_search)50—104.43 tok/s (108.13 warm / 182.45 peak)80.89 tok/s108.13 tok/s3.6185.2% (566 ms / 1881 ms)72.5% (1.3 ms)12.909 / 0.026 GB—
32k32,811358.4 tok/s83.10 tok/s69.32 tok/s64.68 tok/s3.5696.3% (533 ms / 1324 ms)34.5% (67.4 ms)12.919 / 0.026 GB—
64k65,588312.8 tok/s76.28 tok/s64.90 tok/s47.58 tok/s3.6491.0% (561 ms / 1469 ms)60.0% (66.3 ms)12.919 / 0.026 GB—
128k131,130248.7 tok/s62.62 tok/s57.29 tok/s30.30 tok/s3.4086.8% (618 ms / 1815 ms)50.0% (68.4 ms)12.919 / 0.026 GB—
192k196,665206.2 tok/s54.72 tok/s—22.67 tok/s3.4888.6% (692 ms / 2160 ms)50.0% (68.2 ms)12.919 / 0.026 GB—
252k252,067180.2 tok/s47.58 tok/s45.97 tok/s17.95 tok/s3.3779.9% (934 ms / 2946 ms)67.9% (87.5 ms)12.919 / 0.026 GBPASS

*0.026 GB is the idle Windows GPU adapter driver baseline (0.000 GB model shared spill). All VRAM numbers use OpenVINO GPU_MEMORY_STATISTICS (usm_device / usm_shared) in decimal GB. Cold first-ever OpenCL JIT compile: 226.2s boot + 56.3s M=128 warmup. Subsequent warm cache reloads: ~10–15s.


Throughput Perspective: Single Consumer GPU vs. Cloud APIs (Dec 2, 2026)

Decode speed & latency comparison only—Gemini 3.8 Flash is a closed, datacenter-hosted 1M-context frontier reasoning model. Numbers below show what single-card local OpenCL/OpenVINO decode looks like next to real-world cloud API serving speeds.

SetupHardware / HostDecode SpeedShort-Prompt StartAPI Cost (In / Out per 1M)
This Build (Pure M=1)1× Intel Arc A770 16 GB (Local)80.89 tok/s~0.71s prefill$0
This Build (Sprint 9.1 Hybrid PLD+MTP)1× Intel Arc A770 16 GB (Local)104.43–108.13 tok/s (up to 182.45 peak)~0.37s prefill$0
Gemini 3.8 Flash (OpenRouter Live)Google AI Studio / Vertex Cloud66–74 tok/s P50 (82–96 avg)2.19–2.94s latency$0.75 / $3.75 (doubles Jan 2027)
Gemini 3.8 Flash — High (Artificial Analysis)Google Cloud TPUs99 tok/s (237–305 burst ceiling)24.63s TTFA (incl. thinking)$0.75 / $3.75 (doubles Jan 2027)

Sources: OpenRouter live provider telemetry (google/gemini-3.8-flash) and Artificial Analysis (gemini-3-8-flash), checked December 2, 2026. Cloud speeds vary by tier, region, load, and thinking effort.


v1.1 Multimodal Vision & .mp4 Video (gemma4_server.py)

gemma4_server.py now serves OpenAI-compatible multimodal /v1/chat/completions (image_url base64 data URI / HTTP URL / local path + video_url / .mp4 via OpenCV 1 fps sampling, auto-scaled to cap at <= 60 frames for clips > 60s with interleaved [0.0s], [1.0s] timestamp markers).

  • Zero backbone regression: An in-memory graph rewrite replaces only the input embedding gather (input_ids → inputs_embeds) at startup, splicing projected 2816-dim vision embeddings into M=128 prefill chunks while leaving all BITCOS MoE, 256k FP16 KV, and Split-K=128 MTP kernels completely untouched. PLD and MTP automatically ignore media placeholder token IDs (255999, 258880, 258882, 258884).
  • Flexible device placement (--vision-device): Defaults to GPU.1 (auto-falls back to GPU.0 on single-GPU machines), or pass --vision-device GPU.0 for all-in-one single-card execution, CPU, or off. Sequential batch=1 static [1, 2520, 768] execution prevents ViT activation spikes regardless of image/frame count.
  • Encoder parity vs. vision_ref_io.npz (GPU.1): f32: cos_sim = 0.999346 (mask_exact = True, 0 NaNs) · f16 (default): cos_sim = 0.995914 (mask_exact = True, 0 NaNs, 3.85s driver-warm compile).
PlacementTestVision EncodePrefillTTFTDecode SpeedActive VRAM (Peak Ded / Sh)Spill
Single-Card GPU.0 (headless, 1× A770 16 GB)Single Image (266 tok)234.6 ms942.8 ms1,177.4 ms96.69 tok/s14.031 GB (13.07 GiB) steady / 14.621 GB (13.62 GiB) peak / 0.059 GB sh0.000 GB
Single-Card GPU.0 (headless, 1× A770 16 GB)Multi-Image (2 imgs, 512 tok)317.6 ms1,510.1 ms1,827.7 ms98.35 tok/s(same flat ceiling — 2.38 GiB free headroom)0.000 GB
Single-Card GPU.0 (headless, 1× A770 16 GB)5s .mp4 Video (5 frm @ 70 tok)848.6 ms988.4 ms1,837.0 ms100.30 tok/s(same flat ceiling — 0 NaNs, exact [0.0s]–[4.0s])0.000 GB
Single-Card GPU.0 (headless, 1× A770 16 GB)Text-Only (binary_search)0 ms287.6 ms287.6 ms109.28 tok/s14.031 GB (13.07 GiB) / 0.059 GB sh0.000 GB
Dual-Card GPU.0 + GPU.1Single / Multi / 5s Video / Text260 / 314 / 859 ms960 / 1454 / 964 ms1.26 / 1.77 / 1.82s103.90–117.83 tok/sGPU.0: 13.12–13.72 GB (0.045 sh) · GPU.1: +0.90 GB (0.079 sh)0.000 GB

Inside Sprint 9.1: Hybrid PLD + Split-K=128 MTP

Earlier 16-workgroup MTP global cross-attention left half of the Arc A770's 32 Xe-cores idle past 24k, causing draft time to balloon to 52.58 ms per token at 252k. Sprint 9.1 replaces it with three ocloc-verified (0 B register spill / 128 GRF / SIMD16) kernels in mtp/kernels/:

  1. gemma4_mtp_q_norm_rope_global_k.cl — 16 WGs, fused q_norm + Proportional RoPE (0.25) + k_norm_w folding (16 KB L2-hot output).
  2. gemma4_mtp_global_xattn_splitk128_reg.cl — GQA-8 Split-K=128 (256 WGs = 8 WGs/Xe-core; 8 Q heads share KV per WG for 8× less DRAM traffic; inactive splits exit on line 1; 4.20 MB FP32 partial scratch).
  3. gemma4_mtp_global_reduce128_dyn.cl — Dynamic reduction across active splits only.

Standalone Split-K=128 Parity & 1-Draft Speedup vs. Old 16-WG (GPU.0, 5/5 PASS):

kv_lenproj_max_difftop1_logit_difftop1_matchNaNsZero-Copy 1-Draft (old → new)Speedup
2560.0312500.000000True02.68 → 2.69 ms0.99×
4,0960.0390620.000000True0——
65,5360.0273440.015625True016.21 → 5.21 ms3.11×
131,0720.0312500.015625True030.14 → 5.14 ms5.86×
252,0000.0234380.000000True052.58 → 5.98 ms8.79×
  • End-to-end 252k gain: 2.65× faster live decode (17.95 → 47.58 tok/s) and 8.17× faster MTP propose (7,632 → 934 ms).
  • PLD CPU scan (max_window=32768): Flat O(1) at ~1.5–1.7 ms/step across 32k → 252k (1.697 ms @ 32k, 1.707 ms @ 64k, 1.675 ms @ 128k, 1.706 ms @ 192k, 1.702 ms @ 252k).

BF16 Teacher Parity (0–32k) & Long-Context Recall (56k + 256k)

Direct comparison against the upstream 52 GB BF16 google/gemma-4-26B-A4B-it teacher measured via per-token KL divergence and top-1 agreement across 0–32k, plus live multi-needle and 256k NIAH recall:

Gate CheckReference / TargetMeasured ResultNaNsStatus
live_8k_qa (8,785 tok)Step 7A FP16-KV Ref (KL 0.1807 · 85.4%)KL 0.1814 · top-1 85.5% (PPL 1.26)0PASS
live_28k_qa (29,419 tok)Step 7A FP16-KV Ref (KL 0.1825 · 87.2%)KL 0.1825 · top-1 87.2% (PPL 1.36)0PASS
model_32k (8 × 4k bands)KL 0.345–0.448 · 76.0–78.3%KL 0.350–0.447 · top-1 76.0–78.1% (8/8)0PASS
Sliding wrap 1016..1056[0.3134, 0.4471, 0.4122][0.3072, 0.4376, 0.4047] (no wrap spike)0PASS
Live 56k 3-Needle Recall (55,092 in)Start + Middle + End passcodes (think ON)3 / 3 exact (ORBIT-7741, COBALT-3319, ZENITH-9082)0PASS
Live 256k NIAH (252,067 in, ~50% depth)Single hidden needle (Split-K=128 Hybrid)Exact verbatim recall (COBALT-7492-FALCON) · 180.2 tok/s read · 47.58 tok/s write · 12.919 GB VRAM0PASS

Raw Unharnessed Benchmarks (50-Problem Dev Subsets, pass@1)

Settings: --think on --think-budget 0 (unlimited thinking), temperature=1.0, top_p=0.95, top_k=64, pure base decode (no repetition penalty). Because these are 50-problem dev subsets at pass@1, expect ±several percentage points of sampling variance.

Benchmark Suite (n = 50)Official pass@1CorrectWrong (fin=stop)Cut Off (fin=length)Finished AccAvg Think / Ans TokLoops
IFEval-5096.0% strict / 98.0% loose (instr: 97.5% / 98.75%)48 / 492 / 1096.0% / 98.0%3,348 / 1930
LiveCodeBench-50 (32k cap)62.0% (31 / 50)31118 (7 hard, 1 med)31 / 42 (73.8%)10,212 / 5,5562
LiveCodeBench-50 (64k cap)62.0% (31 / 50)31181 (abc396_f @ 64,927 tok)31 / 49 (63.3%)—1
  • Difficulty breakdown (LiveCodeBench-50): Our dev subset is 50% Hard (25 hard, 19 medium, 6 easy) — Easy 6/6 (100%), Medium 16/19 (84.2%), Hard 9/25 (36.0%) — so it is not directly comparable to upstream's full LCB v6 difficulty mix (77.1% BF16).
  • Reproducibility: IFEval scored via unmodified google-research/instruction_following_eval; LiveCodeBench scored in sandboxed WSL Ubuntu 24.04 (unshare -rn python -I dev_lcb_eval.py).

Optimization Progression (4.02×–4.17× Short / 4.73× at 32k)

MilestoneShort Decode32k64k128k252kFlat VRAMKey Engineering Change
0. Original Custom Kernels (DQ=64, ScatterUpdate)25.95 tok/s—————Initial custom BITCOS IR (1,143 ops, 540 Reorders, 0 NaNs)
1. Step 6A (Nemotron OpenVINO Pattern + PR #39378)65.08 tok/s17.57————DQ=0, in-place KV, 0 Reorders, eliminated synchronous CPU fallback waits
2. Step 7A–7D (Pack3, MGU_GeGLU, OSV32, SplitK64)69.77 tok/s42.76———10.35 GBFused post-attn/FFN + OSV32 INT8 QKV/O & W4G64 shared MLP (350 ops)
3. Step 7E-64k (BCF half4 Split-K=128, 64k FP16 KV)69.18 tok/s55.8650.72——11.04 GBEliminated 8-way SLM bank conflict; lossless FP16 beat u8 KV
4. Sprint 7 256k Top-64 (256-GRF UKV, 6L INT4 OSV32)72.65 tok/s—59.4852.60—13.20 GBFull 262,144 Unified FP16 KV + GPU Top-64 + OSV32 QKV dedup
5. Sprint 9.1 Pure M=180.89 tok/s69.3264.9057.2945.9712.60 GBSprint 9 kernel & memory optimizations (ring-1280 sliding KV)
6. Sprint 9.1 Hybrid PLD+MTP + Split-K=128 (SHIPPED)104.43–108.13 tok/s (182.45 peak)83.1076.2862.6247.5812.92 GBO(1) PLD + 3-kernel 0 B-spill Split-K=128 MTP (2.65× @ 252k vs 16-WG, exact parity)

Upstream OpenVINO Contribution & Engineering Workflow

  • Upstream OpenVINO PR: Eliminated synchronous host waits in OpenVINO GPU's ReadValue / Assign CPU fallback on in-order queues in openvinotoolkit/openvino#39378 (merged upstream).
  • Multi-Agent Engineering Workflow: Directed by Jonathan (TheSanchezian) using a builder + adversarial-reviewer loop—Gemini Neon built the custom OpenCL kernels, OpenVINO IR rewrites, server, and verification harnesses; Claude Opus acted as the independent adversarial reviewer enforcing the 0–32k BF16 teacher KL/top-1 gates, auditing every optimization for precision/speed regressions, and stress-testing claims and packaging.

Quickstart & Self-Contained Package (Intel Arc Only)

This repository is a self-contained Windows / Intel Arc package (52 canonical files, full SHA-256 checksums in MANIFEST.md), including the bundled Apache-2.0 OpenVINO 2026.4.1-63022 wheel and matching openvino_intel_gpu_plugin.dll.

See README_run.md for full try-#1 Windows Python 3.12 setup instructions and CHANGELOG_sprint9.md for the complete Sprint 9.1 engineering log.

Launch Modes

  • Default (Recommended — Sprint 9.1 Hybrid PLD+MTP + v1.1 Vision, 256k context):

    start_gemma4_server.bat
    

    (Runs gemma4_server.py with --ctx 262144 --mtp auto --mtp-k 3 --pld auto --pld-k 5 --pld-ngram 5 --pld-min-ngram 5 --vision-device GPU.1 --vision-tokens 280 --video-tokens 70. Automatically falls back to GPU.0 on single-GPU systems.)

  • Single-Card All-in-One (GPU.0 Backbone + MTP + Vision, 13.62 GiB Peak VRAM):

    start_gemma4_server.bat --vision-device GPU.0
    
  • Text-Only Mode (Disable Vision, 12.92 GB VRAM):

    start_gemma4_server.bat --vision-device off
    
  • Pure M=1 Base Decode (Zero Draft Heads, 12.60 GB VRAM):

    python gemma4_server.py --ctx 262144 --mtp "" --pld off --vision-device off
    

Actively maintained Intel-only build—if you run into any setup or runtime issues on Intel Arc hardware, open a Discussion tab post and let me know.


Roadmap & Vision

This flagship BITCOS mixed-ternary MoE was built to prove that Ternary Hybrid Architectures work at high accuracy and full 256k context—demonstrating that architecture and custom kernel efficiency can bring cloud-tier decode speeds down from datacenters to a single consumer GPU.

Shipped:

  • v1.0-sprint9.1: Full 256k lossless FP16 KV + Adaptive GQA-8 Split-K=128 Hybrid PLD+MTP (104–108 tok/s short, 47.58 tok/s @ 252k, 256k NIAH PASS).
  • v1.1-vision: Live OpenAI-compatible image, multi-image, and .mp4 video support in gemma4_server.py (vision_int8_ov, batch=1, fits single 16 GB A770 at 13.62 GiB peak with 0.000 GB spill and zero text-only speed regression).

Next up:

  • v2 Post-Distillation & Full Eval Suite: Upstream reasoning/agentic/multimodal benchmarks (GPQA Diamond, AIME 2026, Tau2, OmniDocBench) for clean v1 vs. v2 A/B tracking.
  • MustacheOS: Live local orchestration and persistent-memory showcase running on top of this OpenAI-compatible server.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
Gemma4ForConditionalGeneration
Ревизия весов
3a43734

0 моделей