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

Prueba de velocidad

Qwen4-35B-A3B-NVFP4

RTX PRO 6000 Blackwell Max-Q Workstation Edition 96GB ×2 · sglang · v0.5.24.dev1+gcd1dc28 · NVFP4

puretensorVerificado4 dic 2026Ejecución verificada

Decodificación

561tok/s

Prefill

8.1ktok/s

Tiempo hasta el primer token

31ms

Total

626tok/s

VRAM máxima

—

Longitud de contexto

40K

Profundidad KV

0

Tamaño de lote

1

Concurrencia

1

Consumo de energía

—

Verificación

Ejecución verificada

Comando de lanzamiento

docker run --gpus device=2,3 --ipc=host --shm-size 32g lmsysorg/sglang:qwen4 python3 -m sglang.launch_server --model-path RadixArk/Qwen4-35B-A3B-NVFP4 --served-model-name RadixArk/Qwen4-35B-A3B-NVFP4 --trust-remote-code --tp-size 2 --mem-fraction-static 0.6 --disable-radix-cache --max-running-requests 64 --context-length 40960 --random-seed 42 --speculative-algorithm DFLASH --speculative-draft-model-path RadixArk/Qwen4-35B-A3B-Dflash2 --speculative-dflash-block-size 8 --speculative-draft-kv-cache-dtype bf16 --speculative-use-block-verification

Theoretical memory ceiling

7,824.9–7,913.4 tok/s

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

Includes speculative decoding: 4.64 tokens accepted per model step on average (1,685.6–1,704.7 steps/s) · measured 120.9 steps/s

7–7%

of the ceiling reached

Medium confidence

The fastest this hardware's memory could serve a single request; real runs are slower. Model details from RadixArk/Qwen4-35B-A3B-NVFP4; size from NVFP4 estimate. Hardware source · Open calculator

Hardware

GPU
RTX PRO 6000 Blackwell Max-Q Workstation Edition
Cantidad
2
VRAM
96 GB
OS
Ubuntu 26.04.1 LTS

Motor

Motor
sglang
Versión
0.5.24.dev1+gcd1dc28
Build
lmsysorg/sglang:qwen4 (sha256:a574b8c4d271459718a64f9dacd5ba373fcd4e75ee99770abeab4203557eccbd)
Commit
cd1dc28
Quant
NVFP4
Backend
cuda
TP
2
GPU mem util
0.6
Prefix caching
no
Máx. seqs en ejecución
64
Spec decode
activado

Configuración de ejecución

Contexto
40.960 tokens
Profundidad
0 tokens
Tamaño de batch
1
Tokens del prompt
251
Prefill tok/s
8,097.9 tok/s
Tokens de salida
2024
Notas
PureTensor lab, tensor-core: two of four RTX PRO 6000 Blackwell Max-Q cards (GPUs 2,3; 325 W limit), Threadripper PRO 9975WX, 512 GB DDR5. SGLang official Qwen4 image, pinned by digest, TP2. Target RadixArk NVFP4 (W4A4 experts) with the RadixArk DFlash2 block drafter (BF16 draft, 8-token verify width, block verification). Host P2P settings (amd_iommu=off, NVIDIA P2P registry keys). CPU in a performance window (boost on, performance governor, C2 off). Radix (prefix) cache off as in the drafter model card. A small embedding server (12 GB) stayed loaded on GPU 0. Thinking off (enable_thinking=false). Batch 1, temperature 0, streamed; median of 5 runs after 2 warmup(s). 436 verify steps, 4.64 tokens/step, 8.3 ms/step.

Decodificación especulativa

Método
DFlash
Aceptados por paso
4,64 tokens
Tasa de aceptación
52 %
Tokens de borrador
3052
Tokens aceptados
1588

Evidencia capturada

Hash del prompt (SHA-256)
a737db738bd4…
Muestra del prompt · 826 chars
[LocalMaxxing cache-bust nonce: f826599c4ac982a89b872fbed5400da5]
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 · 4,000 chars
# `logtally` — Command-Line Log Aggregator

## Implementation

```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 the 'exclusive' /
    numpy-style linear-interpolation method.

    For a sorted array of *n* values the rank is:
        rank = p/100 * (n + 1)
    We then linearly interpolate between the two surrounding values.
    Returns None when the dataset is empty.
    """
    n = len(sorted_data)
    if n == 0:
        return None
    if n == 1:
        return sorted_data[0]

    rank = p / 100.0 * (n + 1)          # 1-based virtual rank

    if rank <= 1:
        return sorted_data[0]
    if rank >= n:
        return sorted_data[-1]

    lo = int(math.floor(rank)) - 1       # 0-based index of lower neighbour
    hi = lo + 1
    frac = rank - math.floor(rank)
    return sorted_data[lo] + frac * (sorted_data[hi] - sorted_data[lo])


# ---------------------------------------------------------------------------
# Record parsing
# ---------------------------------------------------------------------------

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


def parse_timestamp(raw: str) -> datetime:
    """Parse an ISO-8601 string into a timezone-aware datetime (UTC)."""
    # Replace trailing Z with +00:00 for fromisoformat compatibility
    # (Python <3.11 doesn't accept 'Z').
    if raw.endswith("Z") or raw.endswith("z"):
        raw = raw[:-1] + "+00:00"
    dt = datetime.fromisoformat(raw)
    if dt.tzinfo is None:
        dt = dt.replace(tzinfo=timezone.utc)
    return dt


def parse_record(line: str) -> dict | None:
    """Return a normalised 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 ---------------------------------------------------
    try:
        ts = parse_timestamp(obj["ts"])
    except (KeyError, TypeError, ValueError):
        return None

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

    service = obj.get("service")
    if not isinstance(service, str) or not service:
        return None

    # --- optional latency --------------------------------------------------
    latency = obj.get("latency_ms")
    if latency is not None:
        try:
            latency = float(latency)
            if math.isnan(latency) or math.isinf(latency):
                latency = None
        except (TypeError, ValueError):
            latency = None

    return {
        "ts": ts,
        "level": level.upper(),
        "service": service,
        "latency_ms": latency,
    }


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

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

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

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

    def report(self) -> str:
        lines: list[str] = []
        lines.append(f"  Levels:")
        for lvl in ("DEBUG", "INFO", "WARN", "ERROR"):
            count = self.level_counts.get(lvl, 0)
            lines.append(f"    {lvl:<6} {count}")

        n = len(self.latencies

Más ejecuciones de este modelo en este hardware