속도 테스트
gemma-4-31B-it
RTX 5090 32GB · ninfer · Q6
디코드
216tok/s
프리필
2.0ktok/s
첫 토큰까지의 시간
115ms
합계
299tok/s
최대 VRAM
26.6GB
컨텍스트 길이
32K
KV 깊이
0
배치 크기
1
동시성
1
소비 전력
464W
검증
검증된 실행실행 명령
taskset -c 8-23 ./build/apps/ninfer-serve models/gemma4_31b_it_m1.ninfer --model-id gemma4-31b --port 18080 --max-concurrency 1 --max-context 32768 --kv-capacity 32768 --kv-dtype bf16 --spec mtp --draft-tokens 7
Theoretical memory ceiling
351.5–367.8 tok/s
1,792 GB/s memory bandwidth (spec sheet) · 26.81 GB model weights · 16-bit KV cache · 1–231 tokens of context
Includes speculative decoding: 5.50 tokens accepted per model step on average (63.9–66.8 steps/s) · measured 39.2 steps/s
59–61%
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-31B-it; size from Q6 estimate. Hardware source · Open calculator
모델
- GPU
- RTX 5090
- 개수
- 1
- VRAM
- 32 GB
- OS
- Ubuntu 26.10
엔진
- 엔진
- ninfer
- Repository
- https://github.com/giveen/ninfer-e…
- Build
- CUDA 13.3, sm_120a, Release, driver 615.71.09
- Commit
- 7d08406d19174245c8205bf216432cd10ecad60b
- 양자화
- Q6
- 백엔드
- cuda
- KV 캐시
- bf16
- 프리픽스 캐싱
- 예
- 청크 프리필
- 예
- 프리필 청크
- 1024
- Spec decode
- 활성화됨
- MTP
- 활성화됨
실행 설정
- 컨텍스트
- 32,768 토큰
- 깊이
- 0 토큰
- 배치 크기
- 1
- 프롬프트 토큰
- 231
- 프리필 tok/s
- 2,017.4 tok/s
- 소비 전력
- 464 W
- 출력 토큰
- 512
- 메모
- Single RTX 5090, single card. NInfer gemma4_31b_m1 recipe from the BF16 checkpoint: attention and LM head Q6 g64, MLP Q6/Q5 g64 (sensitivity-chosen layout), BF16 embedding host-pinned, Q6 assistant drafter; BF16 KV. Gemma 4's assistant drafter via --spec mtp, adaptive draft length up to 7 (the drafter's maximum), full head; greedy output is exact. One request, 512 output tokens (no thinking block). This run is the median of 5 timed runs after 1 warmup (fresh cache-bust nonce per request); the 5 runs gave 157.8-176.4 tok/s on reasoning-v1 and 205.2-220.8 on code-v1. Same-session A/B (medians, reasoning / code): no speculation 56.8 / 55.4; MTP up to 3 126.6 / 145.6; up to 5 159.1 / 188.2. tokSOut/tokSPrefill from the server's llama.cpp-style timings, TTFT client-side.
추측 디코딩
- 방식
- MTP
- 단계당 수락 수
- 5.51 토큰
- 수락률
- 64%
- 초안 토큰
- 649
- 수락된 토큰
- 418
기록된 증거
- 프롬프트 해시 (SHA-256)
- a737db738bd4…
프롬프트 샘플 · 810 chars
[LocalMaxxing cache-bust nonce: e7586d05867f3f8b] 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.
출력 샘플 · 1,786 chars
```python
import sys
import json
import argparse
from datetime import datetime
from collections import defaultdict
def parse_iso(ts_str):
# Handles basic ISO-8601 formats (YYYY-MM-DDTHH:MM:SS...)
return datetime.fromisoformat(ts_str.replace('Z', '+00:00'))
def main():
parser = argparse.ArgumentParser(description="Tally log records from stdin.")
parser.add_argument("--since", help="ISO-8601 timestamp to filter records")
args = parser.parse_args()
since_dt = parse_iso(args.since) if args.since else None
# Data structure: { service_name: { "levels": { LEVEL: count }, "latencies": [] } }
stats = defaultdict(lambda: {"levels": defaultdict(int), "latencies": []})
malformed_count = 0
for line in sys.stdin:
line = line.strip()
if not line:
continue
try:
record = json.loads(line)
# Filter by timestamp
ts_dt = parse_iso(record['ts'])
if since_dt and ts_dt < since_dt:
continue
service = record['service']
level = record['level']
stats[service]["levels"][level] += 1
if 'latency_ms' in record and record['latency_ms'] is not None:
stats[service]["latencies"].append(float(record['latency_ms']))
except (json.JSONDecodeError, KeyError, ValueError, TypeError):
malformed_count += 1
# Print results
print(f"{'Service':<20} {'Level':<10} {'Count':<10} {'p50':<10} {'p95':<10}")
print("-" * 60)
for service, data in sorted(stats.items()):
lats = sorted(data["latencies"])
p50 = p95 = "N/A"
if lats:
# Nearest rank method
p50 =이 하드웨어에서 이 모델의 다른 실행
- 170tok/sninfer · Q6컨텍스트 32K · 깊이 0 · 배치 1검증된 실행jabbatheduck · 2026. 10. 19.
- 68.5tok/sllama.cpp · b741 (1fd6dfe) · UD-Q4_K_XL-QAT컨텍스트 8K · 깊이 0 · 배치 1Skiipy · 2026. 6. 14.
- 46.5tok/sllama.cpp · b741 (1fd6dfe) · UD-Q6_K_XL컨텍스트 8K · 깊이 0 · 배치 1Skiipy · 2026. 6. 14.
- 38.0tok/sllama.cpp · Q8_0컨텍스트 2K · 깊이 0 · 배치 1sergoabe · 2026. 6. 27.
