Snelheidstest
Inkling-2-Mini-GGUF
Intel Arc B580 12GB · llama.cpp · b12633 · IQ4_XS
Decode
19.8tok/s
Prefill
119tok/s
Tijd tot eerste token
2.026ms
Totaal
23.6tok/s
Piek-VRAM
—
Contextlengte
16K
KV-diepte
0
Batchgrootte
1
Gelijktijdigheid
1
Stroomverbruik
—
Verificatie
Geverifieerde runStartcommando
VK_LOADER_LAYERS_DISABLE=all GGML_VK_ALLOW_GRAPHICS_QUEUE=1 llama-server -m Inkling-2-Mini-UD-IQ4_XS.gguf -ngl 99 -ot 'blk\.(0|1|2|3|4|5|18|19|20|21|22|23)\.ffn_.*_exps\.=CPU' --load-mode none -fa on --ctx-size 16384 --parallel 1 --cache-type-k q8_0 --cache-type-v q8_0 --batch-size 512 --ubatch-size 128
Theoretical memory ceiling
This mixture-of-experts model doesn't list how many parameters are used per token, so a ceiling can't be estimated.
Hardware
- GPU
- Intel Arc B580
- Aantal
- 1
- VRAM
- 12 GB
- OS
- Windows 11 Pro
Engine
- Engine
- llama.cpp
- Versie
- b12633
- Build
- win-vulkan-x64-driver-101.9175
- Commit
- 9c10c94e1
- Quant
- IQ4_XS
- GPU layers
- 99
- KV cache
- q8_0
- Prefill chunk
- 128
- Attn
- flash_attn
- Flash Attn
- ja
Run config
- Context
- 16.384 tokens
- Diepte
- 0 tokens
- Batchgrootte
- 1
- Prompttokens
- 242
- Prefill tok/s
- 119.3 tok/s
- Outputtokens
- 1024
- Ingediend met
- lmx v0.1.64 speed-test submit
- Notities
- Intel Arc B580 (BMG-G21, ReBAR on, Windows 11 Pro, driver 32.0.101.9175, Vulkan 1.4 KHR_coopmat). Loop-Core-Pinned hybrid offload: layers 6-17 pinned in B580 VRAM, 1x outer routed experts (0-5, 18-23) in 32 GB RAM via -ot, --load-mode none, -ub 128.
Vastgelegd bewijs
- Prompt-hash (SHA-256)
- a737db738bd4…
Promptvoorbeeld · 826 chars
[LocalMaxxing cache-bust nonce: 7646fa270ba272966a2d1496cd2aa594] 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.
Uitvoervoorbeeld · 3,562 chars
The user wants a small CLI tool in Python called `logtally`. Requirements:
- Reads newline-delimited JSON log records from stdin. Each record has `ts` (ISO-8601 string), `level` (one of DEBUG, INFO, WARN, ERROR), `service` (string), optional `latency_ms` (number).
- Prints per service: count of records by level and p50 and p95 of latency_ms (ignore records without latency).
- Malformed lines counted and reported at end, never crash.
- Support `--since <ISO timestamp>` flag that drops earlier records.
- Standard library only.
Then explain in 2-3 sentences how percentiles computed and why, then list three edge cases a unit test suite should cover.
Let me write the code carefully.
Key design decisions:
1. Parsing ISO-8601 timestamps: `datetime.fromisoformat` in Python 3.7+ handles most ISO-8601 formats, but not "Z" suffix until Python 3.11. To be safe, handle "Z" by replacing with "+00:00". Also handle naive vs aware datetimes: if timestamps are naive, treat as naive; if aware, compare aware. For `--since`, parse similarly. If a record's ts is unparseable, it's malformed.
2. Malformed lines: JSON parse errors, missing/invalid fields (ts, level, service), level not in set, service not a string, latency not a number (bool is instance of int — should we exclude bools? Probably treat bool as invalid since it's not really a number... Actually bool is a number in Python; could allow or reject. I'll reject bools for latency to be strict, or just accept numbers. Let me be careful: `isinstance(True, int)` is True. I'll explicitly reject bools for latency and maybe for ts? ts must be string.)
3. Percentile computation: nearest-rank or linear interpolation. Common approach: sort values, compute index = ceil(p/100 * n) - 1 (nearest-rank) or use linear interpolation (like numpy default). I'll use linear interpolation ("inclusive" method, like numpy's default 'linear') or nearest-rank. Let me pick one and explain.
Simplest robust: sort, then use the "nearest-rank" method: rank = ceil(p * n), take value at rank-1. Or linear interpolation: position = (n-1) * p, interpolate between floor and ceil. I'll do linear interpolation (like numpy default) and explain: smooth, handles small samples reasonably, standard.
Actually for a small tool, nearest-rank is simpler and defensible. But linear interpolation is more common. Let me do linear interpolation with a clear explanation.
Implementation:
```python
#!/usr/bin/env python3
"""logtally - summarize newline-delimited JSON logs from stdin."""
import argparse
import json
import math
import sys
from datetime import datetime, timezone
LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")
def parse_ts(s):
if not isinstance(s, str):
raise ValueError("ts must be a string")
text = s.strip()
if text.endswith(("Z", "z")):
text = text[:-1] + "+00:00"
dt = datetime.fromisoformat(text)
return dt
def parse_args(argv):
parser = argparse.ArgumentParser(description="...")
parser.add_argument("--since", metavar="ISO_TIMESTAMP", help="drop records with ts earlier than this")
return parser.parse_args(argv)
def percentile(sorted_vals, p):
# sorted_vals: ascending list
n = len(sorted_vals)
if n == 0:
return None
if n == 1:
return sorted_vals[0]
# linear interpolation, like numpy default
rank = (n - 1) * p
lo = math.floor(rank)
hi = math.ceil(rank)
if lo == hi:
return sorted_vals[lo]
frac = rank - lo
return sorted_vals[lo] * (1 - frac) + sorted_vals[hi] * frac
```
Main