速度測試
Qwen3.8-27B-QUASAR-NVFP4
RTX 5090 32GB · ninfer · NVFP4
解碼
349tok/s
預填
3.5ktok/s
首個 token 延遲
66ms
總計
483tok/s
峰值 VRAM
23.1GB
上下文長度
32K
KV 深度
0
批次大小
1
並行數
1
功耗
399W
驗證
已驗證執行啟動命令
taskset -c 8-23 ./build/apps/ninfer-serve models/qwen3_8_27b_quasar_nvfp4.ninfer --model-id qwen3.8-27b --port 18080 --max-concurrency 1 --max-context 32768 --kv-capacity 32768 --spec dflash2 --draft-tokens 9 --lm-head-draft
Theoretical memory ceiling
537.8–540.2 tok/s
1,792 GB/s memory bandwidth (spec sheet) · 14.00 GB model weights · 16-bit KV cache · 1–227 tokens of context
Includes speculative decoding: 4.66 tokens accepted per model step on average (115.5–116.0 steps/s) · measured 74.9 steps/s
65–65%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from QUASAR-QAT/Qwen3.8-27B-QUASAR-NVFP4; size from NVFP4 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
- 量化
- NVFP4
- 後端
- cuda
- KV 快取
- bf16
- Prefix caching
- 是
- Chunked prefill
- 是
- Prefill chunk
- 1024
- Spec decode
- 已啟用
執行設定
- 上下文
- 32,768 個 token
- 深度
- 0 個 token
- 批次大小
- 1
- 提示詞 token
- 227
- 預填 tok/s
- 3,533.1 tok/s
- 功耗
- 399 W
- 輸出 token
- 512
- 備註
- Single RTX 5090, single card (no tensor parallel). QUASAR-QAT NVFP4 checkpoint converted to .ninfer: all 400 text linears imported as stored NVFP4 (W4A4 permitted), GDN a/b decoded to BF16, embedding and LM head FP8 row-scaled from BF16; BF16 KV. z-lab/Qwen3.8-27B-DFlash2 drafter (Q8), K=9 per round, with NInfer's reduced-vocabulary proposal head (--lm-head-draft); the target verifies with the full head, greedy output is exact. One request, 512 output tokens incl. reasoning (thinking on). This run is the median of 5 timed runs after 1 warmup (fresh cache-bust nonce per request); the 5 runs gave 485.3-561.5 tok/s on reasoning-v1 and 327.8-355.3 on code-v1. Same session, K=7: median 458.9 / 330.6. Same card with the official NVFP4 weights + DFlash2 K=9: median 334.4 / 211.8. Quick-corpus PPL (fp8 KV, 4096 ctx): 4.375 vs 4.321 for the official NVFP4 artifact. Engine binary at the listed commit; the artifact was converted with a local fix to that commit's converter (Qwen DFlash2 draft MLP packing / mask row).
推測解碼
- 方法
- DFlash2
- 每步接受數
- 4.66 個 token
- 接受率
- 41%
- 草稿 token
- 978
- 已接受 token
- 401
已記錄的證據
- 提示詞雜湊(SHA-256)
- a737db738bd4…
提示詞樣本 · 810 chars
[LocalMaxxing cache-bust nonce: 49d31912f5899a6f] 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,000 chars
The user wants me to implement a Python CLI tool called `logtally` that:
1. Reads NDJSON from stdin
2. Each record has: `ts` (ISO-8601), `level` (DEBUG/INFO/WARN/ERROR), `service` (string), optional `latency_ms` (number)
3. Prints per service: count by level, p50 and p95 of latency_ms (ignoring records without latency)
4. Malformed lines counted and reported at end, never crash
5. `--since <ISO timestamp>` flag to filter earlier records
6. Standard library only
Then explain percentile computation in 2-3 sentences, and list 3 edge cases for unit tests.
Let me think about the design:
- Use `argparse` for CLI args
- Read stdin line by line
- Parse JSON, validate fields
- Group by service
- For percentiles: I'll use the "nearest-rank" method or linear interpolation. Let me think about which is most standard. The "nearest rank" method is simple: sort the values, p-th percentile is the value at index ceil(p/100 * n). Alternatively, linear interpolation (like numpy's default) is more common. Since we're using stdlib only, I'll implement linear interpolation manually.
Actually, let me think about percentile methods:
- Nearest rank: sort values, index = ceil(p/100 * n), take that value (1-indexed)
- Linear interpolation: sort values, compute virtual index = (p/100) * (n-1), interpolate between floor and ceil
I'll go with linear interpolation as it's more standard and what most people expect.
For the `--since` flag: parse the ISO timestamp, compare with each record's `ts`. Records with `ts < since` are dropped.
Malformed lines: any line that fails JSON parsing, or missing required fields, or invalid level, or unparseable timestamp. Count them and report at end.
Let me write the code:
```python
#!/usr/bin/env python3
"""logtally – per-service log tally from NDJSON on stdin."""
import argparse
import json
import sys
from collections import defaultdict
from datetime import datetime
VALID_LEVELS = {"DEBUG", "INFO", "WARN", "ERROR"}
def parse_iso(ts: str) -> datetime:此模型在此硬體上的更多執行
- 688tok/scustom · v0.8.1 + g2gfast patches · NVFP4上下文 128K · 深度 0 · 批次 1已驗證執行Papa-midnight-dev · 2026年11月28日
- 664tok/scustom · v0.8.1 + kit4b patches · NVFP4上下文 128K · 深度 0 · 批次 1已驗證執行Papa-midnight-dev · 2026年11月26日
- 511tok/sninfer · NVFP4上下文 32K · 深度 0 · 批次 1已驗證執行jabbatheduck · 2026年10月19日
- 466tok/scustom · v0.8.1 + g2gfast patches · NVFP4上下文 128K · 深度 0 · 批次 1已驗證執行Papa-midnight-dev · 2026年11月28日
- 453tok/scustom · v0.8.1 + kit4b patches · NVFP4上下文 128K · 深度 0 · 批次 1已驗證執行Papa-midnight-dev · 2026年11月26日
