SnelheidstestsModellenBenchmarksVerhuurRapportenHardwareDecode-calculatorOrganisatiesProAPI DocsIndienen
Taal
Actual Computer — Every computer, one endpoint

Snelheidstest

gemma-4-12B-it-qat-GGUF

Intel Arc B580 12GB · llama.cpp · b12640 · Q4_K_XL

LettrcrafterGeverifieerd23 nov 2026Geverifieerde run

Decode

103tok/s

Prefill

631tok/s

Tijd tot eerste token

391ms

Totaal

123tok/s

Piek-VRAM

—

Contextlengte

16K

KV-diepte

0

Batchgrootte

1

Gelijktijdigheid

1

Stroomverbruik

—

Verificatie

Geverifieerde run

Startcommando

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 confidence

The 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

Hardware

GPU
Intel Arc B580
Aantal
1
VRAM
12 GB
OS
Windows 11 Pro

Engine

Engine
llama.cpp
Versie
b12640
Build
win-vulkan-x64-driver-101.9175
Commit
56eea9e4b
Quant
Q4_K_XL
GPU layers
-1
KV cache
f16
Prefill chunk
512
Attn
flash_attn
Flash Attn
ja
Spec decode
ingeschakeld
MTP
ingeschakeld

Run config

Context
16.384 tokens
Diepte
0 tokens
Batchgrootte
1
Prompttokens
247
Prefill tok/s
631.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, llama.cpp b12640 Vulkan 1.4 KHR_coopmat). GGML_VK_ALLOW_GRAPHICS_QUEUE=1 + --parallel 1 + f16 KV + MTP4.

Speculatieve decodering

Methode
MTP
Geaccepteerd per stap
3,53 tokens
Acceptatiegraad
63%
Drafttokens
1.158
Geaccepteerde tokens
733

Vastgelegd bewijs

Prompt-hash (SHA-256)
a737db738bd4…
Promptvoorbeeld · 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.
Uitvoervoorbeeld · 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).

Meer runs van dit model op deze hardware