속도 테스트모델벤치마크렌탈리포트하드웨어디코드 계산기조직ProAPI 문서제출
언어
Actual Computer — Every computer, one endpoint

속도 테스트

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

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

Lettrcrafter검증됨2026. 11. 23.검증된 실행

디코드

103tok/s

프리필

631tok/s

첫 토큰까지의 시간

391ms

합계

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 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

모델

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 레이어
-1
KV 캐시
f16
프리필 청크
512
Attn
flash_attn
Flash Attn
예
Spec decode
활성화됨
MTP
활성화됨

실행 설정

컨텍스트
16,384 토큰
깊이
0 토큰
배치 크기
1
프롬프트 토큰
247
프리필 tok/s
631.3 tok/s
출력 토큰
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).

이 하드웨어에서 이 모델의 다른 실행