Uji kecepatanModelTolok UkurSewaLaporanHardwareKalkulator decodeOrganisasiProDokumen APIKirim
Bahasa
Actual Computer — Every computer, one endpoint

Uji kecepatan

DeepSeek-V4.1-Flash-1017

RTX PRO 6000 Blackwell Max-Q Workstation Edition 96GB ×4 · vllm · v0.1.dev21836+g6d66eed35 · FP8

puretensorTerverifikasi25 Nov 2026

Decode

672tok/s

Prefill

15.5ktok/s

Waktu ke token pertama

173ms

Total

1.5ktok/s

VRAM puncak

—

Panjang konteks

32K

Kedalaman KV

0

Ukuran batch

1

Konkurensi

1

Konsumsi daya

—

Verifikasi

Belum terverifikasi — hasil eksperimental

Run terverifikasi memakai prompt uji standar dan mencatat cukup data untuk memeriksa hasilnya.

  • The run did not use one of the standard test prompts.

Luncurkan perintah

vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017 --served-model-name brrr-test --host 0.0.0.0 --port 8641 --tensor-parallel-size 4 --gpu-memory-utilization 0.96 --max-model-len 32768 --max-num-seqs 1 --reasoning-parser deepseek_v41 --enable-auto-tool-choice --tool-call-parser deepseek_v41 --max-num-batched-tokens 4096 --attention-backend B12X --moe-backend b12x --kv-cache-dtype fp8 --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic","rejection_sample_method":"block","enable_adaptive_verification":false,"attention_backend":"B12X","moe_backend":"b12x"}' --override-generation-config '{"temperature":1.0,"top_p":1.0}' --tokenizer-mode deepseek_v41 --mm-processor-cache-gb 1 --linear-backend b12x --engram-config '{"projection_tp":true}' --block-size 256 --swa-block-size 128 --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' --max-cudagraph-capture-size 8 --async-scheduling --enable-scale-out --enable-prompt-tokens-details --default-chat-template-kwargs '{"thinking":false}'

Theoretical memory ceiling

The model doesn't appear to fit in this hardware's recorded memory.

Hardware

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

Engine

Engine
vllm
Versi
0.1.dev21836+g6d66eed35
Build
fraserprice/DeepSeek-4.1-Flash-1017-BRRR@0bc4dbd0 on ghcr.io/local-inference-lab/vllm@sha256:376745af9ebffe0ecb3a9b7ee3d2040027834e58e3248898e52487255f33125a
Commit
6d66eed35
Quant
FP8
Bagian belakang
cuda
TP
4
Tembolok KV
fp8
utilitas mem GPU
0.96
Cache awalan
ya
Isi awal yang sudah dipotong
ya
Potongan yang sudah diisi sebelumnya
4096
Seq run maksimal
1
Attn
B12X
Dekode spesifikasi
aktif

Jalankan konfigurasi

Konteks
Token 32.768
Kedalaman
Token 0
Ukuran kumpulan
1
Token yang cepat
2681
Isi awal tok/s
15.5K tok/s
Token keluaran
2048
Revisi
1bae0e10
Catatan
PureTensor lab, tensor-core: 4x RTX PRO 6000 Blackwell Max-Q on PCIe 5.0 x16, Threadripper PRO 9975WX, 512 GB DDR5. OVERCLOCKED: GPU clock offsets core +450 MHz, memory +5250 MHz on all four cards (the driver's own NVML clock-offset control), stock 325 W power cap, GPU fans at 100%, open chassis in a cold room, 56 to 69 C under load. A second window the same evening; the same arm at stock clocks measured 690.9 tok/s (8.79 ms per step) on a code-only prompt, +225/+4500 measured 754 (8.08 ms), and this setting 7.98 ms per step. Memory +6000 was no faster than +5250. No Xid, request-shape probe unchanged. A benchmark arm, not our production seat: 32K context, 1 slot, CUDA graphs captured up to 8 tokens. Recipe: fraserprice/DeepSeek-4.1-Flash-1017-BRRR (HF rev 0bc4dbd0, Apache-2.0; fused decode kernels on LIL b12x vLLM), built unmodified from its Dockerfile; full credit to Fraser Price and Local Inference Lab. Engram tables on NVMe via io_uring, projection TP. DSpark K7, adaptive verification OFF (fixed K). Host: amd_iommu=off iommu=off, NVIDIA P2P registry keys, PCIe relaxed ordering on. CPU in a performance window (boost on). Thinking off. Canonical LocalMaxxing prompt (code-v1) or fraserprice's webhook prompt x10 (2.7K tokens, sha 5a6b7bc1, not canonical), as the run's prompt shows; cold, cache-bust nonce. Batch 1, temperature 0, streamed; median of 5 runs after 2 warmup(s). 383 verify steps, 5.34 tokens/step, 8.0 ms/step.

Decoding spekulatif

Metode
dspark
Diterima per langkah
5,34 token
Tingkat penerimaan
62%
Token draf
2.681
Token diterima
1.664

Bukti terekam

Hash prompt (SHA-256)
5a6b7bc1cbbc…
Sampel prompt · 2,000 chars
[LocalMaxxing cache-bust nonce: 1c9df447a1a71d8d9c0fecf4d30c78de]
I have a FastAPI service that receives webhook events from a payment provider and stores them in Postgres with asyncpg. The current handler:

```python
@app.post("/webhooks/payments")
async def payments_webhook(request: Request) -> dict[str, str]:
    payload = await request.json()
    if payload["type"] == "invoice.paid":
        await pool.execute(
            "INSERT INTO invoices (id, amount) VALUES ($1, $2)",
            payload["data"]["id"], payload["data"]["amount"],
        )
    return {"status": "ok"}
```

Problems: the `X-Signature` header is never verified, retried deliveries insert the same invoice twice, and any exception returns a 500 so the provider retries forever.

Rewrite this as a proper module: verify the signature with HMAC-SHA256 over the raw body and reject stale timestamps, make inserts idempotent on the event id, dispatch event types through a registry instead of if-chains, and return 2xx for event types we don't handle. Use pydantic models, full type hints, and no bare except. Include the SQL for the idempotency table and a pytest test for the signature check, then list the failure modes you would alert on.

I have a FastAPI service that receives webhook events from a payment provider and stores them in Postgres with asyncpg. The current handler:

```python
@app.post("/webhooks/payments")
async def payments_webhook(request: Request) -> dict[str, str]:
    payload = await request.json()
    if payload["type"] == "invoice.paid":
        await pool.execute(
            "INSERT INTO invoices (id, amount) VALUES ($1, $2)",
            payload["data"]["id"], payload["data"]["amount"],
        )
    return {"status": "ok"}
```

Problems: the `X-Signature` header is never verified, retried deliveries insert the same invoice twice, and any exception returns a 500 so the provider retries forever.

Rewrite this as a proper module: verify the signature with HMAC-SHA256 over the raw bod
Sampel output · 4,000 chars
# Payments Webhook Module

Below is a complete rewrite. It's split into a few files for clarity, but you can inline them into one module if you prefer.

## `webhooks/signature.py`

```python
from __future__ import annotations

import hashlib
import hmac
import time
from dataclasses import dataclass


class SignatureError(Exception):
    """Raised when a webhook signature is missing, malformed, stale, or invalid."""


@dataclass(frozen=True)
class SignatureParts:
    timestamp: int
    signature: str


def parse_signature_header(header: str | None) -> SignatureParts:
    """
    Parse a header of the form:  t=<unix_ts>,v1=<hex_hmac>

    Raises SignatureError on any malformed input.
    """
    if not header:
        raise SignatureError("missing signature header")

    parts: dict[str, str] = {}
    for chunk in header.split(","):
        chunk = chunk.strip()
        if not chunk or "=" not in chunk:
            raise SignatureError(f"malformed signature chunk: {chunk!r}")
        key, _, value = chunk.partition("=")
        parts[key.strip()] = value.strip()

    try:
        timestamp = int(parts["t"])
    except (KeyError, ValueError) as exc:
        raise SignatureError("missing or invalid timestamp") from exc

    signature = parts.get("v1")
    if not signature:
        raise SignatureError("missing v1 signature")

    return SignatureParts(timestamp=timestamp, signature=signature)


def compute_signature(secret: bytes, timestamp: int, body: bytes) -> str:
    """HMAC-SHA256 over `f"{timestamp}.".encode() + body`, hex-encoded."""
    signed_payload = str(timestamp).encode("ascii") + b"." + body
    return hmac.new(secret, signed_payload, hashlib.sha256).hexdigest()


def verify_signature(
    *,
    secret: bytes,
    header: str | None,
    body: bytes,
    tolerance_seconds: int = 300,
    now: int | None = None,
) -> SignatureParts:
    """
    Verify a webhook signature. Raises SignatureError on any failure.

    - Rejects timestamps outside `tolerance_seconds` of `now` (replay protection).
    - Uses `hmac.compare_digest` for constant-time comparison.
    """
    parts = parse_signature_header(header)

    current = int(time.time()) if now is None else now
    if abs(current - parts.timestamp) > tolerance_seconds:
        raise SignatureError(
            f"timestamp {parts.timestamp} outside tolerance ({tolerance_seconds}s)"
        )

    expected = compute_signature(secret, parts.timestamp, body)
    if not hmac.compare_digest(expected, parts.signature):
        raise SignatureError("signature mismatch")

    return parts
```

## `webhooks/models.py`

```python
from __future__ import annotations

from typing import Any, Literal

from pydantic import BaseModel, Field


class InvoicePaidData(BaseModel):
    id: str
    amount: int = Field(ge=0)


class WebhookEvent(BaseModel):
    id: str
    type: str
    data: dict[str, Any]


class InvoicePaidEvent(WebhookEvent):
    type: Literal["invoice.paid"]
    data: InvoicePaidData
```

## `webhooks/registry.py`

```python
from __future__ import annotations

from collections.abc import Awaitable, Callable
from typing import Any

import asyncpg

from .models import WebhookEvent

Handler = Callable[[asyncpg.Pool, WebhookEvent], Awaitable[None]]

_HANDLERS: dict[str, Handler] = {}


def register(event_type: str) -> Callable[[Handler], Handler]:
    def decorator(fn: Handler) -> Handler:
        _HANDLERS[event_type] = fn
        return fn

    return decorator


def get_handler(event_type: str) -> Handler | None:
    return _HANDLERS.get(event_type)


def registered_types() -> frozenset[str]:
    return frozenset(_HANDLERS)
```

## `webhooks/handlers.py`

```python
from __future__ import annotations

import asyncpg

from .models import InvoicePaidEvent, WebhookEvent
from .registry import register


@register("invoice.paid")
async def handle_invoice_paid(pool: asyncpg.Pool, event: WebhookEvent) -> None:
    parsed = InvoicePaidEvent.model_validate(event.model_dump())
    awa

Run lain dari model ini di hardware ini