/ Модель

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

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

SiliGemma-4-E2B-FormA

Генерация текстаТекст → текст5 профессий

Квантизированная и адаптированная текстовая модель на базе Gemma 4 E2B IT для генерации текста и диалогов.

826скачиваний за 30 дней0лайковвеса обновлены28 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

SiliGemma-4-E2B-FormA — текстовая модель для генерации текста и диалогов от Moissanite Labs / Foundation-0, созданная на основе google/gemma-4-E2B-it. Это плотная модель семейства Gemma 4, адаптированная методом эволюционной стратегии без обратного распространения ошибки и представленная в формате siliquant-hf-v1 с A_16 lattice-квантизацией. В README описана обработка 276 активных линейных слоёв; размер базовой модели — около 2 млрд параметров.

Репозиторий содержит только языковую часть модели: визуальные и аудиобашни исходной Gemma 4 исключены. Модель предназначена для локальной генерации текста и диалоговых сценариев; в README также описаны оптимизации хранения весов и вычислений, включая размещение послойных эмбеддингов в оперативной памяти CPU. Для корректного контекста необходимо добавлять начальный токен BOS с ID 2; его отсутствие заметно ухудшает качество. Модель принимает текст и выдаёт текст, основной язык карточки — английский.

Указанная лицензия — Apache 2.0, унаследованная от базовой модели. Результаты и заявленные характеристики относятся к конкретному варианту Form A и описанным в карточке проверкам; возможности зрения и аудио в этом выпуске недоступны.

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

  • генерация ответов в текстовом чат-боте
  • продолжение и дополнение английского текста
  • локальный запуск диалоговой языковой модели
  • эксперименты с квантизацией и ускорением вывода

Ограничения

Выпуск текстовый: визуальные и аудиокомпоненты базовой Gemma 4 отсутствуют. Перед каждым входным текстом требуется добавлять BOS с ID 2; без него качество заметно ухудшается.

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

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

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

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

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

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

Открыть на Hugging Face

SiliGemma-4-E2B-FormA (ahrazzle/SiliGemma-4-E2B-FormA)

SiliGemma-4-E2B-FormA is the Standard-Stack transformers from_pretrained load (Form A) A_16 lattice quantization and zero-backprop evolution-strategy-adapted release of google/gemma-4-E2B-it in lossless siliquant-hf-v1 format (H1_L10_27_Anchor, seed=1753). Designed alongside the bare-metal sm_86 sibling ahrazzle/SiliGemma-4-E2B-FormB-Native, it runs with 0 Extended Hamming syndrome errors, 0 out-of-bounds groups, 0.0 cold-reload Countdown NLL drift, +0 B inference sidecar overhead, and 0 B VRAM for Per-Layer Embeddings.

This release introduces four key architectural and empirical advances:

  • Upstream Gemma4Tokenizer bos_token_id = 2 Grounding (-6.4530 nats) – Enforcing explicit leading bos=2 on every sequence prevents severe context ungrounding, restoring WT2_test[0] NLL from 11.101388 -> 4.648381 nats (-6.453007 nats) and Countdown_test[:16] from 2.376752 -> 1.325589 nats (-1.051164 nats).
  • 276 Live A_16 Block-H4 Linears & 60 Dead KV Tensors Pruned – Quantizes all 276 active 2D text linears (1,876,819,968 weights) into [16, 11, 4] Extended Hamming A_16 Block-H4 (g=128, k_bits=4, $R^2=5213$ $L_2$ ball + sparse CSR overflow qov_*, 1,203,427,606 B = 5.1296 quantized-linear bpw) while cleanly pruning 60 structurally dead KV-sharing tensors (20 x (k_proj, v_proj, k_norm), 18,880,512 params) in L15..34.
  • 0 B VRAM CPU-Pinned Per-Layer Embeddings (PLE) – Keeps the 262,144 x 8,960 BF16 embed_tokens_per_layer matrix (4,697,620,480 B = 4.375 GiB) pinned in host CPU RAM, reserving 0 B GPU VRAM while streaming 17,920 B/token.
  • Exact L0..L9 Prefix Hoisting & L10..L14 20x shared_KV Hub – Hoisting frozen L0..L9 (10/35 = 28.57% layers, 1x non-reuse mode) yields 0.0 max abs logit error across both unperturbed and adapted rollouts and 1.265x–1.266x median AB/BA suffix speedup, with L10..L14 serving all 20 upper consumer layers L15..34.

Models Overview

Every 16-element weight vector $y \in A_{16} = 2\mathbb{Z}^{16} + C_{[16, 11, 4]}$ is stored via qham11 (11 systematic information bits reconstructing the 5 parity coordinates \{0, 1, 2, 4, 8\}), packed 4-bit quotients (qquot), sparse CSR overflow tuples (qov_*), and IEEE-754 bit-exact scales_fp16_bits. Untouched BF16 embeddings and 262 FP32 norm/scalar vectors (285,987 params) preserve full boundary precision.

