Hız testi
Nanbeige4.3-33B-NVFP4
RTX PRO 6000 Blackwell Max-Q Workstation Edition 96GB · sglang · v0.5.21 · NVFP4
Decode
76.0tok/s
Prefill
10.0ktok/s
İlk token süresi
292ms
Toplam
287tok/s
En yüksek VRAM
—
Bağlam uzunluğu
2K
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
docker run -d --name maxxloop-tc3 --gpus '"device=3"' --ipc=host --shm-size 32g -p 127.0.0.1:8673:30000 -v /mnt/storage/models/hf:/models:ro -v /mnt/storage/maxxloop/cache-tc3-sgl:/root/.cache lmsysorg/sglang:v0.5.21-cu130 python3 -m sglang.launch_server --model-path /models/primitive-ai__Nanbeige4.3-33B-NVFP4 --served-model-name nanbeige43-33b --host 0.0.0.0 --port 30000 --trust-remote-code --enable-metrics --context-length 16384 --mem-fraction-static 0.88 --max-running-requests 1 --chunked-prefill-size 2048 --attention-backend flashinfer --kv-cache-dtype bfloat16 --disable-radix-cache --speculative-algorithm DFLASH --speculative-draft-model-path /models/ProCreations__Nanbeige4.3-33B-DFlash2 --speculative-draft-attention-backend flashinfer --speculative-draft-kv-cache-dtype bfloat16 --speculative-num-draft-tokens 6
Theoretical memory ceiling
105.8–108.6 tok/s
1,792 GB/s memory bandwidth (spec sheet) · 16.50 GB model weights · 16-bit KV cache · 1–2,048 tokens of context
70–72%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from primitive-ai/Nanbeige4.3-33B-NVFP4; size from NVFP4 estimate. Hardware source · Open calculator
Donanım
- GPU
- RTX PRO 6000 Blackwell Max-Q Workstation Edition
- Saymak
- 1
- VRAM
- 96 GB
- OS
- Ubuntu 26.04.1 LTS
Motor
- Motor
- sglang
- Sürüm
- 0.5.21
- Build
- lmsysorg/sglang@sha256:b1259f3ea3275f66237c498ea388919729018bc9f01c3d638391e06e2cf3f469
- miktar
- NVFP4
- Arka uç
- cuda
- TP
- 1
- KV önbellek
- bfloat16
- Kullandığım GPU
- 0.88
- Parçalı ön dolum
- Evet
- Parçayı önceden doldur
- 2048
- Maksimum çalışma sırası
- 1
- Attn
- flashinfer
Yapılandırmayı çalıştır
- Bağlam
- 2.048 jetonları
- Derinlik
- 0 jetonları
- Parti boyutu
- 1
- İstem jetonları
- 2924
- tok/s'yi önceden doldurun
- 10K tok/s
- Çıkış jetonları
- 1024
- Notlar
- PureTensor lab, tensor-core: one RTX PRO 6000 Blackwell Max-Q Workstation Edition (325 W cap), the whole card, Threadripper PRO 9975WX, 512 GB RAM. primitive-ai's NVFP4 (W4A4, compressed-tensors) checkpoint on SGLang 0.5.21 (lmsysorg/sglang:v0.5.21-cu130, Docker). Thinking off. Draft model: ProCreations/Nanbeige4.3-33B-DFlash2 (block-diffusion, 3 layers, 0.98B), per its model card. Config found by our maxxloop tuning harness: one-variable sweeps, quality and degeneration gates, interleaved fresh-boot confirms. Confirmed x1.749 [95% CI 1.730-1.764] over the engine defaults in 3+3 interleaved boots. Engine config vs its defaults: spec='--speculative-algorithm DFLASH --speculative-draft-model-path /models/ProCreations__Nanbeige4.3-33B-DFlash2 --speculative-draft-attention-backend flashinfer --speculative-draft-kv-cache-dtype bfloat16 --speculative-num-draft-tokens 6'. Image lmsysorg/sglang@sha256:b1259f3ea3275f66237c498ea388919729018bc9f01c3d638391e06e2cf3f469. 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).
Kaydedilen kanıtlar
- İstem karması (SHA-256)
- 5a6b7bc1cbbc…
İstem örneği · 2,000 chars
[LocalMaxxing cache-bust nonce: f0b18175b3ac325f97416a744ab16a76]
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
Here is the complete rewrite of your webhook service as a proper, production-ready module.
---
### 1. Database Schema & SQL for Idempotency
To prevent duplicate processing on retries, we use an idempotency table keyed by the event ID.
```sql
-- Idempotency table
CREATE TABLE IF NOT EXISTS webhook_idempotency (
event_id TEXT PRIMARY KEY NOT NULL,
processed_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
status TEXT NOT NULL DEFAULT 'SUCCESS'
);
-- Optional index if event_id is not strictly unique across all events
-- (In this design, event_id is assumed globally unique per provider event)
-- Invoices table (assumed existing, with a unique constraint on id)
CREATE TABLE IF NOT EXISTS invoices (
id TEXT PRIMARY KEY NOT NULL,
amount NUMERIC(12, 2) NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
```
---
### 2. Module Implementation (`webhooks.py`)
```python
"""
webhooks.py: Production-grade FastAPI webhook ingestion module.
- Verifies HMAC-SHA256 signature over raw request body.
- Enforces timestamp freshness (anti-replay window).
- Guarantees idempotency via Postgres idempotency table.
- Dispatches event types dynamically via a registry.
- Returns 2xx for unhandled event types.
"""
from __future__ import annotations
import hmac
import hashlib
import time
import logging
from typing import Any, Awaitable, Callable, Coroutine, Dict, List, Optional, TypeVar
import asyncpg
from fastapi import FastAPI, Header, HTTPException, Request
from pydantic import BaseModel, Field, ValidationError
logger = logging.getLogger(__name__)
# ---------------------------------------------------------------------------
# Configuration & Constants
# ---------------------------------------------------------------------------
WEBHOOK_SECRET: str = "your-shared-secret-key-change-me"
MAX_TIMESTAMP_SKEW_SECONDS: int = 300 # Reject events older than 5 minutes
# ---------------------------------------------------------------------------
# Pydantic Models
# ---------------------------------------------------------------------------
class WebhookEnvelope(BaseModel):
"""Base structure expected in all provider webhook payloads."""
type: str
event_id: str
timestamp: int # Unix epoch in seconds
data: Dict[str, Any]
class InvoicePaidPayload(WebhookEnvelope):
"""Payload schema specifically for 'invoice.paid' events."""
type: Literal["invoice.paid"] = "invoice.paid"
data: Dict[str, Any] = Field(
...,
description="Contains at least 'id' and 'amount'"
)
# Type alias for handler functions in the registry
HandlerType = Callable[[WebhookEnvelope], Awaitable[None]]
F = TypeVar("F", bound=HandlerType)
# ---------------------------------------------------------------------------
# Event Registry
# ---------------------------------------------------------------------------
class EventRegistry:
"""Registry mapping event type strings to async processing handlers."""
def __init__(self) -> None:
self._handlers: Dict[str, HandlerType] = {}
def register(self, event_type: str) -> Callable[[HandlerType], HandlerType]:
"""Decorator to register an event handler."""
def decorator(func: HandlerType) -> HandlerType:
self._handlers[event_type] = func
return func
return decorator
def get_handler(self, event_type: str) -> Optional[HandlerType]:
return self._handlers.get(event_type)
# ---------------------------------------------------------------------------
# Database & Idempotency Operations
# ---------------------------------------------------------------------------
class DatabaseService:
"""Manages asyncpg pool interactions with strict idempotency."""
def __init__(self, pool: asyncpg.Pool) -> None:
self._pool = pool
async def process_idempotent(
self,
event_id: str,
insert_callback: Callable[[], Awaitable[None]],
) -> bool:
"""
Atomically checks Bu modelin bu donanımdaki diğer çalıştırmaları
- 105tok/ssglang · v0.5.21 · NVFP42K bağlam · 0 derinlik · batch 1Doğrulanmış çalıştırmapuretensor · 2 Kas 2026
- 94.1tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · NVFP432K bağlam · 0 derinlik · batch 1Doğrulanmış çalıştırmapuretensor · 2 Kas 2026
- 92.6tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · NVFP432K bağlam · 0 derinlik · batch 1Doğrulanmış çalıştırmapuretensor · 2 Kas 2026
- 92.2tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · NVFP432K bağlam · 0 derinlik · batch 1puretensor · 2 Kas 2026
- 71.5tok/ssglang · v0.5.21 · NVFP42K bağlam · 0 derinlik · batch 1Doğrulanmış çalıştırmapuretensor · 2 Kas 2026
- 67.7tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · NVFP432K bağlam · 0 derinlik · batch 1Doğrulanmış çalıştırmapuretensor · 2 Kas 2026
- 67.7tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · NVFP432K bağlam · 0 derinlik · batch 1Doğrulanmış çalıştırmapuretensor · 2 Kas 2026
- 66.0tok/svllm · v0.33.0rc1.dev320+g335dd77b0 · NVFP432K bağlam · 0 derinlik · batch 1puretensor · 2 Kas 2026
- 49.8tok/ssglang · v0.5.21 · NVFP42K bağlam · 0 derinlik · batch 1Doğrulanmış çalıştırmapuretensor · 2 Kas 2026
- 49.5tok/ssglang · v0.5.21 · NVFP42K bağlam · 0 derinlik · batch 1Doğrulanmış çalıştırmapuretensor · 2 Kas 2026
