速度測試
Qwen4-35B-A3B-GGUF
RTX 3060 12GB ×3 · strata · Strata 0.2.27 (Control 0.1.74.2), official strata-q4-lite engine 0.1.74 · UD-IQ4_XS
解碼
109tok/s
預填
582tok/s
首個 token 延遲
440ms
總計
112tok/s
峰值 VRAM
11GB
上下文長度
256K
KV 深度
0
批次大小
1
並行數
1
功耗
254W
驗證
已驗證執行啟動命令
strata serve --profile qwen4-official.json --port 8098 --host 0.0.0.0 # Strata 0.2.27 / Control 0.1.74.2, official strata-q4-lite engine 0.1.74; engine args: --pack pack-official-UD-IQ4_XS --native trunk40-UD-IQ4_XS.gguf --native-dense-gguf trunk40-UD-IQ4_XS.gguf --ple-gguf Qwen4-35B-A3B-UD-IQ4_XS-00002-of-00002.gguf --expert-cache auto --prefill 4096 --max-context 262144 --kv int8 --spec 4 --mtp MTP/rt --vram-reserve-mib 512 --vision; the run config pins gpu [0,1,2] and layer_split auto
Theoretical memory ceiling
474.6–476.2 tok/s
360 GB/s memory bandwidth (spec sheet) · 32.06 GB model weights · 8-bit KV cache · 1–256 tokens of context
Includes speculative decoding: 2.69 tokens accepted per model step on average (176.1–176.7 steps/s) · measured 40.6 steps/s
23–23%
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 UD-IQ4_XS estimate. Hardware source · Open calculator
模型
- GPU
- RTX 3060
- 數量
- 3
- VRAM
- 12 GB
- OS
- Ubuntu 24.04
引擎
- 引擎
- strata
- 版本
- Strata 0.2.27 (Control 0.1.74.2), official strata-q4-lite engine 0.1.74
- Repository
- https://github.com/Niko1221/Strata
- Build
- linux-x86_64-cuda-cuda13 (BUILD.json: cuda 13.0, archs 75;86;89;120)
- 量化
- UD-IQ4_XS
- 後端
- cuda
- TP
- 1
- KV 快取
- int8
- Spec decode
- 已啟用
- MTP
- 已啟用
執行設定
- 上下文
- 262,144 個 token
- 深度
- 0 個 token
- 批次大小
- 1
- 提示詞 token
- 256
- 預填 tok/s
- 581.8 tok/s
- 功耗
- 254 W (81 + 49 + 124 W)
- 輸出 token
- 8192
- 備註
- 3x RTX 3060 12GB (36 GB VRAM), layer split auto (CUDA0 -> CUDA1,2); tensor parallel 1, so no all-reduce. qwen4exp 35B-A3B: 40 trunk layers + 1 MTP block, 256 experts top-8 (+1 shared), ~3.8B active per token. UD-IQ4_XS of unsloth/Qwen4-35B-A3B-GGUF, split with Strata's own qwen4_split_gguf.py and packed with tools/iq_pack.py --compat-bf16; the 2-file layout keeps the ~11.5 GB engram (file 2) out of VRAM. 262144 context, int8 KV. Official Strata 0.2.26/0.2.27 stack (no fork, no local server.py): Control 0.1.74.2 drives the strata-q4-lite engine 0.1.74. MTP drafter on (--mtp MTP/rt --spec 4); draft and accepted counts reported so the decode figure can be scaled by mean accepted length. Text-only run; the vision reader (mmproj-BF16.gguf via a CPU strata-vision process) is configured but unused here.
推測解碼
- 方法
- MTP drafter (runtime sidecar), --spec 4
- 每步接受數
- 2.7 個 token
- 接受率
- 54%
- 草稿 token
- 9,515
- 已接受 token
- 5,152
已記錄的證據
- 提示詞雜湊(SHA-256)
- a737db738bd4…
提示詞樣本 · 760 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.
輸出樣本 · 4,000 chars
## `logtally.py`
```python
#!/usr/bin/env python3
"""
logtally -- summarize newline-delimited JSON log records read from stdin.
Input (one JSON object per line):
{"ts": "2024-05-01T12:00:00Z", "level": "INFO", "service": "api", "latency_ms": 12.5}
Usage:
cat app.log | logtally
logtally --since 2024-05-01T00:00:00Z < app.log
Standard library only.
"""
from __future__ import annotations
import argparse
import json
import math
import os
import sys
from collections import Counter, defaultdict
from datetime import datetime, timezone
from typing import Dict, List, NamedTuple, Optional, TextIO
LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")
# --------------------------------------------------------------------------
# Parsing
# --------------------------------------------------------------------------
class MalformedLine(Exception):
"""Raised internally when a line cannot be interpreted as a log record."""
def __init__(self, reason: str) -> None:
super().__init__(reason)
self.reason = reason
class Record(NamedTuple):
ts: datetime # always timezone-aware, UTC
level: str
service: str
latency_ms: Optional[float]
def parse_timestamp(raw: str) -> datetime:
"""Parse an ISO-8601 timestamp into an aware UTC datetime.
Accepts a trailing 'Z' (needed on Python < 3.11) and treats naive
timestamps as UTC so that comparisons are always well defined.
"""
text = raw.strip()
if text.endswith(("Z", "z")):
text = text[:-1] + "+00:00"
dt = datetime.fromisoformat(text)
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt.astimezone(timezone.utc)
def parse_record(line: str) -> Record:
"""Validate one line. Raises MalformedLine with a human-readable reason."""
try:
obj = json.loads(line)
except ValueError as exc:
raise MalformedLine("invalid JSON") from exc
if not isinstance(obj, dict):
raise MalformedLine("not a JSON object")
raw_ts = obj.get("ts")
if not isinstance(raw_ts, str):
raise MalformedLine("missing/invalid 'ts'")
try:
ts = parse_timestamp(raw_ts)
except (ValueError, OverflowError) as exc:
raise MalformedLine("unparseable 'ts'") from exc
level = obj.get("level")
if level not in LEVELS:
raise MalformedLine("unknown 'level'")
service = obj.get("service")
if not isinstance(service, str) or not service.strip():
raise MalformedLine("missing/invalid 'service'")
latency: Optional[float] = None
if obj.get("latency_ms") is not None:
raw = obj["latency_ms"]
# bool is a subclass of int in Python, so exclude it explicitly.
if isinstance(raw, bool) or not isinstance(raw, (int, float)):
raise MalformedLine("non-numeric 'latency_ms'")
if not math.isfinite(raw): # catches NaN, inf, -inf
raise MalformedLine("non-finite 'latency_ms'")
if raw < 0:
raise MalformedLine("negative 'latency_ms'")
latency = float(raw)
return Record(ts=ts, level=level, service=service.strip(), latency_ms=latency)
# --------------------------------------------------------------------------
# Aggregation
# --------------------------------------------------------------------------
class ServiceStats:
__slots__ = ("counts", "latencies")
def __init__(self) -> None:
self.counts: Counter = Counter()
# Latencies are kept in memory; fine for a CLI tool. For very large
# inputs swap this for a t-digest / fixed-bucket histogram.
self.latencies: List[float] = []
class TallyResult(NamedTuple):
stats: Dict[str, ServiceStats]
malformed: Counter
lines_read: int
blank_lines: int
dropped: int
def tally(stream: TextIO, since: Optional[datetime] = None) -> TallyResult:
stats: Dict[str, ServiceStats] = defaultdict(ServiceStats)
malformed: Counter = Counter()
lines_read = b此模型在此硬體上的更多執行
- 110tok/sstrata · Strata 0.2.27 (Control 0.1.74.2), official strata-q4-lite engine 0.1.74 · UD-IQ4_XS上下文 256K · 深度 0 · 批次 1已驗證執行369sasasavic-dotcom · 2026年12月4日
- 106tok/sstrata · q4_lite PR tree 22a9714 (Strata PR #7774), served via terminal/serve/server.py · UD-IQ4_XS上下文 256K · 深度 0 · 批次 1已驗證執行369sasasavic-dotcom · 2026年12月4日
- 106tok/sstrata · q4_lite PR tree 22a9714 (Strata PR #7774), served via terminal/serve/server.py · UD-IQ4_XS上下文 256K · 深度 0 · 批次 1已驗證執行369sasasavic-dotcom · 2026年12月4日
