Snelheidstest
DeepSeek-V4.1-Flash-1017
RTX PRO 6000 Blackwell Max-Q Workstation Edition 96GB ×4 · vllm · v0.1.dev21836+g6d66eed35 · FP8
puretensorGeverifieerd31 okt 2026
Decode
597tok/s
Prefill
15.8ktok/s
Tijd tot eerste token
169ms
Totaal
1.3ktok/s
Piek-VRAM
—
Contextlengte
1024K
KV-diepte
0
Batchgrootte
1
Gelijktijdigheid
1
Stroomverbruik
—
Verificatie
Niet geverifieerd — experimenteel resultaat
Geverifieerde runs gebruiken een standaard testprompt en leggen genoeg gegevens vast om het resultaat te controleren.
- The run did not use one of the standard test prompts.
Startcommando
vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017 --served-model-name hal-resident --host 0.0.0.0 --port 8640 --tensor-parallel-size 4 --gpu-memory-utilization 0.96 --max-model-len 1048576 --max-num-seqs 16 --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 128 --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
- Aantal
- 4
- VRAM
- 96 GB
- OS
- Ubuntu 26.04.1 LTS
Engine
- Engine
- vllm
- Versie
- 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
- Backend
- cuda
- TP
- 4
- KV cache
- fp8
- GPU mem util
- 0.96
- Prefix caching
- ja
- Chunked prefill
- ja
- Prefill chunk
- 4096
- Max running seqs
- 16
- Attn
- B12X
- Spec decode
- ingeschakeld
Run config
- Context
- 1.048.576 tokens
- Diepte
- 0 tokens
- Batchgrootte
- 1
- Prompttokens
- 2674
- Prefill tok/s
- 15.8K tok/s
- Outputtokens
- 2048
- Revisie
- 1bae0e10
- Notities
- PureTensor lab, tensor-core: 4x RTX PRO 6000 Blackwell Max-Q (325 W) on PCIe 5.0 x16, Threadripper PRO 9975WX, 512 GB DDR5. Host P2P settings (amd_iommu=off iommu=off, NVIDIA P2P registry keys). CPU in a performance window (boost on, performance governor, C2 off). Measured 2026-10-31 in a same-day A/B against nvidia/DeepSeek-V4.1-Flash-1017-NVFP4. 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; full credit to Fraser Price and Local Inference Lab. Engram tables on NVMe via io_uring (ext4 on md RAID0), projection TP. DSpark K7, adaptive verification OFF (fixed K). Our production seat (hal-resident), idle apart from this benchmark. Thinking off. Batch 1, temperature 0, streamed; median of 5 runs after 2 warmup(s). 389 verify steps, 5.28 tokens/step, 8.8 ms/step.
Speculatieve decodering
- Methode
- dspark
- Geaccepteerd per stap
- 5,28 tokens
- Acceptatiegraad
- 61%
- Drafttokens
- 2.723
- Geaccepteerde tokens
- 1.664
Vastgelegd bewijs
- Prompt-hash (SHA-256)
- 5a6b7bc1cbbc…
Promptvoorbeeld · 2,000 chars
[LocalMaxxing cache-bust nonce: 223715c0966933176cc3165f5d7a504f]
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 bodUitvoervoorbeeld · 4,000 chars
# Payment Webhook Handler — Hardened Module
Below is a complete rewrite. It's split into a small package so the signature logic is testable without spinning up FastAPI or Postgres.
## `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 _compute_expected(secret: bytes, timestamp: str, body: bytes) -> str:
# Provider convention: HMAC over "<timestamp>.<raw_body>"
mac = hmac.new(secret, timestamp.encode("ascii") + b"." + body, hashlib.sha256)
return mac.hexdigest()
def verify_signature(
*,
secret: bytes,
body: bytes,
headers: SignatureHeaders,
tolerance_seconds: int = 300,
now: float | None = None,
) -> None:
"""Verify HMAC-SHA256 signature and reject stale timestamps.
Raises SignatureError on any failure. Uses constant-time comparison.
"""
if not headers.timestamp or not headers.signature:
raise SignatureError("missing signature headers")
try:
ts = int(headers.timestamp)
except ValueError as exc:
raise SignatureError("timestamp is not an integer") from exc
current = time.time() if now is None else now
if abs(current - ts) > tolerance_seconds:
raise SignatureError("timestamp outside tolerance window")
expected = _compute_expected(secret, headers.timestamp, body)
# compare_digest is constant-time; both sides must be bytes/str of same type
if not hmac.compare_digest(expected, headers.signature):
raise SignatureError("signature mismatch")
```
## `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 InvoicePaidEvent(BaseModel):
id: str
type: Literal["invoice.paid"]
data: InvoicePaidData
class UnknownEvent(BaseModel):
"""Fallback for event types we don't model. We still ack them with 2xx."""
id: str
type: str
data: dict[str, Any] = Field(default_factory=dict)
```
## `webhooks/registry.py`
```python
from __future__ import annotations
from collections.abc import Awaitable, Callable
from typing import Any
import asyncpg
from .models import InvoicePaidEvent
Handler = Callable[[asyncpg.Connection, Any], Awaitable[None]]
async def _handle_invoice_paid(
conn: asyncpg.Connection, event: InvoicePaidEvent
) -> None:
await conn.execute(
"""
INSERT INTO invoices (id, amount)
VALUES ($1, $2)
ON CONFLICT (id) DO NOTHING
""",
event.data.id,
event.data.amount,
)
# Registry: event type -> (pydantic model, handler)
REGISTRY: dict[str, tuple[type, Handler]] = {
"invoice.paid": (InvoicePaidEvent, _handle_invoice_paid),
}
```
## `webhooks/schema.sql`
```sql
-- Idempotency table: one row per provider event id.
CREATE TABLE IF NOT EXISTS webhook_events (
event_id TEXT PRIMARY KEY,
event_type TEXT NOT NULL,
received_at TIMESTAMPTZ NOT NULL DEFAULT now(),
processed_at TIMESTAMPTZ
);
-- Invoices: idempotent on the invoice id itself as a second line of defense.
CREATE TABLE IF NOT EXISTS invoices (
id TEXT PRIMARY KEY,
amount BIGINT NOT NULL CHECK (amount >= 0)
);
```
## `webhooks/router.py`
```python
from __future__ import annotations
import logging
from typing import Any
import asyncpg
from fastapi import APIRouter, Header, HTTPException, Request, status
from pydantic import ValidationError
from .models import UnknownEvent
from .registry import REGISTRY
from .signature import SignatureError, SignatureHeaders, verify_signature
logger = logging.getLogger(__name__)
router = APIRouter()
def _get_secret() -> bytesMeer runs van dit model op deze hardware
- 760tok/svllm · v0.1.dev21836+g6d66eed35 · FP832K context · 0 diepte · batch 1puretensor · 25 nov 2026
- 753tok/svllm · v0.1.dev21836+g6d66eed35 · FP832K context · 0 diepte · batch 1puretensor · 25 nov 2026
- 713tok/svllm · FP8512K context · 0 diepte · batch 1fraserprice · 22 okt 2026
- 695tok/svllm · v0.1.dev21836+g6d66eed35 · FP81024K context · 0 diepte · batch 1puretensor · 25 nov 2026
- 695tok/svllm · FP8512K context · 0 diepte · batch 1fraserprice · 22 okt 2026
- 684tok/svllm · FP8512K context · 0 diepte · batch 1fraserprice · 22 okt 2026
- 681tok/svllm · FP8512K context · 0 diepte · batch 1fraserprice · 22 okt 2026
- 679tok/svllm · FP8512K context · 0 diepte · batch 1fraserprice · 22 okt 2026
- 677tok/svllm · FP8512K context · 0 diepte · batch 1fraserprice · 22 okt 2026
- 672tok/svllm · v0.1.dev21836+g6d66eed35 · FP832K context · 0 diepte · batch 1puretensor · 25 nov 2026
