速度測試
Qwen3.6-35B-A3B-TinyKV-GPTQ-Int4
Intel Arc Pro B70 32GB · vllm · v0.32.0 XPU + B70 cookbook patches (b70.7 overlay) + v4 attention kernels with head-128 variants + TinyKV vLLM plugin · GPTQ-Int4
解碼
209tok/s
預填
3.1ktok/s
首個 token 延遲
76ms
總計
—
峰值 VRAM
—
上下文長度
256K
KV 深度
0
批次大小
1
並行數
1
功耗
—
驗證
已驗證執行啟動命令
gh release download v4 -p 'libattn_kernels_xe_2.tinykv.so' -D kernels; SO_FILE=kernels/libattn_kernels_xe_2.tinykv.so TINYKV_PLUGIN=<model>/plugin MODEL_DIR=<model> GPU_UTIL=0.82 ./serve.sh (cookbook serve.sh = vllm serve --quantization gptq --kv-cache-dtype fp8 --max-model-len 262144 --max-num-seqs 8 --speculative-config '{"method":"mtp","num_speculative_tokens":4,"draft_sample_method":"probabilistic"}' + fp8 lm_head, fp8 weight-only attention/GDN/shared expert, int4 MoE decode GEMV)Theoretical memory ceiling
1,037.0–1,041.3 tok/s
608 GB/s memory bandwidth (spec sheet) · 18.00 GB model weights · 8-bit KV cache · 1–239 tokens of context
Includes speculative decoding: 3.30 tokens accepted per model step on average (313.9–315.2 steps/s) · measured 63.2 steps/s
20–20%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from darioooooo0o/Qwen3.6-35B-A3B-TinyKV-GPTQ-Int4; size from GPTQ-Int4 estimate. Hardware source · Open calculator
模型
- GPU
- Intel Arc Pro B70
- 數量
- 1
- VRAM
- 32 GB
- OS
- Fedora 43 (kernel 7.1.8)
引擎
- 引擎
- vllm
- 版本
- 0.32.0 XPU + B70 cookbook patches (b70.7 overlay) + v4 attention kernels with head-128 variants + TinyKV vLLM plugin
- Repository
- https://github.com/riceharvest/b70…
- 量化
- GPTQ-Int4
- 後端
- xpu
- KV 快取
- fp8
- GPU mem util
- 0.82
- Max running seqs
- 8
- Spec decode
- 已啟用
- MTP
- 已啟用
執行設定
- 上下文
- 262,144 個 token
- 深度
- 0 個 token
- 批次大小
- 1
- 提示詞 token
- 239
- 預填 tok/s
- 3,128.7 tok/s
- 輸出 token
- 512
- 備註
- Single request, canonical prompt, greedy, 512 tokens. TinyKV = Qwen3.6-35B-A3B with a 2.5x smaller KV cache (full 262k context in 25 GB): https://huggingface.co/darioooooo0o/Qwen3.6-35B-A3B-TinyKV . Cookbook: https://github.com/riceharvest/b70-qwen38-cookbook
推測解碼
- 方法
- MTP
- 每步接受數
- 3.3 個 token
- 接受率
- 58%
- 草稿 token
- 620
- 已接受 token
- 357
已記錄的證據
- 提示詞雜湊(SHA-256)
- a737db738bd4…
提示詞樣本 · 826 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. [LocalMaxxing cache-bust nonce: 79f7ea2ff4fe42a380f9d6c5c207a7dd]
輸出樣本 · 1,960 chars
<think>
Here's a thinking process:
1. **Understand User Requirements:**
- **Tool Name:** `logtally`
- **Input:** Newline-delimited JSON log records from stdin
- **Record Fields:** `ts` (ISO-8601 string), `level` (DEBUG, INFO, WARN, ERROR), `service` (string), optional `latency_ms` (number)
- **Output:** Per service: count of records by level, p50 and p95 of `latency_ms` (ignore records without latency)
- **Error Handling:** Malformed lines counted and reported at the end, never crash
- **Flag:** `--since <ISO timestamp>` to drop earlier records
- **Constraint:** Use only Python standard library
- **Post-code:** Explain percentile computation method and why, list 3 edge cases for unit tests
2. **Deconstruct Requirements & Plan Implementation:**
- **Input Parsing:** Read from `sys.stdin`, process line by line.
- **JSON Parsing:** Use `json.loads()`. Handle `json.JSONDecodeError` for malformed lines.
- **Validation:** Check required fields (`ts`, `level`, `service`). Check `level` is one of the allowed values. Check `ts` is valid ISO-8601 (can use `datetime.fromisoformat()` in Python 3.7+).
- **Filtering:** `--since` flag. Parse the `--since` timestamp, compare with record's `ts`. Drop if earlier.
- **Data Structures:**
- `service_data = {}` mapping service -> `{"levels": {"DEBUG": 0, ...}, "latencies": []}`
- `malformed_count = 0`
- **Percentile Calculation:** Need to compute p50 and p95 for each service's latencies.
- Standard library doesn't have a built-in percentile function, but I can implement it easily.
- Method: Sort the list, use linear interpolation or nearest-rank. The prompt asks to explain the method. I'll use the "nearest rank" or "linear interpolation" method. Actually, Python's `statistics.quantiles` (3.8+) or `numpy` isn't allowed (only stdlib). I'll implement a simple linear interpolation method, which is standard and widely accepted.
</think>
