SiliGemma-3.0 (google/gemma-4-E4B-it, .slgb v4 Bare-Metal sm_86)

SiliGemma-3.0 is an independent, post-training quantized bare-metal Ampere (sm_86) release of google/gemma-4-E4B-it (8B total / 4.5B effective parameters, 42 layers, 24 KV-producing + 18 KV-shared layers, 262,144 vocabulary, 128K context) packaged in the .slgb v4 two-tier format (4.5 bpw base + 8.5 bpw sensitivity-upgraded linears with inline SECDED(72,64) ECC on 100% of weight words) plus optional H_16/H_32 x Had.16.3 3-bit KV compression (3.0625 bpw, 5.22x vs BF16).

  • Companion Source Repository: Moissanite-Labs/siligemma
  • Upstream Base Model: google/gemma-4-E4B-it (Apache-2.0; see LICENSE and NOTICE_UPSTREAM_LICENSE.txt)
  • Primary Artifact: gemma4_e4b_farkas_v4.slgb (3,042,551,676 B, 3.04 GB; SHA-256 6cab2be2f0a6280e0b693a7edaa65e09a92502bb9ee1f5eb7f19a25a69886dd5)
  • Zero-Spill sm_86 SASS: <= 48 registers, 0 B stack frame, 0 B local memory, 0 B spill, 0 LDL/STL across all 57 executable kernels and 50 library kernels.

Quickstart & Full-Repository Download

Always fetch the full repository so config.json, tokenizer assets, SHA256SUMS, NOTICE_UPSTREAM_LICENSE.txt, and gemma4_e4b_farkas_v4.slgb stay together:

hf download ahrazzle/SiliGemma-3.0 --local-dir ./SiliGemma-3.0
cd ./SiliGemma-3.0
sha256sum -c SHA256SUMS

Or via Python (huggingface_hub):

from huggingface_hub import snapshot_download

local_dir = snapshot_download(
    repo_id="ahrazzle/SiliGemma-3.0",
    local_dir="./SiliGemma-3.0",
)

Build and run the bare-metal Ampere (sm_86) inference engine from the companion repository (Moissanite-Labs/siligemma):

# Verify 100% of 305,561,600 SECDED(72,64) words + IEEE CRC32 payload integrity
./siligemma_v3_bench_sm86 --verify ./SiliGemma-3.0/gemma4_e4b_farkas_v4.slgb

# Run with BF16 KV cache (4,994.31 MiB static 128K arena) or 3bK/3bV KV cache (3,322.14 MiB static 128K arena)
./siligemma_v3_bench_sm86 --run-slgb ./SiliGemma-3.0/gemma4_e4b_farkas_v4.slgb --kv-mode bf16
./siligemma_v3_bench_sm86 --run-slgb ./SiliGemma-3.0/gemma4_e4b_farkas_v4.slgb --kv-mode 3b3b

Architecture & Format Highlights

  • Two-Tier .slgb v4 Weights (344 live linears, 54 dead KV tensors omitted):
    • 226 linears at 4.5 bpw (int4 group-32 with Sloane Had.16.3 orthogonal pre-rotation, FP16 group scale, and inline Hamming SECDED(72,64) ECC).
    • 118 sensitivity-upgraded linears at 8.5 bpw (int8 group-32 with Had.16.3 pre-rotation, FP16 scale, and inline SECDED(72,64) ECC): 41 ple_gate, 41 ple_proj, 13 o_proj, 12 v_proj, 7 q_proj, 2 k_proj, 1 up_proj, and 1 per_layer_model_projection.
    • 305,561,600 SECDED(72,64)-protected 64-bit weight words (0 clean errors; single-bit errors auto-healed in-register, double-bit errors trigger pre-commit rollback).
  • Selectable H_16/H_32 x Had.16.3 3-Bit KV Compression (--kv-mode 3b3b):
    • Sliding attention layers (d = 256): 96 B packed 3-bit Lloyd-Max codes + 2 B FP16 scale = 98 B/head (49/16 = 3.0625 bpw, 256/49 = 5.2245x compression vs BF16).
    • Global attention layers (d = 512): 192 B packed 3-bit Lloyd-Max codes + 4 B FP32 scale = 196 B/head (49/16 = 3.0625 bpw, 256/49 = 5.2245x compression vs BF16).
    • Reduces the B=1 @ 128K static VRAM arena from 4,994.31 MiB (BF16-KV) to 3,322.14 MiB (3bK/3bV-KV), saving 1,672.17 MiB while maintaining 100.00% (40/40) Passkey Needle retrieval and 95.31% (61/64) ARC-Easy accuracy.
  • Static Zero-Allocation Execution: 0 B dynamic VRAM allocation delta across 1,000 sustained decode steps; fail-closed bos_token_id = 2 guard; fail-closed pos >= T_ctx_cap (pos = 131072) KV out-of-bounds guard; live multi-step IRIS state integrity (27/27).