PropertySpecification
Base Modelgoogle/gemma-4-E2B-it (35 text layers, bos_token_id=2, stop IDs [1, 106, 50])
Format & Recipesiliquant-hf-v1 (H1_L10_27_Anchor, A_16 Block-H4, FT_PIWL, seed=1753)
Quantized Linear Coverage276 live linears (1,876,819,968 weights, 1,203,427,606 B / 5.1296 quant bpw); 60 dead L15..34 KV tensors pruned
Error-Correcting CodeExtended Hamming [16, 11, 4] SECDED (0 parity errors across 117,301,248 blocks, 0 OOB groups, 276 finite positive scales)
Artifact Footprint (model.safetensors)6,707,744,322 B (incl. 4,697,620,480 B CPU-pinned PLE, 805,306,368 B tied embed_tokens, 1,143,948 B FP32 norms, 245,920 B header)
Hardware Envelope (RTX 3080)5,019.9 MiB peak allocated VRAM (<= 5,939.2 MiB), 5,498.0 MiB peak reserved (< 6,144.0 MiB), 480.72 s GPU wall, 0 B teardown alloc
Verified model.safetensors SHA-256a577b9ab55c36e5edb7140cf6477c8fbf957597ecfa5f30f4daed8c1f5290225

Benchmark Results & Pareto Evaluations

All empirical runs were executed on an NVIDIA GeForce RTX 3080 Laptop GPU (8,192 MiB, sm_86) with 0 B backpropagation activations, +0 B inference sidecar, 0 SECDED errors, and explicit bos=2 enforcement across identical held-out splits (WT2_test 16 x 256, Countdown_test 128, GSM8K_OOD 64):

Configuration / ArmAdapted ScopeWT2_test NLL (vs Base)CD_test GT NLL (Pass@1)GSM8K_OOD Gold NLL (Pass@1)Notes & Acceptance
H0_Base_A16 (35L frozen A_16)276 live linears (2,932.0 MiB VRAM)5.1168011.397878 (10.94%)1.846517 (45.31%)FroMSE = 2.742e-6, cross-run H0 diff 0.0
H1_L10_27_Anchor (3-seed mean 1751/1752/1753)46 linears (L10..27, d=638,976, 0 valves)5.039570 (-0.077231)1.253168 (11.98%)1.734985 (-0.111532, 43.23%)4/4 steps accepted on 3/3 seeds (CD CI95 [+0.1282, +0.1616], p=1e-4)
H1_L10_27_Anchor (seed=1753, Shipped Release)46 linears (L10..27, +0 B sidecar)4.945025 (-0.171776)1.240732 (11.72%)1.681543 (-0.164974, 43.75%)reload_diff = 0.0, 0 SECDED (s1751=1.241075, s1752=1.277698)
H2_KVHub_Plus_Sanctuary (valve_sigma=0.003)47 linears (L10..14 + L25..33, + 107,534 FP32 valves)4.895686 (-0.221115)1.293634 (11.46%)1.679504 (-0.167013, —)Accepted 2/2/0 steps; s1752 CD=1.169189 (13.28%), s1751/s1753 hit probe KL spikes 0.99..3.08
H2_KVHub_Sanctuary_CalmValves (valve_sigma=0.0005)47 linears (d=572,416 + 107,534 FP32 valves)4.922321 (-0.194480)1.300269 (11.20%)1.669843 (-0.176674, 38.54%)Accepted 2/2/0 steps; s1752 CD=1.188619 (14.84%, WT2=4.809175), s1753 rejected (eta_valve_max=0.0025)

Energy Efficiency & Power Profile

Hardware TargetWorkload / RegimeAvg Power (W)Energy / Token (J/tok)Efficiency (tok/J)Run Energy (Wh/run)Measurement Status
NVIDIA GeForce RTX 3080 Laptop GPU (8 GiB)H1_L10_27_Anchor ES + held-out eval (480.72 s wall, 5,019.9 MiB peak)Not recordedNot recordedNot recordedNot recordedNot recorded (NVML telemetry absent in release receipt; uncontrolled single-laptop run)

[!NOTE] Energy readings are not guaranteed to be consistent due to uncontrollable variables (thermal state, ambient temperature, fan curve, and dynamic power limits).

Getting Started

Requires torch >= 2.3, transformers >= 5.0, < 6.0, and safetensors (verify-manifest and stdlib self-test require zero third-party packages). Because standard upstream AutoModelForCausalLM.from_pretrained does not natively stream siliquant-hf-v1 containers into Gemma4TextModel with CPU-pinned PLE and explicit bos=2 enforcement, use the bundled siligemma_forma_loader.py:

from pathlib import Path
import torch
from siligemma_forma_loader import encode_with_bos, load_gemma4_forma_text_model

device = "cuda" if torch.cuda.is_available() else "cpu"
model, tokenizer, receipt_info = load_gemma4_forma_text_model(Path("."), device=device)

prompt_ids = encode_with_bos(tokenizer, "Solve Countdown using +, -, *, /: [5, 7, 2, 3] -> 29")
input_ids = torch.tensor([prompt_ids], dtype=torch.long, device=device)
with torch.inference_mode():
    out = model(input_ids=input_ids, use_cache=False)
    logits = 30.0 * torch.tanh(
        torch.nn.functional.linear(out.last_hidden_state[:, -1:, :], model.embed_tokens.weight) / 30.0
    )
