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
LICENSEandNOTICE_UPSTREAM_LICENSE.txt) - Primary Artifact:
gemma4_e4b_farkas_v4.slgb(3,042,551,676 B,3.04 GB; SHA-2566cab2be2f0a6280e0b693a7edaa65e09a92502bb9ee1f5eb7f19a25a69886dd5) - Zero-Spill
sm_86SASS:<= 48registers,0 Bstack frame,0 Blocal memory,0 Bspill,0LDL/STLacross 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 v4Weights (344live linears,54dead KV tensors omitted):226linears at4.5 bpw(int4group-32 with SloaneHad.16.3orthogonal pre-rotation, FP16 group scale, and inline HammingSECDED(72,64)ECC).118sensitivity-upgraded linears at8.5 bpw(int8group-32 withHad.16.3pre-rotation, FP16 scale, and inlineSECDED(72,64)ECC): 41ple_gate, 41ple_proj, 13o_proj, 12v_proj, 7q_proj, 2k_proj, 1up_proj, and 1per_layer_model_projection.305,561,600SECDED(72,64)-protected 64-bit weight words (0clean errors; single-bit errors auto-healed in-register, double-bit errors trigger pre-commit rollback).
- Selectable
H_16/H_32 x Had.16.33-Bit KV Compression (--kv-mode 3b3b):- Sliding attention layers (
d = 256):96 Bpacked 3-bit Lloyd-Max codes +2 BFP16 scale =98 B/head(49/16 = 3.0625 bpw,256/49 = 5.2245xcompression vs BF16). - Global attention layers (
d = 512):192 Bpacked 3-bit Lloyd-Max codes +4 BFP32 scale =196 B/head(49/16 = 3.0625 bpw,256/49 = 5.2245xcompression vs BF16). - Reduces the
B=1 @ 128Kstatic VRAM arena from4,994.31 MiB(BF16-KV) to3,322.14 MiB(3bK/3bV-KV), saving1,672.17 MiBwhile maintaining100.00%(40/40) Passkey Needle retrieval and95.31%(61/64) ARC-Easy accuracy.
- Sliding attention layers (
- Static Zero-Allocation Execution:
0 Bdynamic VRAM allocation delta across1,000sustained decode steps; fail-closedbos_token_id = 2guard; fail-closedpos >= 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 match568 / 568). - Held-out
N = 24prompt suite mean:0.992656(vs0.989912for uniform 4.5 bpw.slgb v3, mean lift+0.002744, paired permutationp = 0.0605). - Calibrated answer log-likelihood rank correlation (
N = 644-choice reasoning suite): Spearmanrho(L_ans) = 0.9530,rho(L_MCF) = 0.9645.
- Canonical prompt:
- Bare-Metal CUDA vs PyTorch
.slgb v4Parity (BF16-KV):B = 1(6steps): min cosine0.999427, top-1 agreement6/6(100.00%).B = 16(48steps): min cosine0.998625, top-1 agreement48/48(100.00%).- (The
< 0.0014cosine difference reflects higher-precision FP32 / 22-bitdp4a22/ FP16-pairmmaaccumulation in bare-metal CUDA vs 7-bit mantissa BF16 GEMMs in PyTorch across 42 layers.)
- Bare-Metal CUDA vs PyTorch
.slgb v4Parity (3bK/3bV-KV):B = 1(6steps): min cosine0.938155, top-1 agreement5/6(83.33%).B = 16(48steps): min cosine0.907610, top-1 agreement44/48(91.67%).
- SECDED(72,64) & IRIS Runtime Fault Injection:
0clean SEC/DED errors across305,561,600words; 4-bit SEC3/3(B=1) &4/4(B=16); 8-bit SEC3/3(B=1) &4/4(B=16); DED rollback3/3+ live 4-bit and 8-bit pre-commit DED rollback PASS;27/27live multi-step IRIS;H_16/H_32GPU roundtrip max error1.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 WRTX 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 v4cuts WikiText-2 NLL drift by18x(+0.0014vs+0.0253) and GSM8K drift by4x(+0.0039vs+0.0157) relative to uniform 4.5 bpw quantization, theN = 24short-prompt (5β32token) held-out cosine permutation test returneddelta = +0.002744(p = 0.0605). - 3-Bit KV (
3bK/3bV) Multi-Step Parity Drift: Under--kv-mode 3b3b, bare-metal CUDA vs PyTorch.slgb v4multi-step parity exhibits lower cosine and top-1 agreement (B = 1: min cosine0.938155,5/6top-1;B = 16: min cosine0.907610,44/48top-1) thanBF16-KV(0.999427/6/6and0.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 v4weights are executed by the bare-metal Amperesm_86runtime in Moissanite-Labs/siligemma (and can also be dequantized on the fly for PyTorch verification), rather than standard Hugging FacetransformersAutoModelForCausalLM.from_pretrained. The upstream rootconfig.jsonand 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 forgoogle/gemma-4-E4B-it(https://ai.google.dev/gemma/docs/gemma_4_license; seeNOTICE_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