Test di velocitàModelliValutazioni comparativeNoleggiReportHardwareCalcolatore di decodificaOrganizzazioniProDocumentazione APIInvia
Lingua
Actual Computer — Every computer, one endpoint

Test di velocità

Qwen4-35B-A3B-GGUF

Radeon AI Pro R9700 32GB · llama.cpp · b12992+pr33412+pr33695 · UD-Q3_K_XL

jr95Verificato4 dic 2026Esecuzione verificata

Decodifica

197tok/s

Prefill

786tok/s

Tempo al primo token

319ms

Totale

220tok/s

VRAM di picco

20,5GB

Lunghezza del contesto

32K

Profondità KV

0

Dimensione batch

1

Concorrenza

1

Consumo energetico

—

Verifica

Esecuzione verificata

Comando di avvio

llama-server -m Qwen4-35B-A3B-UD-Q3_K_XL-00001-of-00002.gguf -np 1 -ngl 99 -fa on -c 32768 -ctk q8_0 -ctv q8_0 --load-mode mmap --lazy-mode auto -ot per_layer_token_embd=CPU --fit off --jinja --reasoning off -b 2048 -ub 512 -t 4 -tb 12 --cache-ram 0 --no-context-shift -md dflash2-Qwen4-35B-A3B-Q8_0.gguf -ngld 99 --spec-type draft-dflash2 --spec-draft-n-max 5 --spec-draft-p-min 0 -ctkd q8_0 -ctvd q8_0

Theoretical memory ceiling

1,759.4–1,772.7 tok/s

640 GB/s memory bandwidth (spec sheet) · 19.36 GB model weights · 8.5-bit KV cache · 1–251 tokens of context

Includes speculative decoding: 4.41 tokens accepted per model step on average (399.3–402.3 steps/s) · measured 44.7 steps/s

11–11%

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

Hardware

GPU
Radeon AI Pro R9700
Conteggio
1
VRAM
32 GB
OS
Linux Mint 22.3

Motore

Motore
llama.cpp
Versione
b12992+pr33412+pr33695
Build
llama.cpp-b12992-vulkan-pr33412-33683-33695-33702-33701-mesa26.3.1
Commit
a274a3948fa5
Quant
UD-Q3_K_XL
Backend
vulkan
GPU layers
99
KV cache
q8_0
Chunk prefill
512
Flash Attn
sì
Spec decode
abilitato

Configurazione run

Contesto
32.768 token
Profondità
0 token
Dimensione batch
1
Token prompt
251
Prefill tok/s
785.7 tok/s
Token output
1536
Revisione
93903a4ac761af2b3f55e5f42e42a5264031f542
Inviato con
lmx v0.1.69 speed-test submit
Note
Measured 2026-12-04 on AMD Radeon AI PRO R9700 32 GB (Mesa 26.3.1 RADV, Linux 7.0.0-44). Patched llama.cpp b12992 Vulkan (PRs #33412 epilogue codegen, #33683 RDNA4 FA, #33695 Qwen4 DFlash2, #33702 MTP batch, #33701 tool choice), Mesa 26.3.1 RADV, Q8_0 target+draft KV, lazy IQ4_NL Engram on NVMe, DFlash2 Q8_0 depth 5, reasoning=off. Canonical code-v1, batchSize=1, temp=0. Peak VRAM 20.46 GB (19.06 GiB). Zero swap, zero kernel GPU faults.

Decodifica speculativa

Metodo
DFlash2
Accettati per passo
4,41 token
Tasso di accettazione
68%
Token di bozza
1741
Token accettati
1186

Evidenze acquisite

Hash del prompt (SHA-256)
a737db738bd4…
Esempio di prompt · 826 chars
[LocalMaxxing cache-bust nonce: c7d8745511982beefa8d42027a365ab5]
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.
Esempio di output · 3,903 chars
# `logtally` — Structured Log Aggregator

```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 helper (nearest-rank method)                            #
# ------------------------------------------------------------------ #

def percentile(sorted_data: list[float], p: float) -> float:
    """Return the *p*-th percentile (0-100) using the nearest-rank method."""
    if not sorted_data:
        return 0.0
    rank = math.ceil(p / 100.0 * len(sorted_data))
    rank = max(1, min(rank, len(sorted_data)))
    return sorted_data[rank - 1]


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

VALID_LEVELS = frozenset({"DEBUG", "INFO", "WARN", "ERROR"})


def parse_record(line: str) -> dict | None:
    """Return a validated record dict, or *None* if the line is malformed."""
    try:
        obj = json.loads(line)
    except (json.JSONDecodeError, ValueError):
        return None

    if not isinstance(obj, dict):
        return None

    # -- required fields --------------------------------------------
    ts_raw = obj.get("ts")
    level = obj.get("level")
    service = obj.get("service")

    if not isinstance(ts_raw, str) or not isinstance(level, str) or not isinstance(service, str):
        return None
    if level not in VALID_LEVELS:
        return None

    try:
        ts = datetime.fromisoformat(ts_raw)
    except (ValueError, TypeError):
        return None

    # -- optional latency_ms ----------------------------------------
    latency_ms = obj.get("latency_ms")
    if latency_ms is not Non
…
urn None
        if not math.isfinite(latency_ms):
            return None

    return {
        "ts": ts,
        "level": level,
        "service": service,
        "latency_ms": float(latency_ms) if latency_ms is not None else None,
    }


# ------------------------------------------------------------------ #
# Aggregation                                                        #
# ------------------------------------------------------------------ #

class ServiceStats:
    __slots__ = ("level_counts", "latencies")

    def __init__(self) -> None:
        self.level_counts: dict[str, int] = defaultdict(int)
        self.latencies: list[float] = []

    def add(self, record: dict) -> None:
        self.level_counts[record["level"]] += 1
        if record["latency_ms"] is not None:
            self.latencies.append(record["latency_ms"])

    def sorted_latencies(self) -> list[float]:
        return sorted(self.latencies)


def aggre
…
ine)
        if record is None:
            malformed += 1
            continue

        # Apply --since filter (make record ts comparable).
        if since_dt is not None:
            rec_ts = record["ts"]
            if rec_ts.tzinfo is None:
                rec_ts = rec_ts.replace(tzinfo=timezone.utc)
            if rec_ts < since_dt:
                continue

        stats[record["service"]].add(record)

    report(stats, malformed)


if __name__ == "__main__":
    main()
```

---

## How Percentiles Are Computed

I use the **nearest-rank method**: the rank is `⌈p/100 × N⌉` (clamped to `[1, N]`), and the value at that 1-indexed position in the sorted array is returned. This is the simplest deterministic definition of a percentile—no interpolation, no assumptions about distribution shape—and it matches what most operational dashboards (e.g., basic Prometheus histogram queries) report, making it a natural fit for a log-analysis CLI.

---

## Three Edge Cases a Unit Test Suite Should

Altri run di questo modello su questo hardware