速度測試模型基準評測租用報告硬體解碼計算器組織ProAPI文件提交
語言
Actual Computer — Every computer, one endpoint

速度測試

Qwen3.8-Flash-Next

RTX 5090 32GB · ninfer · NVFP4

jabbatheduck已驗證2026年10月19日已驗證執行

解碼

114tok/s

預填

187tok/s

首個 token 延遲

1,189ms

總計

123tok/s

峰值 VRAM

30.3GB

上下文長度

256K

KV 深度

0

批次大小

1

並行數

1

功耗

256W

驗證

已驗證執行

啟動命令

taskset -c 8-23 ./build/apps/ninfer-serve models/Qwen3.8-Flash-NVFP4/qwen3_8_flash_next_nvfp4.ninfer --model-id qwen3.8-flash-next --max-concurrency 2 --max-context 262144 --kv-capacity 262144 --kv-dtype fp8 --expert-cache auto --host-experts 16 --host-expert-share 0.5 --spec mtp --draft-tokens 3

Theoretical memory ceiling

The model doesn't appear to fit in this hardware's recorded memory.

模型

GPU
RTX 5090
數量
1
VRAM
32 GB
OS
Ubuntu 26.10

引擎

引擎
ninfer
Build
CUDA 13.3, sm_120a, Release, driver 615.71.09
Commit
7d08406d19174245c8205bf216432cd10ecad60b
量化
NVFP4
後端
cuda
KV 快取
fp8
Prefix caching
是
Chunked prefill
是
Prefill chunk
4096
Spec decode
已啟用
MTP
已啟用

執行設定

上下文
262,144 個 token
深度
0 個 token
批次大小
1
提示詞 token
222
預填 tok/s
187.2 tok/s
功耗
256 W
輸出 token
1024
備註
Single RTX 5090 (32 GB) running the full Qwen3.8-Flash-Next: routed experts (NVFP4) live in pinned host RAM behind a device expert cache; a share of each decode step's cache misses is computed on 14 E-core threads (AVX-VNNI) instead of fetched over PCIe. Converted from nvidia/Qwen3.8-Flash-Next-NVFP4 with the NInfer qwen3_8_flash_next_nvfp4 recipe: imported NVFP4 routed experts, FP8 n-gram table, Q8 projections, Q8/Q6 vocabulary weights; FP8 KV. Greedy, MTP K=3, one request (server allows 2), 1024 output tokens incl. reasoning. tokSOut/tokSPrefill/TTFT from the server's llama.cpp-style timings (TTFT client-side). Short ~250-token prompts prefill slowly here because a cold prompt streams experts over PCIe.

推測解碼

方法
MTP
每步接受數
3.29 個 token
接受率
76%
草稿 token
933
已接受 token
711

已記錄的證據

提示詞雜湊(SHA-256)
a737db738bd4…
提示詞樣本 · 810 chars
[LocalMaxxing cache-bust nonce: e9aafa2341db1cd2]
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,395 chars
The user wants me to implement a Python command-line tool called `logtally` that:

1. Reads newline-delimited JSON 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. Support `--since <ISO timestamp>` flag to drop earlier records
6. Standard library only

Then explain percentile computation method and list three edge cases for unit tests.

Let me design this carefully:

- Use `argparse` for `--since` flag
- Use `json` for parsing
- Use `datetime` for ISO-8601 parsing
- For percentiles: I'll use the "nearest-rank" method (also called the "inclusive" method). Sort the latencies, then for p50, index = ceil(0.50 * n) - 1, for p95, index = ceil(0.95 * n) - 1. This is simple, deterministic, and doesn't require interpolation. Actually, let me think about this more carefully.

The nearest-rank method: for percentile p with n sorted values, the rank is ceil(p/100 * n), and you take the value at that rank (1-indexed). So for p50 with 10 values, rank = ceil(5) = 5, take 5th value. For p95 with 10 values, rank = ceil(9.5) = 10, take 10th value.

Alternative: linear interpolation method (like numpy's default). But since we're stdlib only, nearest-rank is simpler and more predictable.

Actually, let me use the "exclusive" method or the standard nearest-rank. I'll go with nearest-rank: index = ceil(p * n) - 1 (0-indexed). For p=0.5, n=10: ceil(5)-1 = 4 (5th element). For p=0.95, n=10: ceil(9.5)-1 = 9 (10th element).

Wait, let me reconsider. The standard nearest-rank: rank = ceil(p/100 * n). For p=50, n=10: ceil(5) = 5. For p=95, n=10: ceil(9.5) = 10. Then take the value at that rank (1-indexed).

I'll implement it as: sorted_latencies[ceil(p * n) - 1] where p is 0.5 or 0.95.

Edge cases to handle:
- Empty latency list (no records with latency for a service)
- Single record
- All malformed lines
- Records with missing fields
- `--since` filtering

Let me write clean, well-structured code.

For the output format, I'll print something like:
```
service: auth-service
  DEBUG: 10
  INFO: 50
  WARN: 3
  ERROR: 1
  latency_ms p50: 42.5
  latency_ms p95: 120.0
```

Let me write the code now.


```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


LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")


def parse_args(argv=None):
    parser = argparse.ArgumentParser(
        prog="logtally",
        description="Tally log records by service, level, and latency percentiles.",
    )
    parser.add_argument(
        "--since",
        metavar="ISO_TIMESTAMP",
        help="Drop records whose ts is earlier than this ISO-8601 timestamp.",
    )
    return parser.parse_args(argv)


def parse_iso(ts_str):
    """Parse an ISO-8601 string into a timezone-aware datetime (UTC assumed if naive)."""
    dt = datetime.fromisoformat(ts_str)
    if dt.tzinfo is None:
        dt = dt.replace(tzinfo=timezone.utc)
    return dt


def percentile(sorted_values, p):
    """Nearest-rank percentile on a pre-sorted list.

    rank = ceil(p * n), 1-indexed.  Returns None for

此模型在此硬體上的更多執行