Recipe

gemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1

gemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1

Gemma-4-12B-it NVFP4 on one RTX PRO 6000 Blackwell Server Edition with the checksum-verified Gemma engine patch, FP8 E4M3 KV, exact 128K context, four concurrent requests, full decode graphs at BS1/2/4, and runtime-inactive multimodal prefill graphs

Record

Status
validated
Source
0xsero
Engine
sglang
Engine version
0.0.0.dev1+geec794bce
Graph
full
Accelerators
1
Tensor parallel
1
Context tokens
131,072
Max concurrency
4
KV cache tokens
607,450
chat
yes
reasoning
no
tools
no
vision
no

Hugging Face model card

Identity

https://huggingface.co/unsloth/gemma-4-12b-it-NVFP4
Repository
unsloth/gemma-4-12b-it-NVFP4
Status
known
Link type
Exact Hub repository

Public Hugging Face repository confirmed by the Hub API.

Validated: pinned artifact, pinned runtime, and accepted evidence. This is a launch contract.

Docker configuration

sglang

Container · validated · docker

Validated launch contract

Image
lmsysorg/sglang:dev-cu13@sha256:6cd4635214f279e0a43019f88e3120d407567640a58aa7dcc0085e3d91402cc4
Digest
sha256:6cd4635214f279e0a43019f88e3120d407567640a58aa7dcc0085e3d91402cc4
Port
30000

Launch arguments

  1. -lc
  2. set -euo pipefail; echo 'dede8848dbcbfcfc6507da963a65d120add93101b6ff5fb54a03f19e86233d11 /tmp/gemma4-engine-patch.diff' | sha256sum -c -; echo 'd5498b253f35e83ab0aaf219a2c2bf2f42c6bbd3f95ffce02760e78b2e38a4e9 /sgl-workspace/sglang/python/sglang/srt/models/gemma4_unified.py' | sha256sum -c -; (cd /sgl-workspace/sglang && patch -p0 < /tmp/gemma4-engine-patch.diff); echo 'b0614b99a0d7fe654ed102fb5db04c578e3be6042896f73f9418965e6672c737 /sgl-workspace/sglang/python/sglang/srt/models/gemma4_unified.py' | sha256sum -c -; exec /opt/sglang/bin/python -m sglang.launch_server --model-path unsloth/gemma-4-12b-it-NVFP4 --revision b1f649734b34aa5575b03d186abd1b9be3d0d5c4 --tp 1 --host 0.0.0.0 --port 30000 --context-length 131072 --mem-fraction-static 0.94 --attention-backend triton --kv-cache-dtype fp8_e4m3 --max-running-requests 4 --cuda-graph-max-bs-decode 4 --enable-cache-report --trust-remote-code --reasoning-parser gemma4 --tool-call-parser gemma4

Environment

VariableValue
HF_HOME/root/.cache/huggingface

Mounts

SourceTarget
~/.cache/huggingface/root/.cache/huggingface
asset/gemma4-nvfp4-sglang-engine-patch.diff/tmp/gemma4-engine-patch.diff (read-only)

Launch

Exact materialization of this validated launch contract: digest-pinned image, pinned model revision, and the audited arguments. Self-contained — required assets are fetched from this registry and verified against their recorded sha256 before mounting. Also available as local-ai run gemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1.

  1. Pulls the exact container image by sha256 digest — the bytes that were validated, not a floating tag.
  2. Fetches any required engine assets from this registry and verifies each against its recorded sha256; the audited launch script verifies them again inside the container before use.
  3. Downloads the pinned model revision into your Hugging Face cache on first run (reused afterwards).
  4. Serves an OpenAI-compatible API on localhost:30000 — point any client at it.
