स्पीड टेस्ट
gemma-4-12B-it-qat-GGUF
Intel Arc B580 12GB · llama.cpp · b12640 · Q4_K_XL
डिकोड
103tok/s
प्रीफ़िल
631tok/s
पहले टोकन तक का समय
391ms
कुल
123tok/s
पीक VRAM
—
कॉन्टेक्स्ट लंबाई
16K
KV गहराई
0
बैच आकार
1
समवर्तीता
1
बिजली खपत
—
सत्यापन
सत्यापित रनLaunch command
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
- Count
- 1
- VRAM
- 12 GB
- OS
- Windows 11 Pro
इंजन
- इंजन
- llama.cpp
- Version
- 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
- हाँ
- Spec decode
- सक्षम
- MTP
- सक्षम
Run config
- Context
- 16,384 tokens
- गहराई
- 0 tokens
- 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).
