速度測試
Qwen4-35B-A3B-GGUF
RTX PRO 6000 Blackwell Workstation Edition 96GB · llama.cpp · UD-Q8_K_XL
解碼
149tok/s
預填
2.3ktok/s
首個 token 延遲
109ms
總計
215tok/s
峰值 VRAM
63.5GB
上下文長度
256K
KV 深度
0
批次大小
1
並行數
1
功耗
246W
驗證
已驗證執行啟動命令
/mnt/nvme8tb/llama-build/llama.cpp-qwen4/build/bin/llama-server --host 127.0.0.1 --port ${PORT} -ngl 999 --flash-attn on --jinja --threads 8 -m /mnt/nvme8tb/llama-models/Qwen4-35B-A3B-GGUF/UD-Q8_K_XL/Qwen4-35B-A3B-UD-Q8_K_XL-00001-of-00002.gguf --ctx-size 262144 --parallel 8 --kv-unified --batch-size 2048 --ubatch-size 512 --spec-type draft-mtp --spec-draft-n-max 2 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0.0Theoretical memory ceiling
1,577.9–1,585.1 tok/s
1,792 GB/s memory bandwidth (spec sheet) · 40.53 GB model weights · 16-bit KV cache · 1–251 tokens of context
Includes speculative decoding: 2.13 tokens accepted per model step on average (740.3–743.6 steps/s) · measured 69.7 steps/s
9–9%
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-Q8_K_XL/Qwen4-35B-A3B-UD-Q8_K_XL-00001-of-00002.gguf. Hardware source · Open calculator
模型
- GPU
- RTX PRO 6000 Blackwell Workstation Edition
- 數量
- 1
- VRAM
- 96 GB
- OS
- linux
引擎
- 引擎
- llama.cpp
- 量化
- UD-Q8_K_XL
- 後端
- cuda
- GPU 層
- 999
- Prefill chunk
- 512
- Flash Attn
- 是
- Spec decode
- 已啟用
- MTP
- 已啟用
執行設定
- 上下文
- 262,144 個 token
- 深度
- 0 個 token
- 批次大小
- 1
- 提示詞 token
- 251
- 預填 tok/s
- 2,299.2 tok/s
- 功耗
- 246 W
- 輸出 token
- 512
- 備註
- blackwall 2.6.0, run 20261204-085952-qwen4-35b-a3b-think-gguf: canonical prompt, single request, greedy, the server's default reasoning effort.
推測解碼
- 方法
- MTP
- 每步接受數
- 2.13 個 token
- 接受率
- 57%
- 草稿 token
- 479
- 已接受 token
- 271
已記錄的證據
- 提示詞雜湊(SHA-256)
- a737db738bd4…
提示詞樣本 · 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.
輸出樣本 · 2,159 chars
The user wants a CLI tool. Let me write clean, well-structured code using only stdlib.
Key design decisions:
- Read stdin line by line, parse JSON, validate schema.
- Track counts per (service, level), collect latency samples per service.
- Percentiles: I'll implement a nearest-rank / linear interpolation method. Let me pick "linear interpolation between closest ranks" (the same as numpy's default, R-7) — but for streaming, storing all latencies could be memory heavy. I should mention that. Options: reservoir sampling or exact storage. For a small tool, exact storage is fine but I should note memory. Actually let me be honest about the tradeoff and store exact samples, with a note. Or implement a bounded approach.
Hmm, the requirement says "never crash the program" for malformed lines. Let me be careful about robustness:
- JSON decode errors
- non-dict records
- missing/invalid fields
- invalid level
- latency_ms that's a bool (bool is subclass of int in Python — should reject), NaN/inf, negative
- ts parse failures
- --since parse failure → should error out clearly (exit code 2) rather than crash with traceback
- Broken pipe handling (e.g., `| head`) — worth handling
- Unicode errors on stdin
Percentile method: I'll use linear interpolation (R-7 / numpy default) on sorted samples. Explain why: standard, matches numpy/pandas so results are comparable, and for p95 with small n it degrades gracefully. Also mention nearest-rank alternative.
Edge cases for tests: three of them.
Let me write the code.
```python
#!/usr/bin/env python3
"""logtally - aggregate newline-delimited JSON log records from stdin."""
from __future__ import annotations
import argparse
import json
import math
import sys
from collections import defaultdict
from dataclasses import dataclass, field
from datetime import datetime, timezone
from typing import Any, Iterable, Iterator
LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")
```
Parsing timestamps: ISO-8601. Python 3.11+ `datetime.fromisoformat` handles 'Z'. For older versions, need to replace 'Z' with '+00:00'. I'll write a helper that handles both, and normalizes naive timestamps to UTC (assume UTC)此模型在此硬體上的更多執行
- 165tok/sllama.cpp · UD-Q8_K_XL上下文 256K · 深度 0 · 批次 1已驗證執行guitaripod · 2026年12月4日
- 153tok/sllama.cpp · UD-Q8_K_XL上下文 256K · 深度 0 · 批次 1已驗證執行guitaripod · 2026年12月4日
- 143tok/sllama.cpp · UD-Q8_K_XL上下文 256K · 深度 0 · 批次 1已驗證執行guitaripod · 2026年12月5日
- 136tok/sllama.cpp · UD-Q8_K_XL上下文 256K · 深度 0 · 批次 1已驗證執行guitaripod · 2026年12月4日
- 129tok/sllama.cpp · UD-Q8_K_XL上下文 256K · 深度 0 · 批次 1已驗證執行guitaripod · 2026年12月5日