ASSETS="${TMPDIR:-/tmp}/local-ai-assets" && mkdir -p "$ASSETS" && \
curl -fsSL 'https://local-ai-registry.vercel.app/api/v1/asset/gemma4-nvfp4-sglang-engine-patch/file' -o "$ASSETS/gemma4-nvfp4-sglang-engine-patch.diff" && \
{ printf '%s  %s\n' '39b94c941aa223ff96e6b9f93d4266bced8498be2e3d814207c770e54ad3af98' "$ASSETS/gemma4-nvfp4-sglang-engine-patch.diff" | sha256sum -c - 2>/dev/null || printf '%s  %s\n' '39b94c941aa223ff96e6b9f93d4266bced8498be2e3d814207c770e54ad3af98' "$ASSETS/gemma4-nvfp4-sglang-engine-patch.diff" | shasum -a 256 -c -; } && \
docker run --rm \
  --gpus all \
  --ipc host \
  --shm-size 16g \
  -p 30000:30000 \
  -e HF_HOME=/root/.cache/huggingface \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -v "$ASSETS/gemma4-nvfp4-sglang-engine-patch.diff":/tmp/gemma4-engine-patch.diff:ro \
  --entrypoint /bin/bash \
  lmsysorg/sglang:dev-cu13@sha256:6cd4635214f279e0a43019f88e3120d407567640a58aa7dcc0085e3d91402cc4 \
  -lc \
  'set -euo pipefail; echo '\''dede8848dbcbfcfc6507da963a65d120add93101b6ff5fb54a03f19e86233d11  /tmp/gemma4-engine-patch.diff'\'' | sha256sum -c -; echo '\''d5498b253f35e83ab0aaf219a2c2bf2f42c6bbd3f95ffce02760e78b2e38a4e9  /sgl-workspace/sglang/python/sglang/srt/models/gemma4_unified.py'\'' | sha256sum -c -; (cd /sgl-workspace/sglang && patch -p0 < /tmp/gemma4-engine-patch.diff); echo '\''b0614b99a0d7fe654ed102fb5db04c578e3be6042896f73f9418965e6672c737  /sgl-workspace/sglang/python/sglang/srt/models/gemma4_unified.py'\'' | sha256sum -c -; exec /opt/sglang/bin/python -m sglang.launch_server --model-path unsloth/gemma-4-12b-it-NVFP4 --revision b1f649734b34aa5575b03d186abd1b9be3d0d5c4 --tp 1 --host 0.0.0.0 --port 30000 --context-length 131072 --mem-fraction-static 0.94 --attention-backend triton --kv-cache-dtype fp8_e4m3 --max-running-requests 4 --cuda-graph-max-bs-decode 4 --enable-cache-report --trust-remote-code --reasoning-parser gemma4 --tool-call-parser gemma4'

Measured speed

ConcurrencyContextPrefillDecodeTTFT msStatusSweep
1130,5603,057.938.342,696.2acceptedgemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1-sweep
1130,560505,439.937.2258.3acceptedgemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1-sweep
2130,56014.965,025.4acceptedgemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1-sweep
2130,56037.9488.1acceptedgemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1-sweep
4130,5606.6107,182.7acceptedgemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1-sweep
4130,56038518.9acceptedgemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1-sweep

Remaining fields

Identity, launch, related records, and measured speed are shown above. This is the rest of the normalized record.

hardware count
1
hardware id
rtx-pro-6000-blackwell-96gb
id
gemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1
model instance id
unsloth-gemma-4-12b-it-nvfp4--nvfp4
recipe source
0xsero
schema version
local-ai-registry/v1
speed sweep ids
gemma-4-12b-it-nvfp4-rtxpro6000-sglang-tp1-sweep
status
validated

capabilities

chat
Yes
reasoning
No
tools
No
vision
No

engine

graph mode
full
name
sglang
version
0.0.0.dev1+geec794bce

serving

kv cache tokens
607,450
max concurrency
4
max context tokens
131,072
tensor parallel
1
Provenance & metadata (3)

facts

metadata

provenance

captured at
2026-08-27T06:04:13.773Z

sources

captured atkindurl
2026-08-27T06:04:13.773Znormalized-recipegithub.com/0xSero/local-ai-registry