Teste de velocidade
Qwen4-35B-A3B-GGUF
RTX 3060 12GB ×3 · strata · q4_lite PR tree 22a9714 (Strata PR #7774), served via terminal/serve/server.py · UD-IQ4_XS
Decode
106tok/s
Prefill
369tok/s
Tempo até o primeiro token
683ms
Total
109tok/s
VRAM de pico
9,4GB
Tamanho do contexto
256K
Profundidade KV
0
Tamanho do lote
1
Concorrência
1
Consumo de energia
241W
Verificação
Execução verificadaComando de inicialização
python3 serve/server.py --engine strata --port 8098 --host 0.0.0.0 --config q4lite-8098.json # strata q4_lite tree @22a9714 (Strata PR #7774 port of qwen4exp 35B-A3B); engine args: --pack pack-trunk40-iq4xs --native trunk40-iq4xs.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 --gpu 0,1,2 --serve --layer-split 12,26 --split-device 1,2
Theoretical memory ceiling
446.8–447.6 tok/s
360 GB/s memory bandwidth (spec sheet) · 32.06 GB model weights · 4.5-bit KV cache · 1–252 tokens of context
Includes speculative decoding: 2.50 tokens accepted per model step on average (178.6–178.9 steps/s) · measured 42.4 steps/s
24–24%
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
- Quantidade
- 3
- VRAM
- 12 GB
- OS
- Ubuntu 24.04
Engine
- Engine
- strata
- Versão
- q4_lite PR tree 22a9714 (Strata PR #7774), served via terminal/serve/server.py
- Repository
- https://github.com/Niko1221/Strata
- Build
- linux-x86_64-cuda12-sm86
- Quant
- UD-IQ4_XS
- Backend
- cuda
- TP
- 1
- KV cache
- q4_0
- Spec decode
- ativado
- MTP
- ativado
Configuração da execução
- Contexto
- 262.144 tokens
- Profundidade
- 0 tokens
- Tamanho do batch
- 1
- Tokens de prompt
- 252
- Prefill tok/s
- 368.8 tok/s
- Consumo de energia
- 241 W (71 + 61 + 109 W)
- Tokens de saída
- 6842
- Notas
- 3x RTX 3060 12GB (36 GB VRAM), layer split 12/14/14; 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; the 2-file layout keeps the ~11.5 GB engram (file 2) in page cache via lazy tensor reads, not VRAM. 262144 context with q4_0 KV. Strata cannot run the shipped 0.2.19 CLI on this pack (it rejects the 'qwen4' tokenizer rule), so serving is the PR tree's own terminal/serve/server.py. MTP drafter on; draft and accepted counts reported so the decode ceiling can be scaled by mean accepted length.
Decodificação especulativa
- Método
- MTP drafter (runtime sidecar), --spec 4
- Aceitos por etapa
- 2,5 tokens
- Taxa de aceitação
- 72%
- Tokens de rascunho
- 5.724
- Tokens aceitos
- 4.107
Evidências capturadas
- Hash do prompt (SHA-256)
- a737db738bd4…
Amostra do 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.
Amostra de saída · 4,000 chars
## `logtally`
```python
#!/usr/bin/env python3
"""logtally — summarize newline-delimited JSON log records read from stdin.
Each input line must be a JSON object with:
ts ISO-8601 timestamp string (required)
level DEBUG | INFO | WARN | ERROR (required, case-insensitive)
service non-empty string (required)
latency_ms non-negative finite number (optional)
Usage:
cat app.log | logtally
logtally --since 2024-05-01T00:00:00Z < app.log
"""
from __future__ import annotations
import argparse
import json
import math
import sys
from collections import Counter, defaultdict
from datetime import datetime, timezone
LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")
REQUIRED_FIELDS = ("ts", "level", "service")
MAX_REASON_LEN = 72
class MalformedRecord(ValueError):
"""A line could not be interpreted as a log record."""
# --------------------------------------------------------------------------
# parsing / validation
# --------------------------------------------------------------------------
def parse_timestamp(value):
"""Parse an ISO-8601 string into an aware UTC datetime.
Naive timestamps are assumed to be UTC. A trailing 'Z' is accepted even on
Python < 3.11, where datetime.fromisoformat() rejects it.
"""
if not isinstance(value, str):
raise MalformedRecord("ts is not a string")
text = value.strip()
if not text:
raise MalformedRecord("ts is empty")
if text[-1] in ("Z", "z"):
text = text[:-1] + "+00:00"
try:
dt = datetime.fromisoformat(text)
except ValueError as exc:
raise MalformedRecord(f"unparseable ts: {value!r}") from exc
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt.astimezone(timezone.utc)
def parse_record(line):
"""Validate one line. Returns (service, level, ts, latency_or_None)."""
try:
obj = json.loads(line)
except json.JSONDecodeError as exc:
raise MalformedRecord(f"invalid JSON: {exc.msg}") from exc
except RecursionError as exc: # pathological nesting
raise MalformedRecord("invalid JSON: nesting too deep") from exc
if not isinstance(obj, dict):
raise MalformedRecord("record is not a JSON object")
for field in REQUIRED_FIELDS:
if field not in obj:
raise MalformedRecord(f"missing field {field!r}")
level = obj["level"]
if not isinstance(level, str) or level.strip().upper() not in LEVELS:
raise MalformedRecord(f"unknown level: {level!r}")
service = obj["service"]
if not isinstance(service, str) or not service.strip():
raise MalformedRecord("service must be a non-empty string")
ts = parse_timestamp(obj["ts"])
latency = None
if "latency_ms" in obj and obj["latency_ms"] is not None:
raw = obj["latency_ms"]
# bool is a subclass of int; True is not a latency.
if isinstance(raw, bool) or not isinstance(raw, (int, float)):
raise MalformedRecord("latency_ms is not a number")
if not math.isfinite(raw):
raise MalformedRecord("latency_ms is not finite")
if raw < 0:
raise MalformedRecord("latency_ms is negative")
latency = float(raw)
return service.strip(), level.strip().upper(), ts, latency
# --------------------------------------------------------------------------
# aggregation
# --------------------------------------------------------------------------
class ServiceStats:
__slots__ = ("counts", "latencies")
def __init__(self):
self.counts = Counter({level: 0 for level in LEVELS})
self.latencies = [] # exact samples; see note on memory in the write-up
@property
def total(self):
return sum(self.counts.values())
def summarize(lines, since=None):
"""Consume an iterable of text lines; never raises on bad input.
Returns (stats_by_service, malformed_reasons, lines_seen, dropped_by_since).
"""
stats = Mais execuções deste modelo neste hardware
- 110tok/sstrata · Strata 0.2.27 (Control 0.1.74.2), official strata-q4-lite engine 0.1.74 · UD-IQ4_XScontexto 256K · profundidade 0 · lote 1Execução verificada369sasasavic-dotcom · 4 de dez. de 2026
- 109tok/sstrata · Strata 0.2.27 (Control 0.1.74.2), official strata-q4-lite engine 0.1.74 · UD-IQ4_XScontexto 256K · profundidade 0 · lote 1Execução verificada369sasasavic-dotcom · 4 de dez. de 2026
- 106tok/sstrata · q4_lite PR tree 22a9714 (Strata PR #7774), served via terminal/serve/server.py · UD-IQ4_XScontexto 256K · profundidade 0 · lote 1Execução verificada369sasasavic-dotcom · 4 de dez. de 2026
