Uji kecepatanModelTolok UkurSewaLaporanHardwareKalkulator decodeOrganisasiProDokumen APIKirim
Bahasa
Actual Computer — Every computer, one endpoint

Uji kecepatan

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

369sasasavic-dotcomTerverifikasi4 Des 2026Run terverifikasi

Decode

106tok/s

Prefill

369tok/s

Waktu ke token pertama

683ms

Total

109tok/s

VRAM puncak

9,4GB

Panjang konteks

256K

Kedalaman KV

0

Ukuran batch

1

Konkurensi

1

Konsumsi daya

241W

Verifikasi

Run terverifikasi

Luncurkan perintah

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 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 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
q4_lite PR tree 22a9714 (Strata PR #7774), served via terminal/serve/server.py
Build
linux-x86_64-cuda12-sm86
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
252
Isi awal tok/s
368.8 tok/s
Konsumsi daya
241 W (71 + 61 + 109 W)
Token keluaran
6842
Catatan
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.

Decoding spekulatif

Metode
MTP drafter (runtime sidecar), --spec 4
Diterima per langkah
2,5 token
Tingkat penerimaan
72%
Token draf
5.724
Token diterima
4.107

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`

```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 = 

Run lain dari model ini di hardware ini