Test di velocità
Ternary-Bonsai-2-27B-gguf
RTX 5070 12GB · ninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)
Decodifica
286tok/s
Prefill
1.7ktok/s
Tempo al primo token
141ms
Totale
—
VRAM di picco
10,8GB
Lunghezza del contesto
64K
Profondità KV
0
Dimensione batch
1
Concorrenza
1
Consumo energetico
—
Verifica
Esecuzione verificataComando di avvio
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 6 --prefill-chunk 128 --max-concurrency 1 --device-state-slots 0 --host-state-slots 8 --host-kv-mib 2048 --cuda-graph-allowance-mib 320
Theoretical memory ceiling
The quantization "PQ2_0 ternary (NInfer v3 artifact)" isn't recognized, so the model's size in memory is unknown.
Hardware
- GPU
- RTX 5070
- Conteggio
- 1
- VRAM
- 12 GB
- OS
- Windows 11 + Ubuntu 24.04 (WSL2, Docker)
Motore
- Motore
- ninfer
- Versione
- 0.12.0
- Repository
- https://github.com/iamwavecut/ninf…
- Build
- ghcr.io/iamwavecut/ninfer-all@sha256:39bf9ea1badfc6f6d285e03b4b1736a709515364243bcb08c3617517ce3ddcba
- Quant
- PQ2_0 ternary (NInfer v3 artifact)
- Backend
- cuda
- KV cache
- rk4v4-e8
- Chunk prefill
- 128
- Spec decode
- abilitato
Configurazione run
- Contesto
- 65.536 token
- Profondità
- 0 token
- Dimensione batch
- 1
- Token prompt
- 244
- Prefill tok/s
- 1,735.5 tok/s
- Token output
- 768
- Note
- Fresh state: canonical code-v1 with a new cache-bust nonce every rep, so each answer is the first time the server sees the prompt. Best of 6 reps; median 279.4 tok/s, range 255.9-285.9. Thinking off, temp 0, batch 1, 768 output tokens. DFlash2 drafter (6 drafts) plus the engine's default n-gram copy drafting. Same settings as the everyday launch profile.
Decodifica speculativa
- Metodo
- DFlash2 + n-gram copy
- Accettati per passo
- 4,7 token
- Tasso di accettazione
- 62%
- Token di bozza
- 984
- Token accettati
- 606
Evidenze acquisite
- Hash del prompt (SHA-256)
- a737db738bd4…
Esempio di prompt · 826 chars
[LocalMaxxing cache-bust nonce: 8360a71ac64d4c60b98d9b8b4d888e41] 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.
Esempio di output · 3,064 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_iso(ts: str) -> datetime:
"""Parse an ISO-8601 timestamp string into a tz-aware datetime."""
# Python 3.7+ handles 'Z' suffix in fromisoformat? No, it doesn't until 3.11.
# Handle the common 'Z' case manually for broader compatibility.
if ts.endswith('Z'):
ts = ts[:-1] + '+00:00'
dt = datetime.fromisoformat(ts)
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt
def main() -> int:
parser = argparse.ArgumentParser(description="Aggregate NDJSON log records.")
parser.add_argument(
"--since",
type=str,
default=None,
help="Drop records with ts earlier than this ISO-8601 timestamp.",
)
args = parser.parse_args()
since_dt = None
if args.since:
try:
since_dt = parse_iso(args.since)
except (ValueError, TypeError):
print(f"error: invalid --since timestamp {args.since!r}", file=sys.stderr)
return 2
malformed_count = 0
# service -> level -> count
counts = {}
# service -> list of latency_ms values
latencies = {}
for line in sys.stdin:
line = line.strip()
if not line:
continue
try:
record = json.loads(line)
except json.JSONDecodeError:
malformed_count += 1
continue
# Validate required fields
if not isinstance(record, dict):
malformed_count += 1
continue
ts_raw = record.get("ts")
level = record.get("level")
service = record.get("service")
if ts_raw is None or level is None or service is None:
malformed_count += 1
continue
if not isinstance(ts_raw, str) or not isinstance(level, str) or not isinstance(service, str):
malformed_count += 1
continue
valid_levels = {"DEBUG", "INFO", "WARN", "ERROR"}
if level not in valid_levels:
malformed_count += 1
continue
try:
ts_dt = parse_iso(ts_raw)
except (ValueError, TypeError):
malformed_count += 1
continue
# Apply --since filter
if since_dt is not None and ts_dt < since_dt:
continue
# Record the entry
svc = service
if svc not in counts:
counts[svc] = {}
if level not in counts[svc]:
counts[svc][level] = 0
counts[svc][level] += 1
# Latency
if "latency_ms" in record:
val = record["latency_ms"]
if isinstance(val, (int, float)) and not isinstance(val, bool):
if svc not in latencies:
latencies[svc] = []
latencies[svc].append(float(val))
# Output
for svc in sorted(counts):
print(f"{svc}:")
for lvlAltri run di questo modello su questo hardware
- 1.2ktok/sninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)Contesto 64K · profondità 237 · batch 1Esecuzione verificatasa7f_f · 20 ott 2026
- 1.1ktok/sninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)Contesto 64K · profondità 298 · batch 1Esecuzione verificatasa7f_f · 20 ott 2026
- 229tok/sninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)Contesto 64K · profondità 0 · batch 1Esecuzione verificatasa7f_f · 20 ott 2026
- 198tok/sninfer · v0.12.0 · PQ2_0 ternary (NInfer v3 artifact)Contesto 64K · profondità 0 · batch 1sa7f_f · 20 ott 2026
- 59.2tok/sllama.cpp · prism-b10709-9a9394a · PTQ1_0Contesto 32K · profondità 0 · batch 1cheezz · 21 set 2026