Verified Benchmarks (RTX 3080 Laptop GPU, 8 GiB VRAM)

All language-model evaluations enforce explicit bos_token_id = 2, exact newline (\n) WikiText-2 splitting (12,240 target tokens), GSM8K (11,701 target tokens), 4-choice ARC-Easy (N = 64), and native bare-metal sm_86 CUDA Passkey Needle (N = 40, L = 1024 / 2048, depths 10%–90%, 6-digit passkey).

Model / KV Configuration WikiText-2 NLL / PPL (\n, 12,240 tok) Delta vs BF16 GSM8K NLL (11,701 tok) Delta vs BF16 Passkey (N=40, 1K/2K) ARC-Easy (N=64) B=1 / B=16 (T=128) 128K Static Arena
google/gemma-4-E4B-it (BF16 Anchor) 4.8152 / 123.37 +0.0000 2.3646 +0.0000 Anchor 96.88% (62/64) Reference N/A
SiliGemma-3.0 (BF16-KV) 4.8166 / 123.54 +0.0014 2.3686 +0.0039 100.00% (40/40) 95.31% (61/64) 72.38 / 458.89 tok/s 4,994.31 MiB
SiliGemma-3.0 (3bK/3bV-KV, 5.22x) 4.8444 / 127.03 +0.0293 2.4120 +0.0474 100.00% (40/40) 95.31% (61/64) 68.31 / 400.10 tok/s 3,322.14 MiB

Fidelity, Parity & Runtime Integrity Details

  • Full-262K Raw Logit Cosine vs Untouched BF16 Anchor:
    • Canonical prompt: 0.954795 (cos_cent = 0.978718, exact top-1 match 568 / 568).
    • Held-out N = 24 prompt suite mean: 0.992656 (vs 0.989912 for uniform 4.5 bpw .slgb v3, mean lift +0.002744, paired permutation p = 0.0605).
    • Calibrated answer log-likelihood rank correlation (N = 64 4-choice reasoning suite): Spearman rho(L_ans) = 0.9530, rho(L_MCF) = 0.9645.
  • Bare-Metal CUDA vs PyTorch .slgb v4 Parity (BF16-KV):
    • B = 1 (6 steps): min cosine 0.999427, top-1 agreement 6/6 (100.00%).
    • B = 16 (48 steps): min cosine 0.998625, top-1 agreement 48/48 (100.00%).
    • (The < 0.0014 cosine difference reflects higher-precision FP32 / 22-bit dp4a22 / FP16-pair mma accumulation in bare-metal CUDA vs 7-bit mantissa BF16 GEMMs in PyTorch across 42 layers.)
  • Bare-Metal CUDA vs PyTorch .slgb v4 Parity (3bK/3bV-KV):
    • B = 1 (6 steps): min cosine 0.938155, top-1 agreement 5/6 (83.33%).
    • B = 16 (48 steps): min cosine 0.907610, top-1 agreement 44/48 (91.67%).
  • SECDED(72,64) & IRIS Runtime Fault Injection:
    • 0 clean SEC/DED errors across 305,561,600 words; 4-bit SEC 3/3 (B=1) & 4/4 (B=16); 8-bit SEC 3/3 (B=1) & 4/4 (B=16); DED rollback 3/3 + live 4-bit and 8-bit pre-commit DED rollback PASS; 27/27 live multi-step IRIS; H_16/H_32 GPU roundtrip max error 1.19e-6.

