gemma-2-9b-it β€” AWQ 4-bit

Auto-quantized from google/gemma-2-9b-it by fastserve's self-quantization pipeline (publish/) β€” so it can be trusted the way a random community AWQ requant sometimes can't. Two community quants fastserve auto-detected during its own benchmark run looped garbage tokens instead of answering; every checkpoint published here passed an accuracy gate against its bf16 baseline first.

Quantization

  • Method: AWQ (W4A16_ASYM), group size 128, via llm-compressor
  • Calibration: 256 samples from wikitext

Validation (accuracy gate β€” this is why you can trust it)

bf16 baseline this AWQ checkpoint
GSM8K accuracy (n=30) 0.7 0.6333

Within 0.1 (absolute) of the bf16 baseline, <30% degenerate (repeated-token loops). A checkpoint that failed this gate would not have been uploaded.

Original vs vLLM vs fastserve

Same GSM8K prompts (n=8), single-stream (batch-1) greedy decode, one A100-80GB. "fastserve" = this AWQ checkpoint + speculative decoding (ngram) on vLLM. Memory = weights only (bf16 vs AWQ); vLLM's KV-cache budget is a separate knob.

Original (HF bf16) vLLM (bf16) fastserve (AWQ+spec)
GSM8K acc 0.875 0.875 0.875
Decode speed 29.7 tok/s 70.8 tok/s 147.5 tok/s
Weights (VRAM) 17.21 GiB 17.21 GiB 7.45 GiB

Serve it with fastserve

fastserve auto-detects this checkpoint β€” point it at the original model id and it finds this AWQ + wires up speculative decoding:

git clone https://github.com/jireh-father/fastserve && cd fastserve && ./install.sh

# serve an OpenAI-compatible API (auto-picks this AWQ checkpoint)
./fastserve serve google/gemma-2-9b-it

# or benchmark the speedup vs the naive baseline
./fastserve bench google/gemma-2-9b-it --compare-baseline

Then query it like any OpenAI endpoint:

curl localhost:8000/v1/completions \
  -d '{"model": "glenic/gemma-2-9b-it-AWQ", "prompt": "Q: What is 17*4?\nA:", "max_tokens": 64}'

Or serve directly with vLLM

pip install vllm
python -m vllm.entrypoints.openai.api_server --model glenic/gemma-2-9b-it-AWQ

License

Inherits the base model's license β€” see google/gemma-2-9b-it for terms.

Downloads last month
55
Safetensors
Model size
10B params
Tensor type
I64
Β·
I32
Β·
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for glenic/gemma-2-9b-it-AWQ

Quantized
(172)
this model