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

Test di velocità

Qwen4-35B-A3B-FP8

RTX 3090 24GB ×4 · vllm · vllm-qwen4 · FP8

jareddotinfoVerificato5 dic 2026Esecuzione verificata

Decodifica

302tok/s

Prefill

2.2ktok/s

Tempo al primo token

114ms

Totale

364tok/s

VRAM di picco

86,7GB

Lunghezza del contesto

512K

Profondità KV

0

Dimensione batch

1

Concorrenza

1

Consumo energetico

943W

Verifica

Esecuzione verificata

Comando di avvio

vllm serve Qwen/Qwen4-35B-A3B-FP8 --trust-remote-code --dtype bfloat16 -tp 4 --max-model-len 524288 --gpu-memory-utilization 0.94 --enable-prefix-caching --kv-cache-dtype auto --engram-config.cpu_offload true --disable-custom-all-reduce --speculative-config '{"method":"dflash","model":"RadixArk/Qwen4-35B-A3B-Dflash2","num_speculative_tokens":7}'

Theoretical memory ceiling

3,329.5–3,344.7 tok/s

3,744.8 GB/s memory bandwidth (spec sheet) · 57.00 GB model weights · 16-bit KV cache · 1–251 tokens of context

Includes speculative decoding: 3.03 tokens accepted per model step on average (1,098.5–1,103.6 steps/s) · measured 99.5 steps/s

9–9%

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-FP8; size from FP8 estimate. Hardware source · Open calculator

Hardware

GPU
RTX 3090
Conteggio
4
VRAM
24 GB
OS
Ubuntu 26.04.1 LTS

Motore

Motore
vllm
Versione
vllm-qwen4
Build
vllm-qwen4-dflash2-nvlink4-sm86-turbo-v2-bf16kv
Quant
FP8
Backend
cuda
TP
4
KV cache
bfloat16
GPU mem util
0.94
Prefix caching
sì
Spec decode
abilitato

Configurazione run

Contesto
524.288 token
Profondità
0 token
Dimensione batch
1
Token prompt
251
Prefill tok/s
2,186.0 tok/s
Consumo energetico
943 W (231 + 235 + 241 + 237 W)
Token output
1024
Inviato con
lmx v0.1.68 speed-test submit
Note
4x RTX 3090 (TP=4 across 2x NVLink4 pairs bridged via PCIe Gen4, 330W/GPU, DDR4-2667 8-channel pinned UVA PLE offload). Qwen4-35B-A3B-FP8 (W8A16 Marlin MoE) + BF16 KV (512K context, ~741K KV pool) + RadixArk/Qwen4-35B-A3B-Dflash2 (k=7) + vllm-nvlink-pair-comm hierarchical TP4 collectives + drafter-only NVFP4 lm_head + VLLM_GREEDY_LOCAL_ARGMAX=1 + VLLM_FUSED_TOPK_AG=1 + SM86 fused HyperConnection + VLLM_FAST_TEXT_EMBEDS=1 + VLLM_USE_RUST_FRONTEND=1. Target weights and logits untouched.

Decodifica speculativa

Metodo
DFlash2
Accettati per passo
3,03 token
Tasso di accettazione
29%
Token di bozza
2368
Token accettati
687

Evidenze acquisite

Hash del prompt (SHA-256)
a737db738bd4…
Esempio di prompt · 826 chars
[LocalMaxxing cache-bust nonce: ee400e8ea9c52dc27daac3f4e5aa4ea0]
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,950 chars
The user wants a CLI tool. Let me write clean, well-structured code using only stdlib.

Key design decisions:
- Streaming parse line by line, never crash.
- Percentile method: nearest-rank on sorted list (ceil(p*n) index), which is simple and deterministic. Or linear interpolation. I'll pick nearest-rank and explain.
- `--since` filtering with timezone-aware vs naive handling.
- Malformed counting: distinguish reasons (bad JSON, missing fields, bad level, bad ts, bad latency).

Let me write it.

Structure:
- `parse_args`
- `parse_since` — parse ISO timestamp, handle 'Z', handle naive/aware mismatch.
- `Record` dataclass or just accumulate into dict.
- `LEVELS` ordering.
- Percentile function.
- Output formatting: table.

Edge cases for `--since`: comparing naive vs aware datetimes raises TypeError. Handle by normalizing: if `since` is aware and record ts is naive, assume UTC; if since is naive and record is aware, drop tzinfo from since... Better: normalize both to UTC-aware. If naive, assume UTC.

Also handle `ts` that fails to parse → malformed.

Percentile: nearest-rank. For p50 with n=1 → index ceil(0.5*1)=1 → element 0. Good. Guard n=0.

Let me also add `--json` output? Not required. Keep it focused but maybe add a small `--top`? No, keep to requirements. Maybe add `-o json` — no, avoid scope creep. Actually a small amount of extra polish is fine but let's keep it tight and correct.

Let me write the code.

```python
#!/usr/bin/env python3
"""logtally - summarize newline-delimited JSON log records on stdin."""

from __future__ import annotations

import argparse
import json
import math
import sys
from collections import defaultdict
from dataclasses import dataclass, field
from datetime import datetime, timezone
from typing import Any, Iterable, Iterator, Optional

LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")
LEVEL_SET = frozenset(LEVELS)

MALFORMED_REASONS = (
    "empty_line",
    "not_json_object",
    "bad_json",
    "missing_field",
    "bad_level",
    "bad_timestamp",
    "bad_latency",
)
```

Hmm, `bad_latency` — should a record with a non-numeric latency be malformed (dropped) or just have latency ignored? I think: if `latency_ms` is present but not a finite number, treat the record as malformed? That's harsh. Better: treat it as malformed-ish but count separately as "bad_latency" and still... Hmm. Simpler and defensible: a record with a present-but-invalid `latency_ms` is malformed and counted, because it signals a producer bug. But then we lose the count by level. Alternative: keep the record, ignore the latency, and count a separate `bad_latency` warning counter. I'll go with: keep the record for level counts, ignore the latency, and increment a separate `ignored_latency` counter. Actually that muddies "malformed lines must be counted". Let me make it explicit and configurable-free: invalid latency → record is still tallied by level, latency ignored, and a distinct counter `latency_ignored` is reported. I'll document it. Hmm, but s
…
mm, but then a single bad field kills the whole record's level tally.

Decision: I'll treat schema violations as malformed (dropped + counted by reason), and document that choice clearly, plus note the alternative. Actually — let me reconsider once more. The most useful behavior for a log tool: don't throw away data because of one bad field. But the requirement explicitly says "Malformed lines must be counted and reported at the end, never crash." It doesn't say what counts as malformed.

I'll implement: strict schema validation → malformed. But I'll add a `--lenient` flag? No. Keep it simple: strict, documented, with reason breakdown. That's clean and testable. Hmm, but negative latency? Treat negative as malformed too? I'd say negative latency is suspicious → malformed. NaN/Infinity → malformed (json allows NaN/Infinity by default in Python's json! `json.loads('{"a": NaN}')` works). So must guard with math.isfinite.

Also bool is i

Altri run di questo modello su questo hardware