Speed test
gemma-4-12B-it-qat-w4a16-ct
RTX 3090 24GB · vllm · v0.32.0 · W4A16
Decode
69.7tok/s
Prefill
10.1ktok/s
Time to first token
23ms
Total
101tok/s
Peak VRAM
21.6GB
Context length
256K
KV depth
0
Batch size
1
Concurrency
1
Power draw
348W
Verification
Verified runLaunch command
vllm serve google/gemma-4-12B-it-qat-w4a16-ct --max-model-len 262144 --gpu-memory-utilization 0.94 --max-num-seqs 128 --enable-prefix-caching --trust-remote-code --language-model-only --kv-cache-dtype int4_per_token_head --attention-backend TRITON_ATTN
Theoretical memory ceiling
155.4–156.0 tok/s
936.2 GB/s memory bandwidth (spec sheet) · 6.00 GB model weights · 4-bit KV cache · 1–236 tokens of context
45–45%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from google/gemma-4-12B-it-qat-w4a16-ct; size from W4A16 estimate. Hardware source · Open calculator
Hardware
- GPU
- RTX 3090
- Count
- 1
- VRAM
- 24 GB
- OS
- Ubuntu 24.04.5
Engine
- Engine
- vllm
- Version
- 0.32.0
- Repository
- https://github.com/vllm-project/vl…
- Build
- vllm/vllm-openai:v0.32.0-x86_64
- Quant
- W4A16
- Backend
- cuda
- TP
- 1
- KV cache
- int4_per_token_head
- GPU mem util
- 0.94
- Prefix caching
- yes
- Max running seqs
- 128
- Attn
- TRITON_ATTN
Run config
- Context
- 262,144 tokens
- Depth
- 0 tokens
- Batch size
- 1
- Prompt tokens
- 236
- Prefill tok/s
- 10.1K tok/s
- Power draw
- 348 W
- Output tokens
- 512
- Notes
- Untuned out-of-the-box baseline (same server config as our LMX matrix for this model). Spec decode: none. KV cache: int4_per_token_head. 1x RTX 3090 24GB (Zagitta/gpu-unlock), 350 W limit (VBIOS max), PCIe Gen4 x16 | AMD Ryzen 9 7900X 12C | 32 GB DDR5 | Ubuntu 24.04.5, NVIDIA driver 595.99.02. Method: LocalMaxxing canonical prompt code-v1, batch 1, streaming, temperature 0, 512 output tokens (ignore_eos), cache-bust nonce so every prefill is cold, thinking off. Median of 5 runs (range 69.7-69.7 tok/s). tokSOut = (completion - 1) / time after first token.
Captured evidence
- Prompt hash (SHA-256)
- a737db738bd4…
Prompt sample · 760 chars
Implement a small command-line tool in Python called `logtally`. Requirements: - It reads newline-delimited JSON log records from stdin. Each record has `ts` (ISO-8601 string), `level` (one of DEBUG, INFO, WARN, ERROR), `service` (string), and optional `latency_ms` (number). - It prints, per service, the count of records by level and the p50 and p95 of `latency_ms` (ignore records without latency). - Malformed lines must be counted and reported at the end, never crash the program. - Support a `--since <ISO timestamp>` flag that drops earlier records. - Use only the standard library. After the code, explain in two or three sentences how you computed percentiles and why you chose that method, then list three edge cases a unit test suite should cover.
Output sample · 1,905 chars
```python
import sys
import json
import argparse
from datetime import datetime
from collections import defaultdict
import math
def parse_iso_datetime(ts_str):
# Handles common ISO formats; handles 'Z' suffix by replacing with +00:00
return datetime.fromisoformat(ts_str.replace('Z', '+00:00'))
def get_percentile(data, percentile):
if not data:
return 0.0
sorted_data = sorted(data)
# Using the Nearest Rank method
index = math.ceil((percentile / 100) * len(sorted_data)) - 1
return sorted_data[max(0, index)]
def main():
parser = argparse.ArgumentParser(description="Tally log records by service and level.")
parser.add_argument("--since", help="ISO timestamp to start including records")
args = parser.parse_args()
since_dt = None
if args.since:
try:
since_dt = parse_iso_datetime(args.since)
except ValueError:
print(f"Error: Invalid date format for --since. Use ISO-8601.", file=sys.stderr)
sys.exit(1)
# Structure: { service_name: { level: count, latencies: [list] } }
stats = defaultdict(lambda: {"counts": defaultdict(int), "latencies": []})
malformed_count = 0
for line in sys.stdin:
line = line.strip()
if not line:
continue
try:
record = json.loads(line)
# Validate required fields
if not all(k in record for k in ("ts", "level", "service")):
malformed_count += 1
continue
# Filter by time
current_dt = parse_iso_datetime(record["ts"])
if since_dt and current_dt < since_dt:
continue
service = record["service"]
level = record["level"]
stats[service]["counts"][level] += 1
latency = record.get("latency_ms")
More runs of this model on this hardware
- 86.0tok/svllm · v0.32.0 · W4A16256K context · 0 depth · batch 1Verified runSandberg · Oct 30, 2026
- 85.9tok/svllm · v0.32.0 · W4A16256K context · 0 depth · batch 1Verified runSandberg · Oct 30, 2026
- 83.7tok/svllm · v0.32.0 · W4A16256K context · 0 depth · batch 1Verified runSandberg · Oct 30, 2026
- 83.5tok/svllm · v0.32.0 · W4A16256K context · 0 depth · batch 1Verified runSandberg · Oct 30, 2026
- 71.8tok/svllm · v0.32.0 · W4A16256K context · 0 depth · batch 1Verified runSandberg · Oct 29, 2026
- 71.4tok/svllm · v0.32.0 · W4A16256K context · 0 depth · batch 1Verified runSandberg · Oct 29, 2026
- 69.3tok/svllm · v0.32.0 · W4A16256K context · 0 depth · batch 1Verified runSandberg · Oct 30, 2026
