Views
No views yet
artifacts/spectral_sidecar_chat_v2.pt: SpectralQuant calibration sidecar.scripts/setup_repro_from_hf.sh: one-command setup for a new machine.scripts/serve_phase2_eagle.sh: OpenAI-compatible vLLM server launcher.scripts/bench_tokens_sec_phase2_eagle.sh: smoke/benchmark runner.scripts/build_docker_image.sh: builds a no-weights runtime image.docker/: Dockerfile and entrypoint for the no-weights runtime image.scripts/test_triton_codebook_match.py: isolated kernel equivalence harness.scripts/measure_kv_cache_compression.py: live KV-cache measurement helper.results/: selected validation outputs.manifest.json: exact tested versions and checksums.1https://github.com/bluecopa/vllm-spectral.git
2branch: spectral-codebook-docker
3commit: 008dd7f87fb9de185e536ad30b4d524024ed9b9fMAX_MODEL_LEN=512, MAX_NUM_SEQS=2, GPU_MEMORY_UTILIZATION=0.8, then scale after validation.git.pip install -U huggingface_hub or equivalent.1hf auth login
2export HF_TOKEN=...1vLLM Spectral fork at 008dd7f87fb9de185e536ad30b4d524024ed9b9f
2GemmaCut launcher entrypoint
3Spectral sidecar artifacts/spectral_sidecar_chat_v2.pt
4git/cmake/ninja build tools for inspection and follow-up workIntel/gemma-4-31B-it-int4-AutoRound and RedHatAI/gemma-4-31B-it-speculator.eagle3 are downloaded at runtime into the mounted Hugging Face cache.1hf download satya007/gemmacut-spectral \
2 .dockerignore \
3 docker/Dockerfile \
4 docker/entrypoint.sh \
5 docker/download_sidecar.py \
6 scripts/build_docker_image.sh \
7 --local-dir ./gemmacut-spectral-image
8
9cd ./gemmacut-spectral-image
10chmod +x ./scripts/build_docker_image.sh
11IMAGE=gemmacut-spectral:008dd7f87 ./scripts/build_docker_image.sh1mkdir -p "$PWD/hf-cache" "$PWD/results"
2
3docker run --rm --gpus all --ipc=host \
4 -e HF_TOKEN \
5 -v "$PWD/hf-cache:/root/.cache/huggingface" \
6 -v "$PWD/results:/workspace/results_bench" \
7 gemmacut-spectral:008dd7f87 smoke1docker run --rm --gpus all --ipc=host \
2 -p 8000:8000 \
3 -e HF_TOKEN \
4 -e MAX_MODEL_LEN=512 \
5 -e MAX_NUM_BATCHED_TOKENS=512 \
6 -e MAX_NUM_SEQS=2 \
7 -e GPU_MEMORY_UTILIZATION=0.8 \
8 -v "$PWD/hf-cache:/root/.cache/huggingface" \
9 gemmacut-spectral:008dd7f87 serve1IMAGE=gemmacut-spectral:008dd7f87-nosidecar \
2 ./scripts/build_docker_image.sh --build-arg INCLUDE_SIDECAR=0
3
4docker run --rm --gpus all --ipc=host \
5 -p 8000:8000 \
6 -e HF_TOKEN \
7 -e SPECTRAL_SIDECAR=/workspace/spectral_sidecar_chat_v2.pt \
8 -v "$PWD/hf-cache:/root/.cache/huggingface" \
9 -v "$PWD/spectral_sidecar_chat_v2.pt:/workspace/spectral_sidecar_chat_v2.pt:ro" \
10 gemmacut-spectral:008dd7f87-nosidecar serve1$HOST_ROOT/vllm-spectral
2$HOST_ROOT/gemmacut
3$HOST_ROOT/gemmacut/results_it/spectral_sidecar_chat_v2.pt
4$HOST_ROOT/.cache/huggingface1export HOST_ROOT=$PWD/gemmacut-spectral-host
2
3hf download satya007/gemmacut-spectral \
4 scripts/setup_repro_from_hf.sh \
5 --local-dir /tmp/gemmacut-spectral-bootstrap
6
7chmod +x /tmp/gemmacut-spectral-bootstrap/scripts/setup_repro_from_hf.sh
8/tmp/gemmacut-spectral-bootstrap/scripts/setup_repro_from_hf.sh008dd7f87fb9de185e536ad30b4d524024ed9b9f,$HOST_ROOT.1cd "$HOST_ROOT/gemmacut"
2
3HOST_ROOT="$HOST_ROOT" \
4SPECTRAL_CUDA_GRAPH=1 \
5RUN_SMOKE=1 \
6SMOKE_ONLY=1 \
7NUM_SPEC_TOKENS=3 \
8./bench_tokens_sec_phase2_eagle.sh1What is 2+2? Answer with just the number. => 4
2Paris is the capital of which country? Answer with one word. => France
3SMOKE_PROMPTS_OK1cd "$HOST_ROOT/gemmacut"
2
3HOST_ROOT="$HOST_ROOT" \
4HF_TOKEN="${HF_TOKEN:-}" \
5PORT=8000 \
6HOST_PORT=8000 \
7SERVED_MODEL_NAME=gemmacut-spectral \
8MAX_MODEL_LEN=512 \
9MAX_NUM_BATCHED_TOKENS=512 \
10MAX_NUM_SEQS=2 \
11GPU_MEMORY_UTILIZATION=0.8 \
12NUM_SPEC_TOKENS=3 \
13SPECTRAL_CUDA_GRAPH=1 \
14./serve_phase2_eagle.sh1Intel/gemma-4-31B-it-int4-AutoRound
2RedHatAI/gemma-4-31B-it-speculator.eagle31curl http://localhost:8000/v1/chat/completions \
2 -H 'Content-Type: application/json' \
3 -d '{
4 "model": "gemmacut-spectral",
5 "messages": [
6 {"role": "user", "content": "What is 2+2? Answer with just the number."}
7 ],
8 "max_tokens": 16,
9 "temperature": 0
10 }'1SPECTRAL_TRITON_COMPRESS=1
2SPECTRAL_TRITON_DEQUANT=1
3SPECTRAL_CUDA_GRAPH=1
4SPECTRAL_VERIFY=0
5ENABLE_SPECTRAL=1
6ENABLE_EAGLE=1
7NUM_SPEC_TOKENS=3
8DISABLE_HYBRID_KV_CACHE_MANAGER=0
9kv_cache_dtype=fp8_e4m3ENABLE_EAGLE=0 to skip loading the Eagle3 drafter while keeping the SpectralQuant base path enabled. The normal full package uses ENABLE_EAGLE=1.ENABLE_SPECTRAL=0 ENABLE_EAGLE=0 to serve the base Intel/gemma-4-31B-it-int4-AutoRound model with fp8 KV cache and no SpectralQuant flags. That mode is not GemmaCut Spectral; it is only a diagnostic for checking whether the base model, Docker image, HF cache, and GPU fit before enabling Spectral. The host setup scripts always enable Spectral; they support ENABLE_EAGLE=0 only for constrained Spectral smokes.DISABLE_HYBRID_KV_CACHE_MANAGER=0 uses the default vLLM hybrid KV cache manager. Commit 008dd7f87fb9de185e536ad30b4d524024ed9b9f teaches that path to account for Spectral's nonuniform per-layer page sizes with group-local block pools. Set DISABLE_HYBRID_KV_CACHE_MANAGER=1 only as a fallback/bisect mode.HF_HUB_OFFLINE=1 only after the base model and drafter are already cached under $HOST_ROOT/.cache/huggingface.1results/tokens_sec_phase2_eagle_cg1_3spec_128x64_16p_20260413_021712/
2completed=16
3failed=0
4output_throughput=57.94 tok/s
5total_token_throughput=173.83 tok/s
6Eagle acceptance rate=34.66%1results/phase2_eagle_cg1_semantic_smoke_20260413_022223/
2SMOKE_PROMPTS_OK1results/candidate_grouped_kv_4k_niah_single_1_500_20260413_073312/
2MAX_MODEL_LEN=8192
3MAX_NUM_BATCHED_TOKENS=4096
4MAX_NUM_SEQS=1
5GPU_MEMORY_UTILIZATION=0.9
6SPECTRAL_CUDA_GRAPH=1
7DISABLE_HYBRID_KV_CACHE_MANAGER=0
8GPU KV cache size: 192,192 tokens
9Maximum concurrency for 8,192 tokens per request: 23.46x
10RULER niah_single_1 4K: 500/500 exact matches, score=100.0, nulls=0/500
11mean_latency_s=4.46671NVIDIA L4, 23,034 MiB
2Docker image build: passed
3HF model prefetch after retry: passed
4Base INT4 + fp8 KV, no Spectral, no Eagle: passed two-prompt smoke
5Base INT4 + fp8 KV cache capacity: 2,304 tokens at MAX_MODEL_LEN=512, GPU_MEMORY_UTILIZATION=0.9
6SpectralQuant, no Eagle, SPECTRAL_CUDA_GRAPH=0: failed to reserve KV cache; available KV cache memory -0.74 GiB
7Full SpectralQuant + Eagle3: failed while loading the Eagle3 drafter with CUDA OOM/tmp inside the container and links native extensions from the Docker image.scripts/setup_repro_from_hf.sh; it uses a host-local download cache and retries the large sidecar file.1artifacts/spectral_sidecar_chat_v2.pt
2sha256: e47a36c13467cbedf720e7f782b976df3dcda2d989c727113a8315008661a3e4
3size: 505,231,357 bytesapache-2.0.google/gemma-4-31B-it: apache-2.0Intel/gemma-4-31B-it-int4-AutoRound: quantized from google/gemma-4-31B-it and says to follow the original model licenseRedHatAI/gemma-4-31B-it-speculator.eagle3: apache-2.0