速度テスト
Ternary-Bonsai-2-27B-gguf
RTX 5070 12GB · ninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)
デコード
1.2ktok/s
プリフィル
220tok/s
最初のトークンまでの時間
32ms
合計
—
ピーク VRAM
10.8GB
コンテキスト長
64K
KV 深度
237
バッチサイズ
1
同時実行数
1
消費電力
—
検証
検証済みラン起動コマンド
ninfer serve Ternary-Bonsai-2-27B-ninfer-v3.ninfer --max-context 65536 --kv-capacity 65536 --kv-dtype rk4v4-e8 --gdn-state-fp16 --spec dflash2 --draft-tokens 15 --prefill-chunk 128 --max-concurrency 1 --device-state-slots 0 --host-state-slots 8 --host-kv-mib 2048 --cuda-graph-allowance-mib 320 --ngram-draft-tokens 63 --ngram-archive-mib 512
Theoretical memory ceiling
The quantization "PQ2_0 ternary (NInfer v3 artifact)" isn't recognized, so the model's size in memory is unknown.
モデル
- GPU
- RTX 5070
- 数
- 1
- VRAM
- 12 GB
- OS
- Windows 11 + Ubuntu 24.04 (WSL2, Docker)
エンジン
- エンジン
- ninfer
- バージョン
- 0.12.0
- Repository
- https://github.com/iamwavecut/ninf…
- Build
- ghcr.io/iamwavecut/ninfer-all@sha256:39bf9ea1badfc6f6d285e03b4b1736a709515364243bcb08c3617517ce3ddcba
- 量子化
- PQ2_0 ternary (NInfer v3 artifact)
- バックエンド
- cuda
- KVキャッシュ
- rk4v4-e8
- プリフィルチャンク
- 128
- Spec decode
- 有効
実行設定
- コンテキスト
- 65,536 トークン
- 深度
- 237 トークン
- バッチサイズ
- 1
- プロンプトトークン
- 7
- プリフィル tok/s
- 220.1 tok/s
- 出力トークン
- 768
- メモ
- Peak (repeated-prompt) method, as used by the top entries on this board: Warm state: canonical code-v1 repeated 12 times with one X-NInfer-Draft-Session and a cross-request n-gram archive (--ngram-archive-mib 512, --ngram-draft-tokens 63). This is the fastest repeat; median of the repeats 1163.2 tok/s. It measures copy speed for text the server has already produced, not first-try speed: see the fresh-state runs for that. Everyday first-try speed on the same machine is posted separately.
投機的デコード
- 手法
- DFlash2 + n-gram copy (cross-request archive)
- ステップあたりの採択数
- 15.59 トークン
- 採択率
- 97%
- ドラフトトークン
- 773
- 採択トークン
- 752
記録された証跡
- プロンプトハッシュ (SHA-256)
- a737db738bd4…
プロンプトサンプル · 826 chars
[LocalMaxxing cache-bust nonce: 59c2209fbae042d29961b13d1b857b31] Implement a small command-line tool in Python called `logtally`. Requirements: - It reads newline-delimited JSON log records from stdin. Each record has `ts` (ISO-8601 string), `level` (one of DEBUG, INFO, WARN, ERROR), `service` (string), and optional `latency_ms` (number). - It prints, per service, the count of records by level and the p50 and p95 of `latency_ms` (ignore records without latency). - Malformed lines must be counted and reported at the end, never crash the program. - Support a `--since <ISO timestamp>` flag that drops earlier records. - Use only the standard library. After the code, explain in two or three sentences how you computed percentiles and why you chose that method, then list three edge cases a unit test suite should cover.
出力サンプル · 2,888 chars
```python
#!/usr/bin/env python3
"""logtally: aggregate newline-delimited JSON log records from stdin."""
import argparse
import json
import sys
from datetime import datetime, timezone
def parse_args(argv=None):
parser = argparse.ArgumentParser(
prog="logtally",
description="Aggregate NDJSON log records by service.",
)
parser.add_argument(
"--since",
type=str,
default=None,
help="ISO-8601 timestamp; drop records with ts earlier than this.",
)
return parser.parse_args(argv)
def parse_iso(ts_str):
"""Parse an ISO-8601 string into a timezone-aware datetime.
Handles the 'Z' suffix (Python < 3.11 doesn't accept it in fromisoformat).
Returns None on failure.
"""
if not isinstance(ts_str, str):
return None
s = ts_str.strip()
if s.endswith(("Z", "z")):
s = s[:-1] + "+00:00"
try:
dt = datetime.fromisoformat(s)
except ValueError:
return None
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt
def percentile(sorted_vals, p):
"""Nearest-rank percentile of a sorted list.
Rank r = ceil(p/100 * n); result = sorted_vals[r-1].
This is the simplest, most common definition and avoids interpolation
ambiguity for small samples.
"""
n = len(sorted_vals)
if n == 0:
return None
rank = int((p / 100.0) * n + 1e-9) # tiny epsilon guards float rounding
rank = max(1, min(rank, n))
return sorted_vals[rank - 1]
def main(argv=None):
args = parse_args(argv)
since_dt = None
if args.since is not None:
since_dt = parse_iso(args.since)
if since_dt is None:
print(f"error: invalid --since value {args.since!r}", file=sys.stderr)
sys.exit(2)
malformed = 0
# service -> {"level": {LEVEL: count}, "latencies": [float, ...]}
services = {}
for line in sys.stdin:
line = line.strip()
if not line:
continue
try:
rec = json.loads(line)
except (json.JSONDecodeError, TypeError):
malformed += 1
continue
if not isinstance(rec, dict):
malformed += 1
continue
ts_raw = rec.get("ts")
level = rec.get("level")
service = rec.get("service")
latency = rec.get("latency_ms")
# Validate required fields
if ts_raw is None or level is None or service is None:
malformed += 1
continue
ts = parse_iso(ts_raw)
if ts is None:
malformed += 1
continue
valid_levels = {"DEBUG", "INFO", "WARN", "ERROR"}
if level not in valid_levels:
malformed += 1
continue
if not isinstance(service, str) or not service:
malformed += 1
continueこのハードウェアでのこのモデルの他の実行
- 1.1ktok/sninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)コンテキスト 64K · 深度 298 · バッチ 1検証済みランsa7f_f · 2026/10/20
- 286tok/sninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)コンテキスト 64K · 深度 0 · バッチ 1検証済みランsa7f_f · 2026/10/20
- 229tok/sninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)コンテキスト 64K · 深度 0 · バッチ 1検証済みランsa7f_f · 2026/10/20
- 198tok/sninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)コンテキスト 64K · 深度 0 · バッチ 1sa7f_f · 2026/10/20
- 59.2tok/sllama.cpp · prism-b10709-9a9394a · PTQ1_0コンテキスト 32K · 深度 0 · バッチ 1cheezz · 2026/09/21
