速度テスト
DeepSeek-V4.1-Flash-1017
RTX PRO 6000 Blackwell Max-Q Workstation Edition 96GB ×4 · vllm · v0.1.dev21836+g6d66eed35 · FP8
puretensor検証済み2026/10/25
デコード
596tok/s
プリフィル
11.5ktok/s
最初のトークンまでの時間
233ms
合計
1.3ktok/s
ピーク VRAM
—
コンテキスト長
1024K
KV 深度
0
バッチサイズ
1
同時実行数
1
消費電力
—
検証
未検証 — 実験的な結果
検証済みの実行は標準テストプロンプトを使い、結果を確認できるだけのデータを記録しています。
- The run did not use one of the standard test prompts.
起動コマンド
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.
モデル
- GPU
- RTX PRO 6000 Blackwell Max-Q Workstation Edition
- 数
- 4
- VRAM
- 96 GB
- OS
- Ubuntu 26.04.1 LTS
エンジン
- エンジン
- vllm
- バージョン
- 0.1.dev21836+g6d66eed35
- Build
- fraserprice/DeepSeek-4.1-Flash-1017-BRRR@0bc4dbd0 on ghcr.io/local-inference-lab/vllm@sha256:376745af9ebffe0ecb3a9b7ee3d2040027834e58e3248898e52487255f33125a
- Commit
- 6d66eed35
- 量子化
- FP8
- バックエンド
- cuda
- TP
- 4
- KVキャッシュ
- fp8
- GPUメモリ使用率
- 0.96
- プレフィックスキャッシュ
- はい
- チャンク化プリフィル
- はい
- プリフィルチャンク
- 4096
- 最大実行シーケンス数
- 16
- Attn
- B12X
- Spec decode
- 有効
実行設定
- コンテキスト
- 1,048,576 トークン
- 深度
- 0 トークン
- バッチサイズ
- 1
- プロンプトトークン
- 2675
- プリフィル tok/s
- 11.5K tok/s
- 出力トークン
- 2048
- リビジョン
- 1bae0e10
- メモ
- 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. Our production seat (served as hal-resident), idle apart from this benchmark. 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). 378 verify steps, 5.42 tokens/step, 9.1 ms/step.
投機的デコード
- 手法
- dspark
- ステップあたりの採択数
- 5.42 トークン
- 採択率
- 63%
- ドラフトトークン
- 2,646
- 採択トークン
- 1,672
記録された証跡
- プロンプトハッシュ (SHA-256)
- 5a6b7bc1cbbc…
プロンプトサンプル · 2,000 chars
[LocalMaxxing cache-bust nonce: a5b00d0551e85291ef87b7484d74888c]
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出力サンプル · 4,000 chars
# Payment Webhook Handler — Hardened Module
Below is a complete rewrite. It's split into a signature module, a schema module, a dispatcher, the FastAPI route, the SQL, a pytest test, and an alerting checklist.
---
## 1. `webhooks/signature.py` — HMAC verification
```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 SignatureConfig:
secret: bytes
tolerance_seconds: int = 300 # 5 minutes
def _parse_header(header: str) -> tuple[int, str]:
"""
Parse a header of the form ``t=<unix_ts>,v1=<hex_digest>``.
Returns (timestamp, hex_digest). Raises SignatureError on malformed input.
"""
parts: dict[str, str] = {}
for chunk in header.split(","):
if "=" not in chunk:
raise SignatureError("malformed signature header")
key, _, value = chunk.partition("=")
parts[key.strip()] = value.strip()
try:
ts = int(parts["t"])
digest = parts["v1"]
except (KeyError, ValueError) as exc:
raise SignatureError("signature header missing t or v1") from exc
if not digest:
raise SignatureError("empty signature digest")
return ts, digest
def verify_signature(
*,
raw_body: bytes,
header: str | None,
config: SignatureConfig,
now: int | None = None,
) -> None:
"""
Verify an HMAC-SHA256 signature over ``<timestamp>.<raw_body>``.
Raises SignatureError on any failure. Returns None on success.
"""
if not header:
raise SignatureError("missing signature header")
ts, provided_digest = _parse_header(header)
current = now if now is not None else int(time.time())
if abs(current - ts) > config.tolerance_seconds:
raise SignatureError("signature timestamp outside tolerance window")
signed_payload = f"{ts}.".encode("utf-8") + raw_body
expected_digest = hmac.new(
config.secret, signed_payload, hashlib.sha256
).hexdigest()
# constant-time comparison
if not hmac.compare_digest(expected_digest, provided_digest):
raise SignatureError("signature mismatch")
```
---
## 2. `webhooks/schemas.py` — Pydantic models
```python
from __future__ import annotations
from typing import Any, Literal
from pydantic import BaseModel, Field
class InvoicePaidData(BaseModel):
id: str = Field(min_length=1)
amount: int = Field(ge=0)
class WebhookEvent(BaseModel):
id: str = Field(min_length=1)
type: str
data: dict[str, Any]
class InvoicePaidEvent(WebhookEvent):
type: Literal["invoice.paid"]
data: InvoicePaidData # type: ignore[assignment]
```
---
## 3. `webhooks/dispatcher.py` — registry-based dispatch
```python
from __future__ import annotations
from collections.abc import Awaitable, Callable
from typing import Any
import asyncpg
from .schemas import InvoicePaidEvent, WebhookEvent
Handler = Callable[[asyncpg.Pool, WebhookEvent], Awaitable[None]]
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,
)
HANDLERS: dict[str, Handler] = {
"invoice.paid": _handle_invoice_paid,
}
def get_handler(event_type: str) -> Handler | None:
return HANDLERS.get(event_type)
```
---
## 4. `webhooks/router.py` — the FastAPI route
```python
from __future__ import annotations
import json
import logging
from typing import Any
import asyncpg
from fastapi import APIRouter, Header, HTTPException, Request, status
from pydantic import ValidationError
from .dispatcher import get_handler
from .schemas import WebhookEvent
from .signatureこのハードウェアでのこのモデルの他の実行
- 760tok/svllm · v0.1.dev21836+g6d66eed35 · FP8コンテキスト 32K · 深度 0 · バッチ 1puretensor · 2026/11/25
- 753tok/svllm · v0.1.dev21836+g6d66eed35 · FP8コンテキスト 32K · 深度 0 · バッチ 1puretensor · 2026/11/25
- 713tok/svllm · FP8コンテキスト 512K · 深度 0 · バッチ 1fraserprice · 2026/10/22
- 695tok/svllm · v0.1.dev21836+g6d66eed35 · FP8コンテキスト 1024K · 深度 0 · バッチ 1puretensor · 2026/11/25
- 695tok/svllm · FP8コンテキスト 512K · 深度 0 · バッチ 1fraserprice · 2026/10/22
- 684tok/svllm · FP8コンテキスト 512K · 深度 0 · バッチ 1fraserprice · 2026/10/22
- 681tok/svllm · FP8コンテキスト 512K · 深度 0 · バッチ 1fraserprice · 2026/10/22
- 679tok/svllm · FP8コンテキスト 512K · 深度 0 · バッチ 1fraserprice · 2026/10/22
- 677tok/svllm · FP8コンテキスト 512K · 深度 0 · バッチ 1fraserprice · 2026/10/22
- 672tok/svllm · v0.1.dev21836+g6d66eed35 · FP8コンテキスト 32K · 深度 0 · バッチ 1puretensor · 2026/11/25
