Uji kecepatan
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
Decode
110tok/s
Prefill
551tok/s
Waktu ke token pertama
467ms
Total
113tok/s
VRAM puncak
11GB
Panjang konteks
256K
Kedalaman KV
0
Ukuran batch
1
Konkurensi
1
Konsumsi daya
263W
Verifikasi
Run terverifikasiLuncurkan perintah
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 q4_0 --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
487.1–488.0 tok/s
360 GB/s memory bandwidth (spec sheet) · 32.06 GB model weights · 4.5-bit KV cache · 1–257 tokens of context
Includes speculative decoding: 2.78 tokens accepted per model step on average (175.5–175.8 steps/s) · measured 39.6 steps/s
22–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
Hardware
- GPU
- RTX 3060
- Menghitung
- 3
- VRAM
- 12 GB
- OS
- Ubuntu 24.04
Engine
- Engine
- strata
- Versi
- 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)
- Quant
- UD-IQ4_XS
- Bagian belakang
- cuda
- TP
- 1
- Tembolok KV
- q4_0
- Dekode spesifikasi
- aktif
- MTP
- aktif
Jalankan konfigurasi
- Konteks
- Token 262.144
- Kedalaman
- Token 0
- Ukuran kumpulan
- 1
- Token yang cepat
- 257
- Isi awal tok/s
- 550.9 tok/s
- Konsumsi daya
- 263 W (93 + 45 + 124 W)
- Token keluaran
- 7882
- Catatan
- 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, q4_0 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.
Decoding spekulatif
- Metode
- MTP drafter (runtime sidecar), --spec 4
- Diterima per langkah
- 2,78 token
- Tingkat penerimaan
- 56%
- Token draf
- 8.997
- Token diterima
- 5.043
Bukti terekam
- Hash prompt (SHA-256)
- a737db738bd4…
Sampel prompt · 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.
Sampel output · 4,000 chars
## `logtally.py`
```python
#!/usr/bin/env python3
"""logtally -- summarize newline-delimited JSON log records read from stdin.
Expected input (one JSON object per line):
{"ts": "2024-05-01T12:00:00Z", "level": "INFO", "service": "api", "latency_ms": 42}
`ts`, `level` and `service` are required; `latency_ms` is optional.
Anything that cannot be parsed or validated is counted as malformed and
reported in the footer -- the tool never aborts on bad input.
Exit codes: 0 = ok, 1 = malformed lines seen (only with --strict), 2 = bad CLI args.
"""
from __future__ import annotations
import argparse
import json
import math
import sys
from collections import Counter
from datetime import datetime, timezone
LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")
# --------------------------------------------------------------------------- #
# percentiles
# --------------------------------------------------------------------------- #
def percentile(sorted_values, p):
"""Nearest-rank percentile of an ascending list. Returns None if empty.
`p` must be an integer 0..100. The rank is computed with integer
arithmetic so that float error can never push us one slot too far
(e.g. 0.95 * 20 == 19.000000000000004 in binary floating point).
"""
n = len(sorted_values)
if n == 0:
return None
rank = (p * n + 99) // 100 # ceil(p * n / 100)
rank = max(1, min(rank, n))
return sorted_values[rank - 1]
# --------------------------------------------------------------------------- #
# parsing / validation
# --------------------------------------------------------------------------- #
def parse_timestamp(raw):
"""Parse an ISO-8601 string into an aware datetime. Naive == UTC."""
if not isinstance(raw, str):
raise ValueError("not a string")
text = raw.strip()
if not text:
raise ValueError("empty timestamp")
if text[-1] in "Zz": # keep 3.7/3.8/3.9/3.10 happy
text = text[:-1] + "+00:00"
dt = datetime.fromisoformat(text)
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt
def validate(payload):
"""Return (record_dict, None) or (None, reason_string)."""
if not isinstance(payload, dict):
return None, "not a JSON object"
try:
ts = parse_timestamp(payload.get("ts"))
except ValueError:
return None, "missing/unparseable ts"
level = payload.get("level")
if not isinstance(level, str):
return None, "missing/invalid level"
level = level.strip().upper()
if level not in LEVELS:
return None, "unknown level"
service = payload.get("service")
if not isinstance(service, str) or not service.strip():
return None, "missing/invalid service"
latency = None
if payload.get("latency_ms") is not None:
raw = payload["latency_ms"]
if isinstance(raw, bool) or not isinstance(raw, (int, float)):
return None, "non-numeric latency_ms"
if not math.isfinite(raw) or raw < 0:
return None, "non-finite/negative latency_ms"
latency = float(raw)
return {"ts": ts, "level": level, "service": service.strip(),
"latency_ms": latency}, None
# --------------------------------------------------------------------------- #
# tallying
# --------------------------------------------------------------------------- #
class ServiceStats:
__slots__ = ("total", "levels", "latencies")
def __init__(self):
self.total = 0
self.levels = Counter()
self.latencies = [] # exact samples; see note in README-ish comment
def add(self, level, latency):
self.total += 1
self.levels[level] += 1
if latency is not None:
self.latencies.append(latency)
def p50(self):
return percentile(sorted(self.latencies), 50)
def p95(self):
return percentile(sorted(self.latencies), 95)
class Tally:
def __init__(seRun lain dari model ini di hardware ini
- 109tok/sstrata · Strata 0.2.27 (Control 0.1.74.2), official strata-q4-lite engine 0.1.74 · UD-IQ4_XSKonteks 256K · kedalaman 0 · batch 1Run terverifikasi369sasasavic-dotcom · 4 Des 2026
- 106tok/sstrata · q4_lite PR tree 22a9714 (Strata PR #7774), served via terminal/serve/server.py · UD-IQ4_XSKonteks 256K · kedalaman 0 · batch 1Run terverifikasi369sasasavic-dotcom · 4 Des 2026
- 106tok/sstrata · q4_lite PR tree 22a9714 (Strata PR #7774), served via terminal/serve/server.py · UD-IQ4_XSKonteks 256K · kedalaman 0 · batch 1Run terverifikasi369sasasavic-dotcom · 4 Des 2026