Energy Efficiency & Power Profile (Provisional)

Provisional Uncontrolled-Laptop Telemetry Disclaimer: Energy readings are not guaranteed to be consistent due to uncontrollable variables (thermal state, ambient temperature, fan curve, and dynamic power limits). Status: UNCONTROLLED_LAPTOP_NOT_CLAIMED.

Measured via live 100 Hz NVML sampling (241–245 samples per 2.4 s CUDA-Graph window, unknown_bits = 0) on an NVIDIA GeForce RTX 3080 Laptop GPU (80 W laptop power envelope):

Arm (T = 128) Throughput (tok/s) Latency (ms/step) Avg Power (W) Energy (J/tok) Efficiency (tok/J) Run Energy (Wh) GPU Temp Mean / Max (C) NVML Rate (Hz, samples)
B = 1 BF16-KV 72.38 13.815 79.74 1.1091 0.9016 0.0536 67.1 / 68.0 100.0 (242)
B = 16 BF16-KV 458.89 34.867 79.70 0.1747 5.7232 0.0536 70.3 / 71.0 100.0 (242)
B = 1 3bK/3bV-KV 68.31 14.638 79.83 1.1732 0.8523 0.0534 77.0 / 77.0 100.0 (241)
B = 16 3bK/3bV-KV 400.10 39.990 79.58 0.1998 5.0051 0.0542 78.0 / 78.0 100.0 (245)

Limitations & Honest Disclosures

  • Uncontrolled Laptop Thermal/Power Conditions: All throughput and NVML readings were measured on an 80 W RTX 3080 Laptop GPU (throttle_mask = 4, software power cap active). Power and energy figures are provisional telemetry only and are not efficiency claims.
  • Short-Prompt Permutation Variance: While two-tier .slgb v4 cuts WikiText-2 NLL drift by 18x (+0.0014 vs +0.0253) and GSM8K drift by 4x (+0.0039 vs +0.0157) relative to uniform 4.5 bpw quantization, the N = 24 short-prompt (5–32 token) held-out cosine permutation test returned delta = +0.002744 (p = 0.0605).
  • 3-Bit KV (3bK/3bV) Multi-Step Parity Drift: Under --kv-mode 3b3b, bare-metal CUDA vs PyTorch .slgb v4 multi-step parity exhibits lower cosine and top-1 agreement (B = 1: min cosine 0.938155, 5/6 top-1; B = 16: min cosine 0.907610, 44/48 top-1) than BF16-KV (0.999427 / 6/6 and 0.998625 / 48/48), reflecting 3-bit KV quantization sensitivity across FP32/FP16-pair CUDA vs BF16 PyTorch accumulation, while Passkey (40/40, 100.00%) and ARC-Easy (61/64, 95.31%) remain intact.
  • Custom Bare-Metal Runtime: .slgb v4 weights are executed by the bare-metal Ampere sm_86 runtime in Moissanite-Labs/siligemma (and can also be dequantized on the fly for PyTorch verification), rather than standard Hugging Face transformers AutoModelForCausalLM.from_pretrained. The upstream root config.json and tokenizer files are bundled verbatim so Hub metadata, download tracking, and tokenizer pipelines work out of the box.

License & Attribution

  • Inherited license: Apache License 2.0 (LICENSE), preserving the upstream notice for google/gemma-4-E4B-it (https://ai.google.dev/gemma/docs/gemma_4_license; see NOTICE_UPSTREAM_LICENSE.txt).
  • Gemma is a trademark of Google LLC. This is an independent community quantization and bare-metal runtime release and is not affiliated with or endorsed by Google.
Downloads last month
203
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for ahrazzle/SiliGemma-3.0

Quantized
(489)
this model

Collection including ahrazzle/SiliGemma-3.0