print("Next token ID:", int(logits.argmax(dim=-1).item()))
hf download ahrazzle/SiliGemma-4-E2B-FormA --local-dir ./SiliGemma-4-E2B-FormA
cd ./SiliGemma-4-E2B-FormA

# 1. Verify SHA256SUMS + receipt manifest (pure stdlib, < 50 MiB RAM)
sha256sum -c SHA256SUMS
python3 -B siligemma_forma_loader.py verify-manifest .

# 2. Stream-verify qham11 zero-padding, CSR bounds, & A_16 lattice reconstruction (< 300 MiB RAM)
python3 -B siligemma_forma_loader.py verify-syndromes .

# 3. Deterministic CPU self-test
python3 -I -B siligemma_forma_loader.py self-test

Custom Infrastructure Stack & Source Repositories

Stack LayerComponentRole in SiliGemma Form APublic Repository
SiliGemma EngineSiliGemmaGemma-4 Form A/B architecture, bos=2 guard, L10..14 hub, & L25..33 0 B-KV loop verificationMoissanite-Labs/siligemma
Lattice Quantization & ECCSiliQuant[16, 11, 4] Extended Hamming A_16 + Block-H4 lattice quantization & siliquant-hf-v1 formatMoissanite-Labs/siliquant
Bare-Metal Silicon KernelsSiliKernelsZero-spill Ampere sm_86 dp4a CUDA & Intel AVX-512 kernelsMoissanite-Labs/silikernels
Verified Zero-Spill CompilerHoloEmitPure-Init Lean 4.36.0 compiler targeting zero-spill sm_86 PTX & AVX-512 [16, 11, 4] decodersMoissanite-Labs/holoemit
Metrology & TelemetrySiliSensePure-stdlib silicon physics metrology & fault-canary telemetryMoissanite-Labs/silisense
Bounded Adaptation & RollbackML Weft / Weft-LoomDeterministic weight-space bounds & zero-drift rollbackMoissanite-Labs/weft · Moissanite-Labs/weft-loom
Workbench OS & ExoskeletonML-OS / AletheionResearch workbench OS & host hardware exoskeletonMoissanite-Labs/ml-os · Foundation-0/aletheion
Verification & Audit HarnessAletheiaIsolated execution parity, fail-closed verification gates, mutation auditing, & leak scanningFoundation-0/aletheia
Five-Layer Stack BlueprintSiliconcordatOpen L1–L5 stack specification (loom · weft · warp · exo · mde)siliconcordat/.github

Usage, Scope & Honest Limitations

  • Hypothesis Selection & Selective Promotion (2/3 Gates Cleared) – While bos=2 grounding, 0-error SECDED/VRAM gating, and L0..L9 1x prefix hoisting (0.0 drift, 1.265x–1.266x speedup) passed across both replication campaigns (646.68 s and 480.72 s), the H2_KVHub_Sanctuary_CalmValves (valve_sigma=0.0005) hypothesis was falsified under pre-registered acceptance thresholds (failing to outperform H1 on 3/3 seeds or reach CD Pass@1 >= 15%). Accordingly, this repository ships the verified winning arm H1_L10_27_Anchor (seed=1753).
  • Text-Only Language Model Export – Vision and audio towers from google/gemma-4-E2B-it are omitted from model.safetensors (model.language_model.* only), while config.json retains upstream vision_config/audio_config keys for transformers schema compatibility.
  • Explicit bos=2 & Stop IDs – Always prepend bos_token_id = 2 (via encode_with_bos or explicit [2, ...]); omitting it degrades WT2 by +6.453 nats. generation_config.json retains upstream stop IDs [1, 106, 50].
  • Baseline Reference Note – H0_Base_A16 reports WT2=5.116801 under the Form A quantizer (g=128); the companion bare-metal Form B verification reference quantizer reported WT2=5.118627 on the same 16 x 256 evaluation split, and an earlier pre-KV-pruning Form A checkpoint measured 1,203,561,445 B quantized bytes vs 1,203,427,606 B shipped here.
  • Integrity Model – qham11 stores the 11 systematic bits of [16, 11, 4] and reconstructs the 5 parity bits on unpack, so verify-syndromes checks qham11 zero-padding, tensor shapes, CSR bounds, and A_16 reconstruction across all 276 layers while full byte-level tamper resistance is enforced via SHA256SUMS and siliquant_verification_receipt.json.
  • License Inheritance – Inherited Apache License 2.0 from google/gemma-4-E2B-it (full text in LICENSE, attribution in NOTICE_UPSTREAM_LICENSE.txt).

Citation

@misc{moissanitelabs2026siligemmaforma,
  title={SiliGemma-4-E2B-FormA: Lattice-Quantized Gemma-4-E2B with CPU-Pinned PLE and Prefix-Hoisted ES},
  author={Moissanite Labs and Foundation-0},
  year={2026},
  howpublished={\url{https://huggingface.co/ahrazzle/SiliGemma-4-E2B-FormA}}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей