Hız testleriModellerKarşılaştırmalı DeğerlendirmelerKiralıklarRaporlarDonanımDecode hesaplayıcıKuruluşlarProAPI DokümanlarGöndermek
Dil
Actual Computer — Every computer, one endpoint

Hız testi

DeepSeek-V4.1-Flash-1017

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

puretensorDoğrulandı25 Eki 2026

Decode

610tok/s

Prefill

15.4ktok/s

İlk token süresi

174ms

Toplam

1.3ktok/s

En yüksek VRAM

—

Bağlam uzunluğu

32K

KV derinliği

0

Batch boyutu

1

Eşzamanlılık

1

Güç tüketimi

—

Doğrulama

Doğrulanmadı — deneysel sonuç

Doğrulanmış çalıştırmalar standart bir test istemi kullanır ve sonucu kontrol etmeye yetecek veriyi kaydeder.

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

Komutu başlat

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.

Donanım

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

Motor

Motor
vllm
Sürüm
0.1.dev21836+g6d66eed35
Build
fraserprice/DeepSeek-4.1-Flash-1017-BRRR@0bc4dbd0 on ghcr.io/local-inference-lab/vllm@sha256:376745af9ebffe0ecb3a9b7ee3d2040027834e58e3248898e52487255f33125a
Commit
6d66eed35
miktar
FP8
Arka uç
cuda
TP
4
KV önbellek
fp8
Kullandığım GPU
0.96
Önek önbelleğe alma
Evet
Parçalı ön dolum
Evet
Parçayı önceden doldur
4096
Maksimum çalışma sırası
1
Attn
B12X
Özel kod çözme
etkinleştirilmiş

Yapılandırmayı çalıştır

Bağlam
32.768 jetonları
Derinlik
0 jetonları
Parti boyutu
1
İstem jetonları
2676
tok/s'yi önceden doldurun
15.4K tok/s
Çıkış jetonları
2048
Revizyon
1bae0e10
Notlar
PureTensor lab, tensor-core: 4x RTX PRO 6000 Blackwell Max-Q (325 W) on PCIe 5.0 x16, Threadripper PRO 9975WX, 512 GB DDR5. 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; base image pinned by digest above; full credit to Fraser Price and Local Inference Lab. Engram tables on NVMe via io_uring (ext4 on md RAID0 of 3x Samsung 9100 PRO 4TB), projection TP. DSpark K7, adaptive verification OFF (fixed K, so the consistency check applies). Host P2P settings (amd_iommu=off iommu=off, NVIDIA P2P registry keys). CPU in a performance window (boost on, performance governor, C2 off). Thinking off. A benchmark arm, not the production seat: 32K context, 1 slot, CUDA graphs captured up to 8 tokens. Prompt: fraserprice webhook coding prompt (x10, ~2.7K tokens, sha 5a6b7bc1), not a LocalMaxxing canonical prompt. Step math: decode = tokens/step / step time; ~9.0-9.1 ms per step here vs ~11.3-12.2 ms on stock LIL b12x on the same box (our 2026-10-21 runs). Batch 1, temperature 0, streamed; median of 5 runs after 2 warmup(s). 371 verify steps, 5.53 tokens/step, 9.0 ms/step.

Spekülatif decoding

Yöntem
dspark
Adım başına kabul edilen
5,53 token
Kabul oranı
%65
Taslak token'lar
2.597
Kabul edilen token'lar
1.679

Kaydedilen kanıtlar

İstem karması (SHA-256)
5a6b7bc1cbbc…
İstem örneği · 2,000 chars
[LocalMaxxing cache-bust nonce: 0d2778d372a66994511cbad73f9d0b03]
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
Çıktı örneği · 4,000 chars
# Webhook Handler Module

Below is a complete rewrite split into logical pieces: signature verification, models, dispatch registry, handler, SQL, tests, and alerting.

## 1. Signature verification (`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 SignatureHeaders:
    timestamp: str
    signature: str


def parse_signature_header(raw: str | None) -> SignatureHeaders:
    """
    Provider format: `t=<unix_ts>,v1=<hex_hmac>`.
    Reject anything that doesn't match exactly.
    """
    if not raw:
        raise SignatureError("missing X-Signature header")
    parts: dict[str, str] = {}
    for chunk in raw.split(","):
        if "=" not in chunk:
            raise SignatureError("malformed X-Signature header")
        key, _, value = chunk.partition("=")
        parts[key.strip()] = value.strip()
    if "t" not in parts or "v1" not in parts:
        raise SignatureError("X-Signature missing t or v1 component")
    return SignatureHeaders(timestamp=parts["t"], signature=parts["v1"])


def verify_signature(
    *,
    raw_body: bytes,
    header: str | None,
    secret: bytes,
    tolerance_seconds: int = 300,
    now: float | None = None,
) -> None:
    """
    Verify HMAC-SHA256 over `f"{timestamp}.{raw_body}"`.
    Raises SignatureError on any failure. Constant-time comparison.
    """
    parsed = parse_signature_header(header)

    try:
        ts = int(parsed.timestamp)
    except ValueError as exc:
        raise SignatureError("non-integer timestamp") from exc

    current = time.time() if now is None else now
    if abs(current - ts) > tolerance_seconds:
        raise SignatureError("timestamp outside tolerance window")

    signed_payload = f"{parsed.timestamp}.".encode() + raw_body
    expected = hmac.new(secret, signed_payload, hashlib.sha256).hexdigest()

    if not hmac.compare_digest(expected, parsed.signature):
        raise SignatureError("signature mismatch")
```

## 2. Pydantic models (`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  # type: ignore[assignment]


class WebhookResponse(BaseModel):
    status: Literal["ok", "duplicate", "ignored"]
```

## 3. Dispatch registry (`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]]

_REGISTRY: dict[str, Handler] = {}


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


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

## 4. 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())
    await pool.execute(
        "INSERT INTO invoices (id, amount) VALUES ($1, $2) "
        "ON CONFLICT (id) DO NOTHING",
        parsed.data.id,
        parsed.data.amount,
    )
```

## 5. Route (`webhooks/router.py`)

```python
from __future__ import annotations

import logging
from typing import Annotated

import asyncpg
from fastapi im

Bu modelin bu donanımdaki diğer çalıştırmaları