Тест скорости
gemma-4-12B-it-qat-GGUF
Intel Arc B580 12GB · llama.cpp · b12640 · Q4_K_XL
Декодирование
103tok/s
Prefill
631tok/s
Время до первого токена
391мс
Всего
123tok/s
Пиковая VRAM
—
Длина контекста
16K
Глубина KV
0
Размер батча
1
Параллелизм
1
Энергопотребление
—
Проверка
Проверенный запускКоманда запуска
VK_LOADER_LAYERS_DISABLE=all GGML_VK_ALLOW_GRAPHICS_QUEUE=1 llama-server -m gemma-4-12B-it-qat-UD-Q4_K_XL.gguf --model-draft mtp-gemma-4-12B-it.gguf --spec-type draft-mtp --spec-draft-n-max 4 -ngl 99 -fa on --ctx-size 16384 --parallel 1 --cache-type-k f16 --cache-type-v f16 --batch-size 2048 --ubatch-size 512 --poll 100
Theoretical memory ceiling
228.1–239.7 tok/s
456 GB/s memory bandwidth (spec sheet) · 6.72 GB model weights · 16-bit KV cache · 1–247 tokens of context
Includes speculative decoding: 3.53 tokens accepted per model step on average (64.6–67.9 steps/s) · measured 29.1 steps/s
43–45%
of the ceiling reached
High confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from google/gemma-4-12B-it-qat-q4_0-unquantized; size from unsloth/gemma-4-12B-it-qat-GGUF/gemma-4-12B-it-qat-UD-Q4_K_XL.gguf. Hardware source · Open calculator
Оборудование
- GPU
- Intel Arc B580
- Количество
- 1
- VRAM
- 12 GB
- OS
- Windows 11 Pro
Движок
- Движок
- llama.cpp
- Версия
- b12640
- Build
- win-vulkan-x64-driver-101.9175
- Commit
- 56eea9e4b
- Квант
- Q4_K_XL
- GPU layers
- -1
- KV cache
- f16
- Prefill chunk
- 512
- Attn
- flash_attn
- Flash Attn
- да
- Spec decode
- включено
- MTP
- включено
Конфигурация запуска
- Контекст
- 16 384 токенов
- Глубина
- 0 токенов
- Batch size
- 1
- Prompt tokens
- 247
- Prefill tok/s
- 631.3 tok/s
- Output tokens
- 1024
- Отправлено через
- lmx v0.1.64 speed-test submit
- Заметки
- Intel Arc B580 (BMG-G21, ReBAR on, Windows 11 Pro, driver 32.0.101.9175, llama.cpp b12640 Vulkan 1.4 KHR_coopmat). GGML_VK_ALLOW_GRAPHICS_QUEUE=1 + --parallel 1 + f16 KV + MTP4.
Спекулятивное декодирование
- Метод
- MTP
- Принято за шаг
- Токенов: 3,53
- Доля принятых
- 63 %
- Черновые токены
- 1 158
- Принятые токены
- 733
Сохранённые данные
- Хеш промпта (SHA-256)
- a737db738bd4…
Пример промпта · 826 chars
[LocalMaxxing cache-bust nonce: a26d2527dffd49a99825dcd762d8412d] 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.
Пример вывода · 3,672 chars
* Tool name: `logtally`.
* Input: Newline-delimited JSON from stdin.
* Schema: `ts` (ISO-8601), `level` (DEBUG, INFO, WARN, ERROR), `service` (string), `latency_ms` (optional number).
* Output: Per service: count by level, p50, p95 of `latency_ms`.
* Error handling: Count malformed lines, don't crash.
* Flag: `--since <ISO timestamp>` (filter records).
* Constraint: Standard library only.
* Post-code requirements: Explain percentile calculation (2-3 sentences) and list 3 edge cases.
* `sys.stdin` for input.
* `json` for parsing.
* `datetime` for timestamp parsing and comparison.
* `argparse` for command-line arguments.
* `collections.defaultdict` for grouping data.
* `math` (maybe, but standard sorting is enough for percentiles).
* *Data Structure:*
A dictionary where keys are service names.
Values are objects/dicts containing:
- `counts`: `{level: count}`
- `latencies`: `list` of numbers.
* *Processing Loop:*
1. Read line.
2. Try `json.loads`. If fail, increment `malformed_count`.
3. Parse `ts`. If `since` flag is set, compare.
4. Extract `level`, `service`, `latency_ms`.
5. Update data structure.
* *Percentile Calculation:*
Sort the `latencies` list.
Index for p50: `len * 0.5`.
Index for p95: `len * 0.95`.
*Refinement:* Since there's no standard "percentile" function in the stdlib, I'll use the nearest-rank method or linear interpolation. Nearest-rank is simpler for a small tool. Let's go with the standard "nearest rank" or a simple index calculation.
* *Imports:* `sys`, `json`, `argparse`, `datetime`, `collections`.
* *Main Logic:*
```python
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--since", help="ISO timestamp")
args = parser.parse_args()
since_dt = None
if args.since:
since_dt = datetime.datetime.fromisoformat(args.since)
stats = defaultdict(lambda: {"counts": defaultdict(int), "latencies": []})
malformed = 0
for line in sys.stdin:
try:
data = json.loads(line)
ts = datetime.datetime.fromisoformat(data['ts'])
if since_dt and ts < since_dt:
continue
# ... process ...
except:
malformed += 1
```
* *Percentile Logic:*
```python
def get_percentile(data, p):
if not data: return None
sorted_data = sorted(data)
idx = int(len(sorted_data) * p)
# Clamp index
idx = min(idx, len(sorted_data) - 1)
return sorted_data[idx]
```
Wait, for p95, if there are 100 items, index 95 is the 96th item. If there are 10 items, index 9.5 -> 9.
Actually, a common simple way is `sorted_data[int(len(sorted_data) * p)]`.
* *Output Formatting:*
Iterate through `stats`. Print service name, then counts, then p50/p95.
* *Refining the "Since" logic:*
ISO-8601 strings can have 'Z' or offsets. `fromisoformat` handles most, but older Python versions might struggle with 'Z'. However, the prompt says "Use only the standard library" and doesn't specify Python version. I'll assume a modern Python (3.7+) where `fromisoformat` is standard.
* *Refining the "Malformed" logic:*
Need to catch `json.JSONDecodeError`, `KeyError`, `ValueError` (for date parsing).
