Pruebas de velocidadModelosEvaluaciones comparativasAlquileresInformesHardwareCalculadora de decodificaciónOrganizacionesProDocs de APIEnviar
Idioma
Actual Computer — Every computer, one endpoint

Prueba de velocidad

Qwen4-35B-A3B

RTX 3090 24GB ×6 · vllm · vllm-qwen4 · BF16

jareddotinfoVerificado5 dic 2026Ejecución verificada

Decodificación

193tok/s

Prefill

2.3ktok/s

Tiempo hasta el primer token

107ms

Total

236tok/s

VRAM máxima

119,3GB

Longitud de contexto

1024K

Profundidad KV

0

Tamaño de lote

1

Concurrencia

1

Consumo de energía

1083W

Verificación

Ejecución verificada

Comando de lanzamiento

vllm serve Qwen/Qwen4-35B-A3B --trust-remote-code --dtype bfloat16 -tp 2 -pp 3 --max-model-len 1048576 --gpu-memory-utilization 0.94 --enable-prefix-caching --kv-cache-dtype auto --engram-config.cpu_offload true --disable-custom-all-reduce --speculative-config '{"method":"mtp","num_speculative_tokens":1,"index_share_for_mtp_iteration":true,"draft_lm_head_quantization":"nvfp4"}'

Theoretical memory ceiling

548.1–548.9 tok/s

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

Includes speculative decoding: 1.83 tokens accepted per model step on average (299.7–300.2 steps/s) · measured 105.5 steps/s

35–35%

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 BF16 estimate. Hardware source · Open calculator

Hardware

GPU
RTX 3090
Cantidad
6
VRAM
24 GB
OS
Ubuntu 26.04.1 LTS

Motor

Motor
vllm
Versión
vllm-qwen4
Build
vllm-qwen4-6x3090-bf16-tp2pp3-nvlink4-mtp1-v2
Quant
BF16
Backend
cuda
TP
2
KV cache
bfloat16
GPU mem util
0.94
Prefix caching
sí
Spec decode
activado
MTP
activado

Configuración de ejecución

Contexto
1.048.576 tokens
Profundidad
0 tokens
Tamaño de batch
1
Tokens del prompt
251
Prefill tok/s
2,328.6 tok/s
Consumo de energía
1,083 W (170 + 176 + 168 + 173 + 197 + 199 W)
Tokens de salida
1024
Enviado con
lmx v0.1.68 speed-test submit
Notas
6x RTX 3090 (TP=2 x PP=3 across 3 direct NVLink4 pairs, DDR4-2667 8-channel pinned UVA BF16 PLE offload). Full unquantized BF16 Qwen4-35B-A3B + 1M native BF16 KV (~1.28M KV pool) + PP-safe direct TP2 NVLink4 collectives (VLLM_TP2_NVLINK=1) + built-in MTP (k=1, drafter-only NVFP4 lm_head) + VLLM_GREEDY_LOCAL_ARGMAX=1 + SM86 fused HyperConnection + VLLM_FAST_TEXT_EMBEDS=1 + VLLM_USE_RUST_FRONTEND=1. Target weights and logits 100% unquantized BF16.

Decodificación especulativa

Método
MTP
Aceptados por paso
1,83 tokens
Tasa de aceptación
83 %
Tokens de borrador
560
Tokens aceptados
464

Evidencia capturada

Hash del prompt (SHA-256)
a737db738bd4…
Muestra del prompt · 826 chars
[LocalMaxxing cache-bust nonce: 26777547ec5cbb0055b4ad7a835fc42a]
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.
Muestra de salida · 3,426 chars
The user wants a CLI tool. Let me write clean, complete code.

Key design decisions:
- Read stdin line by line, parse JSON, validate fields.
- Accumulate per-service counts by level, and latency samples. For percentiles, storing all samples could be memory-heavy; but for a small tool, we could use a bounded approach. Let's mention: we store samples in a list per service (simple, exact), but note an alternative. Actually better: implement exact percentiles with sorted list at the end — simple and correct. But mention memory. Maybe offer reservoir? Keep it simple but note the tradeoff. I'll store all samples and sort at the end — exact, deterministic. Mention that for huge streams you'd swap in a t-digest or fixed-bucket histogram.

Percentile method: nearest-rank on the sorted sample, with the "ceiling" definition: rank = ceil(p/100 * n), clamped to [1, n]. Explain why: it's the standard definition used by monitoring systems (e.g., Prometheus histogram_quantile-ish / simple), requires no interpolation assumptions, always returns an observed value, and is monotone/stable. Note that linear interpolation (numpy default) can produce values never observed and differs between tools.

Edge cases for tests:
1. Empty input / no latency samples at all → p50/p95 should be None, not crash or divide by zero.
2. Single sample → p50 == p95 == that value.
3. Malformed lines: invalid JSON, non-dict JSON (e.g., `[1,2]` or `"str"`), missing required fields, wrong types (level not in enum, latency_ms as string/bool/negative/NaN), unknown level.
4. `--since` boundary: records exactly at the timestamp included or excluded (define: drop records strictly earlier, i.e., keep ts >= since). Also timezone-aware vs naive timestamps, 'Z' suffix, mixed offsets.
5. Duplicate/extra fields, unicode service names, very large latency.

Let me write the code carefully.

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

from __future__ import annotations

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

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


@dataclass
class ServiceStats:
    counts: Counter = field(default_factory=Counter)
    latencies: list[float] = field(default_factory=list)

    def add(self, level: str, latency: Optional[float]) -> None:
        self.counts[level] += 1
        if latency is not None:
            self.latencies.append(latency)


def percentile(sorted_values, p):
    """Nearest-rank percentile. `sorted_values` must be sorted ascending, non-empty."""
    n = len(sorted_values)
    if n == 0:
        return None
    if not 0.0 <= p <= 100.0:
        raise ValueError(...)
    rank = math.ceil(p / 100.0 * n)
    rank = min(max(rank, 1), n)
    return sorted_values[rank - 1]
```

Careful with float: p=95, n=20 → 0.95*20 = 19.000000000000004? Let's check: 95/100 = 0.95, 0.95*20 = 19.0 exactly? 0.95 is not exactly representable; 0.95*20 = 19.000000000000004 possibly. ceil → 20. Hmm that would give the max instead of 19. Let's compute: 0.95 in binary ≈ 0.95000000000000002220446049250313. Times 20 = 19.0000000000000004440892098500626 → rounds to nearest double: 19.000000000000004 (since spacing near 19 is 2^-48*16 ≈ 3.55e-15). Actually 19.00000000

Más ejecuciones de este modelo en este hardware