속도 테스트
Qwen4-35B-A3B-GGUF
RTX 3090 24GB · llama.cpp · b12681 + local patches (pi2 v7g) · UD-IQ4_XS
디코드
202tok/s
프리필
1.7ktok/s
첫 토큰까지의 시간
138ms
합계
—
최대 VRAM
22.6GB
컨텍스트 길이
192K
KV 깊이
0
배치 크기
1
동시성
1
소비 전력
—
검증
검증된 실행실행 명령
llama-server --host 127.0.0.1 --port 8014 --n-gpu-layers all --fit off --no-context-shift --flash-attn on --batch-size 512 --threads 8 --threads-batch 8 --parallel 1 --cache-ram 0 --jinja --reasoning on --model Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf --ctx-size 196608 --cache-type-k q8_0 --cache-type-v q8_0 --ubatch-size 512 --ctx-checkpoints 8 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0.0 --repeat-penalty 1.0 --lazy-mode on --spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-n-ubatch 16 --spec-draft-type-k q8_0 --spec-draft-type-v q8_0
Theoretical memory ceiling
1,622.2–1,629.9 tok/s
936.2 GB/s memory bandwidth (spec sheet) · 20.52 GB model weights · 8.5-bit KV cache · 1–250 tokens of context
Includes speculative decoding: 2.43 tokens accepted per model step on average (668.0–671.1 steps/s) · measured 83.2 steps/s
12–12%
of the ceiling reached
High confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from Qwen/Qwen4-35B-A3B; size from unsloth/Qwen4-35B-A3B-GGUF/UD-IQ4_XS/Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf. Hardware source · Open calculator
모델
- GPU
- RTX 3090
- 개수
- 1
- VRAM
- 24 GB
- OS
- Ubuntu 26.04
엔진
- 엔진
- llama.cpp
- 버전
- b12681 + local patches (pi2 v7g)
- Commit
- a13c9baa4
- 양자화
- UD-IQ4_XS
- 백엔드
- cuda
- GPU 레이어
- 99
- KV 캐시
- q8_0
- 프리필 청크
- 512
- Flash Attn
- 예
- Spec decode
- 활성화됨
- MTP
- 활성화됨
실행 설정
- 컨텍스트
- 196,608 토큰
- 깊이
- 0 토큰
- 배치 크기
- 1
- 프롬프트 토큰
- 250
- 프리필 tok/s
- 1,719.3 tok/s
- 출력 토큰
- 512
- 리비전
- 85a51187d937d87d799be9a10fa30732ee31432c
- 메모
- Patched llama.cpp (local pi2 v7g branch: llama.cpp with Qwen4 PR #33626 cherry-picked, plus local CUDA patches: QSA gather attention for decode, raw q8_0 K/V in the int8 prefill FlashAttention kernel, qwen4exp decode kernel fusions, MoE mat-vec warp rows on sm_86). Not upstream master. 192K context loaded (196608), q8_0 KV, built-in MTP head with 2 draft tokens; n-gram drafting off for this test (it learns from earlier identical outputs, which would inflate repeated greedy runs). Engram table (shard 2) mmapped in host RAM via --lazy-mode on. Greedy, thinking off (chat_template_kwargs enable_thinking=false), 512 output tokens. Median of 3 runs after one warm-up; each request has a fresh cache-bust nonce (cache_n = 0). Peak VRAM is the llama-server process (nvidia-smi) at 192K context. RTX 3090 at its stock 350 W limit.
추측 디코딩
- 방식
- MTP
- 단계당 수락 수
- 2.43 토큰
- 수락률
- 71%
- 초안 토큰
- 420
- 수락된 토큰
- 300
기록된 증거
- 프롬프트 해시 (SHA-256)
- a737db738bd4…
프롬프트 샘플 · 826 chars
[LocalMaxxing cache-bust nonce: 9763a897bed846548aed6b957b08dee8] 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.
출력 샘플 · 2,262 chars
```python
#!/usr/bin/env python3
"""logtally – aggregate newline-delimited JSON log records from stdin."""
import argparse
import json
import math
import sys
from collections import defaultdict
from datetime import datetime, timezone
# ---------------------------------------------------------------------------
# Percentile helpers
# ---------------------------------------------------------------------------
def percentile(sorted_data: list[float], p: float) -> float | None:
"""Return the *p*-th percentile (0-100) using linear interpolation.
This is the "inclusive" method (equivalent to numpy's default /
R type-7): the rank is (n-1)*p/100, and we interpolate between the
two surrounding values.
"""
if not sorted_data:
return None
n = len(sorted_data)
if n == 1:
return sorted_data[0]
rank = (n - 1) * (p / 100.0)
lo = int(math.floor(rank))
hi = int(math.ceil(rank))
frac = rank - lo
return sorted_data[lo] + frac * (sorted_data[hi] - sorted_data[lo])
# ---------------------------------------------------------------------------
# Record validation
# ---------------------------------------------------------------------------
VALID_LEVELS = {"DEBUG", "INFO", "WARN", "ERROR"}
def parse_record(raw: str) -> dict | None:
"""Try to parse *raw* into a valid log record. Return None on failure."""
try:
obj = json.loads(raw)
except (json.JSONDecodeError, ValueError):
return None
if not isinstance(obj, dict):
return None
# -- ts ------------------------------------------------------------------
ts_str = obj.get("ts")
if not isinstance(ts_str, str):
return None
try:
ts = datetime.fromisoformat(ts_str)
except (ValueError, TypeError):
return None
# normalise to aware UTC so comparisons always work
if ts.tzinfo is None:
ts = ts.replace(tzinfo=timezone.utc)
# -- level ---------------------------------------------------------------
level = obj.get("level")
if not isinstance(level, str) or level not in VALID_LEVELS:
return None
# -- service -------------------------------------------------------------
service = obj.get("service")
if not