Kiểm tra tốc độ
Qwen4-35B-A3B
RTX PRO 6000 Blackwell Max-Q Workstation Edition 96GB ×2 · sglang · v0.5.24.dev1+gcd1dc28 · BF16
Decode
197tok/s
Prefill
5.8ktok/s
Thời gian đến token đầu tiên
44ms
Tổng
222tok/s
VRAM đỉnh
—
Độ dài ngữ cảnh
40K
Độ sâu KV
0
Kích thước batch
1
Đồng thời
1
Công suất tiêu thụ
—
Xác minh
Lượt chạy đã xác minhLệnh khởi chạy
docker run --gpus device=2,3 --ipc=host --shm-size 32g lmsysorg/sglang:qwen4 python3 -m sglang.launch_server --model-path Qwen/Qwen4-35B-A3B --served-model-name Qwen/Qwen4-35B-A3B --trust-remote-code --tp-size 2 --mem-fraction-static 0.6 --disable-radix-cache --max-running-requests 64 --context-length 40960 --random-seed 42
Theoretical memory ceiling
584.2–584.7 tok/s
3,584 GB/s memory bandwidth (spec sheet) · 114.00 GB model weights · 16-bit KV cache · 1–254 tokens of context
34–34%
of the ceiling reached
Medium confidenceThe 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 PRO 6000 Blackwell Max-Q Workstation Edition
- Số lượng
- 2
- VRAM
- 96 GB
- OS
- Ubuntu 26.04.1 LTS
Engine
- Engine
- sglang
- Phiên bản
- 0.5.24.dev1+gcd1dc28
- Build
- lmsysorg/sglang:qwen4 (sha256:a574b8c4d271459718a64f9dacd5ba373fcd4e75ee99770abeab4203557eccbd)
- Commit
- cd1dc28
- Quant
- BF16
- Backend
- cuda
- TP
- 2
- GPU mem util
- 0.6
- Prefix caching
- không
- Max running seqs
- 64
Cấu hình chạy
- Context
- 40.960 tokens
- Độ sâu
- 0 tokens
- Kích thước batch
- 1
- Prompt tokens
- 254
- Prefill tok/s
- 5,802.0 tok/s
- Output tokens
- 1950
- Ghi chú
- PureTensor lab, tensor-core: two of four RTX PRO 6000 Blackwell Max-Q cards (GPUs 2,3; 325 W limit), Threadripper PRO 9975WX, 512 GB DDR5. SGLang official Qwen4 image, pinned by digest, TP2. Full BF16 weights, no speculative decoding: the control for the DFlash2 arm. Host P2P settings (amd_iommu=off, NVIDIA P2P registry keys). CPU in a performance window (boost on, performance governor, C2 off). Radix (prefix) cache off as in the drafter model card. A small embedding server (12 GB) stayed loaded on GPU 0. Thinking off (enable_thinking=false). Batch 1, temperature 0, streamed; median of 5 runs after 2 warmup(s).
Bằng chứng đã ghi
- Mã băm prompt (SHA-256)
- a737db738bd4…
Mẫu prompt · 826 chars
[LocalMaxxing cache-bust nonce: 247a009ced941642d199d36b52143067] 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 · 4,000 chars
# `logtally` — Command-Line Log Aggregator
## Implementation
```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
# ---------------------------------------------------------------------------
# Helpers
# ---------------------------------------------------------------------------
LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")
def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
parser = argparse.ArgumentParser(
prog="logtally",
description="Aggregate JSON log records from stdin by service and level.",
)
parser.add_argument(
"--since",
type=str,
default=None,
help="ISO-8601 timestamp; records with an earlier ts are dropped.",
)
return parser.parse_args(argv)
def parse_since(raw: str | None) -> datetime | None:
"""Parse an ISO-8601 string into a timezone-aware datetime (UTC)."""
if raw is None:
return None
try:
dt = datetime.fromisoformat(raw)
except (ValueError, TypeError):
print(f"logtally: warning – could not parse --since value {raw!r}", file=sys.stderr)
return None
# Ensure timezone-aware for comparison
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt
def parse_record_ts(raw: str) -> datetime:
"""Parse a record's ts field into a timezone-aware datetime (UTC)."""
dt = datetime.fromisoformat(raw)
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt
def percentile(sorted_data: list[float], p: float) -> float:
"""
Compute the *p*-th percentile (0–100) using the 'exclusive' /
linear-interpolation method (equivalent to numpy's default).
Steps:
1. Sort the data (caller guarantees this).
2. Compute the rank: r = p / 100 * (n + 1)
3. Clamp *r* to [1, n].
4. Interpolate between the two surrounding data points.
"""
n = len(sorted_data)
if n == 0:
return 0.0
if n == 1:
return sorted_data[0]
rank = (p / 100.0) * (n + 1)
rank = max(1.0, min(float(n), rank)) # clamp
lower = int(math.floor(rank)) - 1 # 0-based index
upper = int(math.ceil(rank)) - 1
frac = rank - math.floor(rank)
if lower == upper:
return sorted_data[lower]
return sorted_data[lower] + frac * (sorted_data[upper] - sorted_data[lower])
# ---------------------------------------------------------------------------
# Core aggregation
# ---------------------------------------------------------------------------
class ServiceStats:
__slots__ = ("counts", "latencies")
def __init__(self) -> None:
self.counts: dict[str, int] = {lvl: 0 for lvl in LEVELS}
self.latencies: list[float] = []
def add(self, level: str, latency_ms: float | None) -> None:
if level in self.counts:
self.counts[level] += 1
else:
# Unexpected level – still count it
self.counts[level] = self.counts.get(level, 0) + 1
if latency_ms is not None:
self.latencies.append(latency_ms)
def sorted_latencies(self) -> list[float]:
return sorted(self.latencies)
def process_stream(
stdin,
since: datetime | None,
) -> tuple[dict[str, ServiceStats], int]:
"""
Read newline-delimited JSON from *stdin*, return
(per-service stats dict, malformed-line count).
"""
services: dict[str, ServiceStats] = defaultdict(ServiceStats)
malformed = 0
for lineno, raw_line in enumerate(stdin, start=1):
line = raw_line.strip()
if not line:
continue # skip blank lines silently
# --- parse JSON ---
try:
record = json.loads(line)
except (json.JSONDecodeError, ValueError):
malformed += 1
continue
Các lượt chạy khác của mô hình này trên phần cứng này
- 477tok/ssglang · v0.5.24.dev1+gcd1dc28 · BF16Ngữ cảnh 40K · độ sâu 0 · batch 1Lượt chạy đã xác minhpuretensor · 4 thg 12, 2026
- 429tok/ssglang · v0.5.24.dev1+gcd1dc28 · BF16Ngữ cảnh 40K · độ sâu 0 · batch 1puretensor · 4 thg 12, 2026
- 410tok/ssglang · v0.5.24.dev1+gcd1dc28 · BF16Ngữ cảnh 40K · độ sâu 0 · batch 1puretensor · 4 thg 12, 2026
- 368tok/svllm · v0.1.dev26393+gf247de72b · BF16Ngữ cảnh 1024K · độ sâu 0 · batch 1Lượt chạy đã xác minhpuretensor · 4 thg 12, 2026
- 364tok/svllm · v0.1.dev26393+gf247de72b · BF16Ngữ cảnh 1024K · độ sâu 0 · batch 1puretensor · 4 thg 12, 2026
- 353tok/svllm · v0.1.dev26393+gf247de72b · BF16Ngữ cảnh 1024K · độ sâu 0 · batch 1Lượt chạy đã xác minhpuretensor · 4 thg 12, 2026
- 305tok/svllm · v0.1.dev26393+gf247de72b · BF16Ngữ cảnh 1024K · độ sâu 0 · batch 1Lượt chạy đã xác minhpuretensor · 4 thg 12, 2026
- 298tok/svllm · v0.1.dev26393+gf247de72b · BF16Ngữ cảnh 1024K · độ sâu 0 · batch 1Lượt chạy đã xác minhpuretensor · 4 thg 12, 2026
- 283tok/ssglang · v0.5.24.dev1+gcd1dc28 · BF16Ngữ cảnh 40K · độ sâu 0 · batch 1Lượt chạy đã xác minhpuretensor · 4 thg 12, 2026
- 198tok/ssglang · v0.5.24.dev1+gcd1dc28 · BF16Ngữ cảnh 40K · độ sâu 0 · batch 1Lượt chạy đã xác minhpuretensor · 4 thg 12, 2026
