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
695tok/s
Prefill
11.8ktok/s
Waktu ke token pertama
162ms
Total
1.6ktok/s
VRAM puncak
—
Panjang konteks
1024K
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 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
- 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
- 16
- Attn
- B12X
- Dekode spesifikasi
- aktif
Jalankan konfigurasi
- Konteks
- Token 1.048.576
- Kedalaman
- Token 0
- Ukuran kumpulan
- 1
- Token yang cepat
- 1914
- Isi awal tok/s
- 11.8K tok/s
- Token keluaran
- 1348
- Revisi
- 1bae0e10
- Catatan
- 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) and, new since 2026-11-25, NVIDIA PCIe relaxed ordering (NVreg_EnablePCIERelaxedOrderingMode=1). Decode step about 8.8 ms here; the same seat measured 8.8 to 9.0 ms on a quiet host before the change, so treat the setting as neutral to slightly positive for this engine. CPU in a performance window (boost on, performance governor, C2 off). Measured 2026-11-25, median of 5 after 2 warm-ups, temperature 0, cold prompts. 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), warm, idle apart from this benchmark. Thinking off. Prompt: Fraser Price's own BRRR bench coding prompt (the webhook task x7 plus his instruction to output code only, ~1.9K tokens, prompt sha256 293bb63a before our cache-bust nonce), not a LocalMaxxing canonical prompt; output runs to natural EOS. Code-only output is what raises acceptance to about 6 tokens/step. Best of 3 back-to-back passes (medians 695/677/680 tok/s); 8.9 ms per step at about 6.2 tokens/step. Batch 1, temperature 0, streamed; median of 5 runs after 2 warmup(s). 218 verify steps, 6.18 tokens/step, 8.9 ms/step.
Decoding spekulatif
- Metode
- dspark
- Diterima per langkah
- 6,18 token
- Tingkat penerimaan
- 74%
- Token draf
- 1.526
- Token diterima
- 1.130
Bukti terekam
- Hash prompt (SHA-256)
- 293bb63ab8a4…
Sampel prompt · 2,000 chars
[LocalMaxxing cache-bust nonce: 978cde7c71bad24de15a7ce0026d5c20]
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, returning a single python file: 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.
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, returning a single python file: verify the signature with HMAC-SHA256 over the raw body and reject stale timSampel output · 4,000 chars
```python
import hashlib
import hmac
import os
import time
from typing import Any, Awaitable, Callable, Dict, Optional
import asyncpg
from fastapi import FastAPI, Header, HTTPException, Request, Response
from pydantic import BaseModel, Field, ValidationError
WEBHOOK_SECRET: bytes = os.environ.get("WEBHOOK_SECRET", "test_secret").encode()
MAX_SKEW_SECONDS: int = 300
app = FastAPI()
pool: asyncpg.Pool = None # type: ignore[assignment]
class InvoiceData(BaseModel):
id: str
amount: int
class EventPayload(BaseModel):
id: str
type: str
created: int
data: Dict[str, Any]
class InvoicePaidData(BaseModel):
id: str
amount: int
class InvoicePaidEvent(BaseModel):
id: str
type: str
created: int
data: InvoicePaidData
Handler = Callable[[asyncpg.Pool, EventPayload], Awaitable[None]]
def verify_signature(raw_body: bytes, signature_header: Optional[str], timestamp_header: Optional[str]) -> None:
if not signature_header or not timestamp_header:
raise HTTPException(status_code=401, detail="missing signature headers")
try:
timestamp = int(timestamp_header)
except ValueError as exc:
raise HTTPException(status_code=401, detail="invalid timestamp") from exc
now = int(time.time())
if abs(now - timestamp) > MAX_SKEW_SECONDS:
raise HTTPException(status_code=401, detail="stale timestamp")
signed_payload = f"{timestamp}.".encode() + raw_body
expected = hmac.new(WEBHOOK_SECRET, signed_payload, hashlib.sha256).hexdigest()
provided = signature_header.strip()
if provided.startswith("sha256="):
provided = provided[len("sha256="):]
if not hmac.compare_digest(expected, provided):
raise HTTPException(status_code=401, detail="invalid signature")
async def handle_invoice_paid(pool: asyncpg.Pool, event: EventPayload) -> None:
data = InvoicePaidData.model_validate(event.data)
await pool.execute(
"INSERT INTO invoices (id, amount) VALUES ($1, $2) ON CONFLICT (id) DO NOTHING",
data.id,
data.amount,
)
EVENT_REGISTRY: Dict[str, Handler] = {
"invoice.paid": handle_invoice_paid,
}
async def record_event(pool: asyncpg.Pool, event_id: str, event_type: str) -> bool:
row = await pool.fetchrow(
"INSERT INTO webhook_events (event_id, event_type) VALUES ($1, $2) "
"ON CONFLICT (event_id) DO NOTHING RETURNING event_id",
event_id,
event_type,
)
return row is not None
@app.post("/webhooks/payments")
async def payments_webhook(
request: Request,
x_signature: Optional[str] = Header(default=None, alias="X-Signature"),
x_timestamp: Optional[str] = Header(default=None, alias="X-Timestamp"),
) -> Response:
raw_body = await request.body()
verify_signature(raw_body, x_signature, x_timestamp)
try:
event = EventPayload.model_validate_json(raw_body)
except ValidationError as exc:
raise HTTPException(status_code=400, detail="invalid payload") from exc
inserted = await record_event(pool, event.id, event.type)
if not inserted:
return Response(status_code=200)
handler = EVENT_REGISTRY.get(event.type)
if handler is None:
return Response(status_code=200)
await handler(pool, event)
return Response(status_code=200)
IDEMPOTENCY_SQL = """
CREATE TABLE IF NOT EXISTS webhook_events (
event_id TEXT PRIMARY KEY,
event_type TEXT NOT NULL,
received_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE TABLE IF NOT EXISTS invoices (
id TEXT PRIMARY KEY,
amount BIGINT NOT NULL
);
"""
def test_verify_signature_accepts_valid() -> None:
body = b'{"id":"evt_1","type":"invoice.paid","created":1700000000,"data":{"id":"in_1","amount":100}}'
ts = str(int(time.time()))
sig = hmac.new(WEBHOOK_SECRET, f"{ts}.".encode() + body, hashlib.sha256).hexdigest()
verify_signature(body, f"sha256={sig}", ts)
def test_verify_signature_rejects_tampered_body() -> None:
bodRun lain dari model ini di hardware ini
- 760tok/svllm · v0.1.dev21836+g6d66eed35 · FP8Konteks 32K · kedalaman 0 · batch 1puretensor · 25 Nov 2026
- 753tok/svllm · v0.1.dev21836+g6d66eed35 · FP8Konteks 32K · kedalaman 0 · batch 1puretensor · 25 Nov 2026
- 713tok/svllm · FP8Konteks 512K · kedalaman 0 · batch 1fraserprice · 22 Okt 2026
- 695tok/svllm · FP8Konteks 512K · kedalaman 0 · batch 1fraserprice · 22 Okt 2026
- 684tok/svllm · FP8Konteks 512K · kedalaman 0 · batch 1fraserprice · 22 Okt 2026
- 681tok/svllm · FP8Konteks 512K · kedalaman 0 · batch 1fraserprice · 22 Okt 2026
- 679tok/svllm · FP8Konteks 512K · kedalaman 0 · batch 1fraserprice · 22 Okt 2026
- 677tok/svllm · FP8Konteks 512K · kedalaman 0 · batch 1fraserprice · 22 Okt 2026
- 672tok/svllm · v0.1.dev21836+g6d66eed35 · FP8Konteks 32K · kedalaman 0 · batch 1puretensor · 25 Nov 2026
- 670tok/svllm · FP8Konteks 512K · kedalaman 0 · batch 1fraserprice · 21 Okt 2026
