Test de vitesse
gemma-4-12B-it-qat-w4a16-ct
CMP 170HX 64GB · vllm · v0.32.0rc1.dev249+g18305948a · W4A16
Décodage
93.5tok/s
Prefill
3.1ktok/s
Délai jusqu'au premier token
76ms
Total
135tok/s
VRAM max
59,3Go
Longueur de contexte
256K
Profondeur KV
0
Taille de lot
1
Concurrence
1
Consommation
181W
Vérification
Exécution vérifiéeCommande de lancement
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
Theoretical memory ceiling
245.0–248.8 tok/s
1,493 GB/s memory bandwidth (spec sheet) · 6.00 GB model weights · 16-bit KV cache · 1–237 tokens of context
38–38%
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
Matériel
- GPU
- CMP 170HX
- Nombre
- 1
- VRAM
- 64 GB
- OS
- Ubuntu 26.04.1
Moteur
- Moteur
- vllm
- Version
- 0.32.0rc1.dev249+g18305948a
- Repository
- https://github.com/vllm-project/vl…
- Build
- ghcr.io/morrowmake/vllm-cmp170hx@sha256:5b45c4d6feafefe2eba962375b0a9a0b64fd22b9e05abb4d1966f14a32a2db79
- Quant
- W4A16
- Backend
- cuda
- TP
- 1
- KV cache
- auto
- GPU mem util
- 0.94
- Prefix caching
- oui
- Max running seqs
- 128
Configuration du run
- Contexte
- 262 144 tokens
- Profondeur
- 0 tokens
- Taille de batch
- 1
- Tokens de prompt
- 237
- Prefill tok/s
- 3,125.3 tok/s
- Consommation électrique
- 181 W
- Tokens de sortie
- 512
- Notes
- Untuned out-of-the-box baseline (same server config as our LMX matrix for this model). Spec decode: none. KV cache: auto (bf16). 1x NVIDIA CMP 170HX 64GB (cmpunlocker), 180 W limit, PCIe Gen2 x4 | 2x Intel Xeon E5-2630 v3 | 64 GB DDR4 | Ubuntu 26.04.1, NVIDIA driver 610.57.04 | vLLM: Morrowmake vllm-cmp170hx image. 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 93.5-93.8 tok/s). tokSOut = (completion - 1) / time after first token.
Preuves capturées
- Empreinte du prompt (SHA-256)
- a737db738bd4…
Extrait du prompt · 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.
Extrait de sortie · 1,932 chars
```python
import sys
import json
import argparse
from datetime import datetime
from collections import defaultdict
import math
def parse_iso_datetime(dt_str):
# Handles common ISO formats; handles 'Z' suffix by replacing with +00:00
return datetime.fromisoformat(dt_str.replace('Z', '+00:00'))
def main():
parser = argparse.ArgumentParser(description="Tally log records by service and level.")
parser.add_argument("--since", help="ISO-8601 timestamp to filter records after.")
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: [] } }
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)
# Validation
ts_str = record.get("ts")
if not ts_str:
raise ValueError("Missing 'ts'")
current_dt = parse_iso_datetime(ts_str)
if since_dt and current_dt < since_dt:
continue
service = record.get("service", "unknown")
level = record.get("level", "UNKNOWN")
latency = record.get("latency_ms")
stats[service]["counts"][level] += 1
if latency is not None:
stats[service]["latencies"].append(float(latency))
except (json.JSONDecodeError, ValueError, TypeError):
malformed_count += 1
# Output results
for service, data in sorted(stats.items()):
print(f"Service: {service}")
for level in ["DEBUG", "