速度テスト
gemma-4-31B-it
RTX PRO 6000 Blackwell Workstation Edition 96GB · vllm · v0.33.0rc1.dev320+g335dd77b0 · BF16
puretensor検証済み2026/11/01
デコード
98.4tok/s
プリフィル
4.5ktok/s
最初のトークンまでの時間
628ms
合計
348tok/s
ピーク VRAM
—
コンテキスト長
32K
KV 深度
0
バッチサイズ
1
同時実行数
1
消費電力
—
検証
未検証 — 実験的な結果
検証済みの実行は標準テストプロンプトを使い、結果を確認できるだけのデータを記録しています。
- The run did not use one of the standard test prompts.
起動コマンド
docker run -d --name maxxloop-g1 --gpus '"device=1"' --ipc=host -p 127.0.0.1:8663:8000 -v /mnt/storage/models/hf:/models:ro -v /mnt/storage/maxxloop/cache-g1:/root/.cache vllm/vllm-openai:nightly-335dd77b09161c5d63139b4e7ae51bb9928305b1 --model /models/google__gemma-4-31B-it --served-model-name gemma-4-31b-it --trust-remote-code --max-model-len 32768 --gpu-memory-utilization 0.90 --language-model-only --speculative-config '{"model":"/models/google__gemma-4-31B-it-assistant","num_speculative_tokens":6}'Theoretical memory ceiling
26.6–27.2 tok/s
1,792 GB/s memory bandwidth (spec sheet) · 66.00 GB model weights · 16-bit KV cache · 1–2,815 tokens of context
363–370%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from google/gemma-4-31B-it; size from BF16 estimate. Hardware source · Open calculator
モデル
- GPU
- RTX PRO 6000 Blackwell Workstation Edition
- 数
- 1
- VRAM
- 96 GB
- OS
- Ubuntu 24.04.5 LTS
エンジン
- エンジン
- vllm
- バージョン
- 0.33.0rc1.dev320+g335dd77b0
- Build
- vllm/vllm-openai@sha256:66f19872e759e7d74f0729c4c7068eaaf71bc8b35f613573c36062a81be8cb3d
- Commit
- 335dd77b0
- 量子化
- BF16
- バックエンド
- cuda
- TP
- 1
- KVキャッシュ
- auto
- GPUメモリ使用率
- 0.9
- プレフィックスキャッシュ
- はい
- チャンク化プリフィル
- はい
実行設定
- コンテキスト
- 32,768 トークン
- 深度
- 0 トークン
- バッチサイズ
- 1
- プロンプトトークン
- 2815
- プリフィル tok/s
- 4,480.4 tok/s
- 出力トークン
- 1024
- メモ
- PureTensor lab, fox-n0: one RTX PRO 6000 Blackwell Workstation Edition (600 W), the whole card, Threadripper 7970X, 256 GB RAM. Google's BF16 weights on upstream vLLM nightly (Docker), text-only (--language-model-only). Config found by our maxxloop tuning harness: one-variable sweeps, quality and degeneration gates, interleaved fresh-boot confirms. Confirmed x3.659 [95% CI 3.619-3.690] over the engine defaults in 3+3 interleaved boots. Engine config vs its defaults: spec='{"model":"/models/google__gemma-4-31B-it-assistant","num_speculative_tokens":6}'. Image vllm/vllm-openai@sha256:66f19872e759e7d74f0729c4c7068eaaf71bc8b35f613573c36062a81be8cb3d. CPU in a performance window (performance governor, C2 off, boost on). Thinking off. Batch 1, temperature 0, streamed; median of 5 runs after 2 warmup(s). 224 verify steps, 4.58 tokens/step, 46.4 ms/step.
記録された証跡
- プロンプトハッシュ (SHA-256)
- 5a6b7bc1cbbc…
プロンプトサンプル · 2,000 chars
[LocalMaxxing cache-bust nonce: 3f03f2326487988082c8a3f39da23985]
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出力サンプル · 3,981 chars
### Database Schema
To ensure idempotency, we track every processed event ID. We use a `processed_events` table to act as a guard.
```sql
CREATE TABLE IF NOT EXISTS processed_events (
event_id TEXT PRIMARY KEY,
processed_at TIMESTAMPTZ DEFAULT NOW()
);
CREATE TABLE IF NOT EXISTS invoices (
id TEXT PRIMARY KEY,
amount DECIMAL(12, 2) NOT NULL,
updated_at TIMESTAMPTZ DEFAULT NOW()
);
```
### Implementation
```python
import hmac
import hashlib
import time
from typing import Any, Callable, Awaitable, Dict
from fastapi import FastAPI, Request, HTTPException, Header, Depends
from pydantic import BaseModel, Field
import asyncpg
# --- Models ---
class WebhookPayload(BaseModel):
id: str = Field(..., alias="event_id")
type: str
timestamp: int
data: Dict[str, Any]
# --- Registry Pattern ---
# Type alias for handler functions
HandlerFunc = Callable[[asyncpg.Connection, WebhookPayload], Awaitable[None]]
class WebhookDispatcher:
def __init__(self):
self._registry: Dict[str, HandlerFunc] = {}
def register(self, event_type: str):
def decorator(func: HandlerFunc):
self._registry[event_type] = func
return func
return decorator
async def dispatch(self, conn: asyncpg.Connection, payload: WebhookPayload):
handler = self._registry.get(payload.type)
if handler:
await handler(conn, payload)
# If no handler, we simply return (effectively 200 OK)
dispatcher = WebhookDispatcher()
# --- Handlers ---
@dispatcher.register("invoice.paid")
async def handle_invoice_paid(conn: asyncpg.Connection, payload: WebhookPayload):
# Idempotent insert into invoices
await conn.execute(
"INSERT INTO invoices (id, amount) VALUES ($1, $2) "
"ON CONFLICT (id) DO UPDATE SET updated_at = NOW()",
payload.data["id"], payload.data["amount"]
)
# --- Service Logic ---
class WebhookService:
def __init__(self, secret: str, pool: asyncpg.Pool, tolerance_seconds: int = 300):
self.secret = secret.encode()
self.pool = pool
self.tolerance_seconds = tolerance_seconds
def verify_signature(self, payload_bytes: bytes, signature: str, timestamp: int):
# 1. Prevent Replay Attacks (Stale Timestamps)
now = int(time.time())
if abs(now - timestamp) > self.tolerance_seconds:
raise HTTPException(status_code=400, detail="Timestamp expired")
# 2. HMAC-SHA256 Verification
# Assuming signature format: "t=timestamp,v1=hash"
# If provider sends raw hash, adjust accordingly.
expected_sig = hmac.new(
self.secret,
msg=payload_bytes,
digestmod=hashlib.sha256
).hexdigest()
if not hmac.compare_digest(expected_sig, signature):
raise HTTPException(status_code=401, detail="Invalid signature")
async def process_event(self, raw_body: bytes, signature: str, payload: WebhookPayload):
# Verify signature using raw bytes
self.verify_signature(raw_body, signature, payload.timestamp)
async with self.pool.acquire() as conn:
async with conn.transaction():
# Idempotency Guard: Try to insert event ID
try:
await conn.execute(
"INSERT INTO processed_events (event_id) VALUES ($1)",
payload.id
)
except asyncpg.UniqueViolationError:
# Event already processed, return 200 to stop retries
return {"status": "already_processed"}
# Dispatch to registered handler
await dispatcher.dispatch(conn, payload)
return {"status": "ok"}
# --- FastAPI Integration ---
app = FastAPI()
# In production, load these from env vars
WEBHOOK_SECRET = "super-secret-key"
db_pool: asyncpg.Pool = None # Initialized on startupこのハードウェアでのこのモデルの他の実行
- 100tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · BF16コンテキスト 32K · 深度 0 · バッチ 1検証済みランpuretensor · 2026/11/01
- 79.5tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · BF16コンテキスト 32K · 深度 0 · バッチ 1検証済みランpuretensor · 2026/11/01
- 71.8tok/svllm · nightly · BF16コンテキスト 32K · 深度 0 · バッチ 1notSnix · 2026/05/08
- 58.6tok/svllm · FP8コンテキスト 128K · 深度 0 · バッチ 1veladan · 2026/05/06
- 48.0tok/svllm · nightly · BF16コンテキスト 64K · 深度 0 · バッチ 1notSnix · 2026/05/08
- 46.8tok/svllm · BF16コンテキスト 128K · 深度 0 · バッチ 1veladan · 2026/05/05
- 24.4tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · BF16コンテキスト 32K · 深度 0 · バッチ 1検証済みランpuretensor · 2026/11/01
- 24.3tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · BF16コンテキスト 32K · 深度 0 · バッチ 1検証済みランpuretensor · 2026/11/01
- 24.1tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · BF16コンテキスト 32K · 深度 0 · バッチ 1puretensor · 2026/11/01
- 14.7tok/svllm · nightly · BF16コンテキスト 64K · 深度 0 · バッチ 1notSnix · 2026/05/08
