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

Prueba de velocidad

Qwen4-35B-A3B

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

puretensorVerificado4 dic 2026Ejecución verificada

Decodificación

477tok/s

Prefill

6.2ktok/s

Tiempo hasta el primer token

40ms

Total

535tok/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 Qwen/Qwen4-35B-A3B --served-model-name Qwen/Qwen4-35B-A3B --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

2,571.0–2,580.4 tok/s

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

Includes speculative decoding: 4.77 tokens accepted per model step on average (539.5–541.5 steps/s) · measured 100.1 steps/s

18–19%

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 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
BF16
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
6,208.7 tok/s
Tokens de salida
1887
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. Full BF16 weights 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). 396 verify steps, 4.77 tokens/step, 10.0 ms/step.

Decodificación especulativa

Método
DFlash
Aceptados por paso
4,77 tokens
Tasa de aceptación
54 %
Tokens de borrador
2772
Tokens aceptados
1491

Evidencia capturada

Hash del prompt (SHA-256)
a737db738bd4…
Muestra del prompt · 826 chars
[LocalMaxxing cache-bust nonce: b4c368b5aec5f3113ef7e06867df8552]
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 linear interpolation.

    This matches the 'inclusive' method (numpy's default, R type-7).
    """
    n = len(sorted_data)
    if n == 0:
        return None
    if n == 1:
        return sorted_data[0]

    # Virtual index (0-based)
    idx = (p / 100.0) * (n - 1)
    lo = math.floor(idx)
    hi = math.ceil(idx)
    frac = idx - lo

    if lo == hi:
        return sorted_data[lo]
    return sorted_data[lo] * (1 - frac) + sorted_data[hi] * frac


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

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


def parse_record(line: str) -> dict | None:
    """Try to parse a single JSON log line.  Return a normalised dict or None."""
    try:
        obj = json.loads(line)
    except (json.JSONDecodeError, ValueError):
        return None

    if not isinstance(obj, dict):
        return None

    # Required fields
    if "ts" not in obj or "level" not in obj or "service" not in obj:
        return None

    level = obj["level"]
    if level not in VALID_LEVELS:
        return None

    # Validate timestamp
    try:
        ts = datetime.fromisoformat(obj["ts"])
        # Ensure timezone-aware for comparison
        if ts.tzinfo is None:
            ts = ts.replace(tzinfo=timezone.utc)
    except (ValueError, TypeError):
        return None

    # Optional latency
    latency = obj.get("latency_ms")
    if latency is not None:
        try:
            latency = float(latency)
        except (ValueError, TypeError):
            latency = None  # treat bad latency as missing

    return {
        "ts": ts,
        "level": level,
        "service": str(obj["service"]),
        "latency_ms": latency,
    }


# ---------------------------------------------------------------------------
# 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 report(self) -> str:
        lines: list[str] = []
        total = sum(self.level_counts.values())
        lines.append(f"  total records : {total}")
        for lvl in ("DEBUG", "INFO", "WARN", "ERROR"):
            cnt = self.level_counts.get(lvl, 0)
            lines.append(f"  {lvl:<5}        : {cnt}")

        if self.latencies:
            self.latencies.sort()
            p50 = percentile(self.latencies, 50)
            p95 = percentile(self.latencies, 95)
            lines.append(f"  latency p50    : {p50:.2f} ms")
            lines.append(f"  latency p95    : {p95:.2f} ms")
        else:
            lines.append("  latency         : (no data)")

        return "\n".join(lines)


# ---------------------------------------------------------------------------
# Main
# ---------------------------------------------------------------------------

def main() -> None:
    parser = argparse.ArgumentParser(
        prog="logtally",
        description="Aggregate newline-delimited JSON log records from stdin.",
    )
    pa

Más ejecuciones de este modelo en este hardware