Kiểm tra tốc độMô hìnhĐánh giá chuẩnCho thuêBáo cáoPhần cứngMáy tính decodeTổ chứcProTài liệu APIGửi
Ngôn ngữ
Actual Computer — Every computer, one endpoint

Kiểm tra tốc độ

Qwen4-35B-A3B

RTX 3090 24GB ×6 · vllm · vllm-qwen4 · BF16

jareddotinfoĐã xác minh5 thg 12, 2026Lượt chạy đã xác minh

Decode

193tok/s

Prefill

2.3ktok/s

Thời gian đến token đầu tiên

107ms

Tổng

236tok/s

VRAM đỉnh

119,3GB

Độ dài ngữ cảnh

1024K

Độ sâu KV

0

Kích thước batch

1

Đồng thời

1

Công suất tiêu thụ

1.083W

Xác minh

Lượt chạy đã xác minh

Lệnh khởi chạy

vllm serve Qwen/Qwen4-35B-A3B --trust-remote-code --dtype bfloat16 -tp 2 -pp 3 --max-model-len 1048576 --gpu-memory-utilization 0.94 --enable-prefix-caching --kv-cache-dtype auto --engram-config.cpu_offload true --disable-custom-all-reduce --speculative-config '{"method":"mtp","num_speculative_tokens":1,"index_share_for_mtp_iteration":true,"draft_lm_head_quantization":"nvfp4"}'

Theoretical memory ceiling

548.1–548.9 tok/s

1,872.4 GB/s memory bandwidth (spec sheet) · 114.00 GB model weights · 16-bit KV cache · 1–251 tokens of context

Includes speculative decoding: 1.83 tokens accepted per model step on average (299.7–300.2 steps/s) · measured 105.5 steps/s

35–35%

of the ceiling reached

Medium confidence

The fastest this hardware's memory could serve a single request; real runs are slower. Model details from Qwen/Qwen4-35B-A3B; size from BF16 estimate. Hardware source · Open calculator

Phần cứng

GPU
RTX 3090
Số lượng
6
VRAM
24 GB
OS
Ubuntu 26.04.1 LTS

Engine

Engine
vllm
Phiên bản
vllm-qwen4
Build
vllm-qwen4-6x3090-bf16-tp2pp3-nvlink4-mtp1-v2
Quant
BF16
Backend
cuda
TP
2
KV cache
bfloat16
GPU mem util
0.94
Prefix caching
có
Spec decode
bật
MTP
bật

Cấu hình chạy

Context
1.048.576 tokens
Độ sâu
0 tokens
Kích thước batch
1
Prompt tokens
251
Prefill tok/s
2,328.6 tok/s
Công suất tiêu thụ
1,083 W (170 + 176 + 168 + 173 + 197 + 199 W)
Output tokens
1024
Gửi bằng
lmx v0.1.68 speed-test submit
Ghi chú
6x RTX 3090 (TP=2 x PP=3 across 3 direct NVLink4 pairs, DDR4-2667 8-channel pinned UVA BF16 PLE offload). Full unquantized BF16 Qwen4-35B-A3B + 1M native BF16 KV (~1.28M KV pool) + PP-safe direct TP2 NVLink4 collectives (VLLM_TP2_NVLINK=1) + built-in MTP (k=1, drafter-only NVFP4 lm_head) + VLLM_GREEDY_LOCAL_ARGMAX=1 + SM86 fused HyperConnection + VLLM_FAST_TEXT_EMBEDS=1 + VLLM_USE_RUST_FRONTEND=1. Target weights and logits 100% unquantized BF16.

Giải mã suy đoán

Phương pháp
MTP
Được chấp nhận mỗi bước
1,83 token
Tỷ lệ chấp nhận
83%
Token nháp
560
Token được chấp nhận
464

Bằng chứng đã ghi

Mã băm prompt (SHA-256)
a737db738bd4…
Mẫu prompt · 826 chars
[LocalMaxxing cache-bust nonce: 26777547ec5cbb0055b4ad7a835fc42a]
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.
Mẫu đầu ra · 3,426 chars
The user wants a CLI tool. Let me write clean, complete code.

Key design decisions:
- Read stdin line by line, parse JSON, validate fields.
- Accumulate per-service counts by level, and latency samples. For percentiles, storing all samples could be memory-heavy; but for a small tool, we could use a bounded approach. Let's mention: we store samples in a list per service (simple, exact), but note an alternative. Actually better: implement exact percentiles with sorted list at the end — simple and correct. But mention memory. Maybe offer reservoir? Keep it simple but note the tradeoff. I'll store all samples and sort at the end — exact, deterministic. Mention that for huge streams you'd swap in a t-digest or fixed-bucket histogram.

Percentile method: nearest-rank on the sorted sample, with the "ceiling" definition: rank = ceil(p/100 * n), clamped to [1, n]. Explain why: it's the standard definition used by monitoring systems (e.g., Prometheus histogram_quantile-ish / simple), requires no interpolation assumptions, always returns an observed value, and is monotone/stable. Note that linear interpolation (numpy default) can produce values never observed and differs between tools.

Edge cases for tests:
1. Empty input / no latency samples at all → p50/p95 should be None, not crash or divide by zero.
2. Single sample → p50 == p95 == that value.
3. Malformed lines: invalid JSON, non-dict JSON (e.g., `[1,2]` or `"str"`), missing required fields, wrong types (level not in enum, latency_ms as string/bool/negative/NaN), unknown level.
4. `--since` boundary: records exactly at the timestamp included or excluded (define: drop records strictly earlier, i.e., keep ts >= since). Also timezone-aware vs naive timestamps, 'Z' suffix, mixed offsets.
5. Duplicate/extra fields, unicode service names, very large latency.

Let me write the code carefully.

```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 Counter, defaultdict
from dataclasses import dataclass, field
from datetime import datetime, timezone
from typing import Any, Iterable, Iterator, Optional

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


@dataclass
class ServiceStats:
    counts: Counter = field(default_factory=Counter)
    latencies: list[float] = field(default_factory=list)

    def add(self, level: str, latency: Optional[float]) -> None:
        self.counts[level] += 1
        if latency is not None:
            self.latencies.append(latency)


def percentile(sorted_values, p):
    """Nearest-rank percentile. `sorted_values` must be sorted ascending, non-empty."""
    n = len(sorted_values)
    if n == 0:
        return None
    if not 0.0 <= p <= 100.0:
        raise ValueError(...)
    rank = math.ceil(p / 100.0 * n)
    rank = min(max(rank, 1), n)
    return sorted_values[rank - 1]
```

Careful with float: p=95, n=20 → 0.95*20 = 19.000000000000004? Let's check: 95/100 = 0.95, 0.95*20 = 19.0 exactly? 0.95 is not exactly representable; 0.95*20 = 19.000000000000004 possibly. ceil → 20. Hmm that would give the max instead of 19. Let's compute: 0.95 in binary ≈ 0.95000000000000002220446049250313. Times 20 = 19.0000000000000004440892098500626 → rounds to nearest double: 19.000000000000004 (since spacing near 19 is 2^-48*16 ≈ 3.55e-15). Actually 19.00000000

Các lượt chạy khác của mô hình này trên phần cứng này