Testy szybkościModeleBenchmarkiWynajemRaportySprzętKalkulator dekodowaniaOrganizacjeProDokumentacja APIPrześlij
Język
Actual Computer — Every computer, one endpoint

Test szybkości

Qwen4-35B-A3B-GGUF

RTX 3090 24GB · llama.cpp · b12681 + local patches (pi2 v7g) · UD-IQ4_XS

feveromoZweryfikowane4 gru 2026Zweryfikowany przebieg

Dekodowanie

202tok/s

Prefill

1.7ktok/s

Czas do pierwszego tokenu

138ms

Łącznie

—

Szczytowe VRAM

22,6GB

Długość kontekstu

192K

Głębokość KV

0

Rozmiar partii

1

Współbieżność

1

Pobór mocy

—

Weryfikacja

Zweryfikowany przebieg

Komenda uruchomienia

llama-server --host 127.0.0.1 --port 8014 --n-gpu-layers all --fit off --no-context-shift --flash-attn on --batch-size 512 --threads 8 --threads-batch 8 --parallel 1 --cache-ram 0 --jinja --reasoning on --model Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf --ctx-size 196608 --cache-type-k q8_0 --cache-type-v q8_0 --ubatch-size 512 --ctx-checkpoints 8 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0.0 --repeat-penalty 1.0 --lazy-mode on --spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-n-ubatch 16 --spec-draft-type-k q8_0 --spec-draft-type-v q8_0

Theoretical memory ceiling

1,622.2–1,629.9 tok/s

936.2 GB/s memory bandwidth (spec sheet) · 20.52 GB model weights · 8.5-bit KV cache · 1–250 tokens of context

Includes speculative decoding: 2.43 tokens accepted per model step on average (668.0–671.1 steps/s) · measured 83.2 steps/s

12–12%

of the ceiling reached

High 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 unsloth/Qwen4-35B-A3B-GGUF/UD-IQ4_XS/Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf. Hardware source · Open calculator

Sprzęt

GPU
RTX 3090
Liczba
1
VRAM
24 GB
OS
Ubuntu 26.04

Silnik

Silnik
llama.cpp
Wersja
b12681 + local patches (pi2 v7g)
Commit
a13c9baa4
Quant
UD-IQ4_XS
Backend
cuda
Warstwy GPU
99
KV cache
q8_0
Prefill chunk
512
Flash Attn
tak
Spec decode
włączone
MTP
włączone

Konfiguracja uruchomienia

Kontekst
196 608 tokenów
Głębokość
0 tokenów
Rozmiar batcha
1
Tokeny promptu
250
Prefill tok/s
1,719.3 tok/s
Tokeny wyjściowe
512
Rewizja
85a51187d937d87d799be9a10fa30732ee31432c
Notatki
Patched llama.cpp (local pi2 v7g branch: llama.cpp with Qwen4 PR #33626 cherry-picked, plus local CUDA patches: QSA gather attention for decode, raw q8_0 K/V in the int8 prefill FlashAttention kernel, qwen4exp decode kernel fusions, MoE mat-vec warp rows on sm_86). Not upstream master. 192K context loaded (196608), q8_0 KV, built-in MTP head with 2 draft tokens; n-gram drafting off for this test (it learns from earlier identical outputs, which would inflate repeated greedy runs). Engram table (shard 2) mmapped in host RAM via --lazy-mode on. Greedy, thinking off (chat_template_kwargs enable_thinking=false), 512 output tokens. Median of 3 runs after one warm-up; each request has a fresh cache-bust nonce (cache_n = 0). Peak VRAM is the llama-server process (nvidia-smi) at 192K context. RTX 3090 at its stock 350 W limit.

Dekodowanie spekulatywne

Metoda
MTP
Akceptowane na krok
2,43 tokenów
Współczynnik akceptacji
71%
Tokeny szkicu
420
Zaakceptowane tokeny
300

Zapisane dowody

Hash promptu (SHA-256)
a737db738bd4…
Próbka promptu · 826 chars
[LocalMaxxing cache-bust nonce: 9763a897bed846548aed6b957b08dee8]
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.
Próbka odpowiedzi · 2,262 chars
```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


# ---------------------------------------------------------------------------
# Percentile helpers
# ---------------------------------------------------------------------------

def percentile(sorted_data: list[float], p: float) -> float | None:
    """Return the *p*-th percentile (0-100) using linear interpolation.

    This is the "inclusive" method (equivalent to numpy's default /
    R type-7): the rank is  (n-1)*p/100, and we interpolate between the
    two surrounding values.
    """
    if not sorted_data:
        return None
    n = len(sorted_data)
    if n == 1:
        return sorted_data[0]
    rank = (n - 1) * (p / 100.0)
    lo = int(math.floor(rank))
    hi = int(math.ceil(rank))
    frac = rank - lo
    return sorted_data[lo] + frac * (sorted_data[hi] - sorted_data[lo])


# ---------------------------------------------------------------------------
# Record validation
# ---------------------------------------------------------------------------

VALID_LEVELS = {"DEBUG", "INFO", "WARN", "ERROR"}


def parse_record(raw: str) -> dict | None:
    """Try to parse *raw* into a valid log record.  Return None on failure."""
    try:
        obj = json.loads(raw)
    except (json.JSONDecodeError, ValueError):
        return None

    if not isinstance(obj, dict):
        return None

    # -- ts ------------------------------------------------------------------
    ts_str = obj.get("ts")
    if not isinstance(ts_str, str):
        return None
    try:
        ts = datetime.fromisoformat(ts_str)
    except (ValueError, TypeError):
        return None
    # normalise to aware UTC so comparisons always work
    if ts.tzinfo is None:
        ts = ts.replace(tzinfo=timezone.utc)

    # -- level ---------------------------------------------------------------
    level = obj.get("level")
    if not isinstance(level, str) or level not in VALID_LEVELS:
        return None

    # -- service -------------------------------------------------------------
    service = obj.get("service")
    if not

Więcej przebiegów tego modelu na tym sprzęcie