速度測試
Qwen4-35B-A3B-GGUF
Radeon AI Pro R9700 32GB · llama.cpp · b12992+pr33412+pr33695 · UD-Q3_K_XL
解碼
197tok/s
預填
786tok/s
首個 token 延遲
319ms
總計
220tok/s
峰值 VRAM
20.5GB
上下文長度
32K
KV 深度
0
批次大小
1
並行數
1
功耗
—
驗證
已驗證執行啟動命令
llama-server -m Qwen4-35B-A3B-UD-Q3_K_XL-00001-of-00002.gguf -np 1 -ngl 99 -fa on -c 32768 -ctk q8_0 -ctv q8_0 --load-mode mmap --lazy-mode auto -ot per_layer_token_embd=CPU --fit off --jinja --reasoning off -b 2048 -ub 512 -t 4 -tb 12 --cache-ram 0 --no-context-shift -md dflash2-Qwen4-35B-A3B-Q8_0.gguf -ngld 99 --spec-type draft-dflash2 --spec-draft-n-max 5 --spec-draft-p-min 0 -ctkd q8_0 -ctvd q8_0
Theoretical memory ceiling
1,759.4–1,772.7 tok/s
640 GB/s memory bandwidth (spec sheet) · 19.36 GB model weights · 8.5-bit KV cache · 1–251 tokens of context
Includes speculative decoding: 4.41 tokens accepted per model step on average (399.3–402.3 steps/s) · measured 44.7 steps/s
11–11%
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-Q3_K_XL/Qwen4-35B-A3B-UD-Q3_K_XL-00001-of-00002.gguf. Hardware source · Open calculator
模型
- GPU
- Radeon AI Pro R9700
- 數量
- 1
- VRAM
- 32 GB
- OS
- Linux Mint 22.3
引擎
- 引擎
- llama.cpp
- 版本
- b12992+pr33412+pr33695
- Repository
- https://github.com/ggml-org/llama.…
- Build
- llama.cpp-b12992-vulkan-pr33412-33683-33695-33702-33701-mesa26.3.1
- Commit
- a274a3948fa5
- 量化
- UD-Q3_K_XL
- 後端
- vulkan
- GPU 層
- 99
- KV 快取
- q8_0
- Prefill chunk
- 512
- Flash Attn
- 是
- Spec decode
- 已啟用
執行設定
- 上下文
- 32,768 個 token
- 深度
- 0 個 token
- 批次大小
- 1
- 提示詞 token
- 251
- 預填 tok/s
- 785.7 tok/s
- 輸出 token
- 1536
- 修訂版本
- 93903a4ac761af2b3f55e5f42e42a5264031f542
- 提交工具
- lmx v0.1.69 speed-test submit
- 備註
- Measured 2026-12-04 on AMD Radeon AI PRO R9700 32 GB (Mesa 26.3.1 RADV, Linux 7.0.0-44). Patched llama.cpp b12992 Vulkan (PRs #33412 epilogue codegen, #33683 RDNA4 FA, #33695 Qwen4 DFlash2, #33702 MTP batch, #33701 tool choice), Mesa 26.3.1 RADV, Q8_0 target+draft KV, lazy IQ4_NL Engram on NVMe, DFlash2 Q8_0 depth 5, reasoning=off. Canonical code-v1, batchSize=1, temp=0. Peak VRAM 20.46 GB (19.06 GiB). Zero swap, zero kernel GPU faults.
推測解碼
- 方法
- DFlash2
- 每步接受數
- 4.41 個 token
- 接受率
- 68%
- 草稿 token
- 1,741
- 已接受 token
- 1,186
已記錄的證據
- 提示詞雜湊(SHA-256)
- a737db738bd4…
提示詞樣本 · 826 chars
[LocalMaxxing cache-bust nonce: c7d8745511982beefa8d42027a365ab5] 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.
輸出樣本 · 3,903 chars
# `logtally` — Structured Log Aggregator
```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 helper (nearest-rank method) #
# ------------------------------------------------------------------ #
def percentile(sorted_data: list[float], p: float) -> float:
"""Return the *p*-th percentile (0-100) using the nearest-rank method."""
if not sorted_data:
return 0.0
rank = math.ceil(p / 100.0 * len(sorted_data))
rank = max(1, min(rank, len(sorted_data)))
return sorted_data[rank - 1]
# ------------------------------------------------------------------ #
# Record validation #
# ------------------------------------------------------------------ #
VALID_LEVELS = frozenset({"DEBUG", "INFO", "WARN", "ERROR"})
def parse_record(line: str) -> dict | None:
"""Return a validated record dict, or *None* if the line is malformed."""
try:
obj = json.loads(line)
except (json.JSONDecodeError, ValueError):
return None
if not isinstance(obj, dict):
return None
# -- required fields --------------------------------------------
ts_raw = obj.get("ts")
level = obj.get("level")
service = obj.get("service")
if not isinstance(ts_raw, str) or not isinstance(level, str) or not isinstance(service, str):
return None
if level not in VALID_LEVELS:
return None
try:
ts = datetime.fromisoformat(ts_raw)
except (ValueError, TypeError):
return None
# -- optional latency_ms ----------------------------------------
latency_ms = obj.get("latency_ms")
if latency_ms is not Non
…
urn None
if not math.isfinite(latency_ms):
return None
return {
"ts": ts,
"level": level,
"service": service,
"latency_ms": float(latency_ms) if latency_ms is not None else None,
}
# ------------------------------------------------------------------ #
# Aggregation #
# ------------------------------------------------------------------ #
class ServiceStats:
__slots__ = ("level_counts", "latencies")
def __init__(self) -> None:
self.level_counts: dict[str, int] = defaultdict(int)
self.latencies: list[float] = []
def add(self, record: dict) -> None:
self.level_counts[record["level"]] += 1
if record["latency_ms"] is not None:
self.latencies.append(record["latency_ms"])
def sorted_latencies(self) -> list[float]:
return sorted(self.latencies)
def aggre
…
ine)
if record is None:
malformed += 1
continue
# Apply --since filter (make record ts comparable).
if since_dt is not None:
rec_ts = record["ts"]
if rec_ts.tzinfo is None:
rec_ts = rec_ts.replace(tzinfo=timezone.utc)
if rec_ts < since_dt:
continue
stats[record["service"]].add(record)
report(stats, malformed)
if __name__ == "__main__":
main()
```
---
## How Percentiles Are Computed
I use the **nearest-rank method**: the rank is `⌈p/100 × N⌉` (clamped to `[1, N]`), and the value at that 1-indexed position in the sorted array is returned. This is the simplest deterministic definition of a percentile—no interpolation, no assumptions about distribution shape—and it matches what most operational dashboards (e.g., basic Prometheus histogram queries) report, making it a natural fit for a log-analysis CLI.
---
## Three Edge Cases a Unit Test Suite Should此模型在此硬體上的更多執行
- 145tok/sllama.cpp · b12992+pr33412+pr33695 · UD-Q3_K_XL上下文 32K · 深度 0 · 批次 1已驗證執行jr95 · 2026年12月4日
- 130tok/sllama.cpp · b12992+pr33412+pr33695 · UD-Q3_K_XL上下文 32K · 深度 0 · 批次 1已驗證執行jr95 · 2026年12月4日
- 121tok/sllama.cpp · b12992+pr33412+pr33702 · UD-Q3_K_XL上下文 32K · 深度 0 · 批次 1已驗證執行jr95 · 2026年12月4日
- 95.6tok/sllama.cpp · b12969-74e7f44650e264c311e777cd894e24f9847dc050 · UD-IQ4_XS上下文 16K · 深度 0 · 批次 1已驗證執行cheezz · 2026年12月4日
