Kiểm tra tốc độMô hìnhĐánh giá chuẩnCho thuêBáo cáoPhần cứngMáy tính decodeTổ chứcProTài liệu APIGửi
Ngôn ngữ
Actual Computer — Every computer, one endpoint

Kiểm tra tốc độ

Spark-X2.6-4B-CED

Intel Arc Pro B70 32GB · llama.cpp · a0e6dc7 + CED patch · Q4_K_M

darioooooo0oĐã xác minh26 thg 10, 2026Lượt chạy đã xác minh

Decode

90.9tok/s

Prefill

1.1ktok/s

Thời gian đến token đầu tiên

289ms

Tổng

—

VRAM đỉnh

—

Độ dài ngữ cảnh

16K

Độ sâu KV

0

Kích thước batch

1

Đồng thời

1

Công suất tiêu thụ

—

Xác minh

Lượt chạy đã xác minh

Lệnh khởi chạy

llama-server -m spark-ced-Q4_K_M.gguf -fa on -c 16384 -np 1 --jinja -ngl 99   (CED two-phase prefill, replay 1024; prompts under 1024 tokens do not show the prefill gain)

Theoretical memory ceiling

227.4–231.3 tok/s

608 GB/s memory bandwidth (spec sheet) · 2.63 GB model weights · 16-bit KV cache · 1–307 tokens of context

39–40%

of the ceiling reached

High confidence

The fastest this hardware's memory could serve a single request; real runs are slower. Model details from XHToken/Spark-X2.6-4B; size from darioooooo0o/Spark-X2.6-4B-CED/spark-ced-Q4_K_M.gguf. Hardware source · Open calculator

Phần cứng

GPU
Intel Arc Pro B70
Số lượng
1
VRAM
32 GB
OS
Fedora 43 (kernel 7.1.8)

Engine

Engine
llama.cpp
Phiên bản
a0e6dc7 + CED patch
Build
upstream llama.cpp a0e6dc7384 + llama.cpp-ced.patch (in the HF repo) + riceharvest Intel Xe2 Vulkan commits, Mesa Vulkan
Commit
a0e6dc7384edb8f5d927155e1d26c10b4a310e6d
Quant
Q4_K_M
Backend
vulkan
GPU layers
99
Flash Attn
có

Cấu hình chạy

Context
16.384 tokens
Độ sâu
0 tokens
Kích thước batch
1
Prompt tokens
307
Prefill tok/s
1,063.7 tok/s
Output tokens
512
Ghi chú
Single request, canonical prompt, greedy, 512 tokens. CED model: prefill gain needs prompts >1k tokens; this prompt is ~280 tokens, so this is a decode/ttft check only.

Bằng chứng đã ghi

Mã băm prompt (SHA-256)
a737db738bd4…
Mẫu prompt · 826 chars
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.
[LocalMaxxing cache-bust nonce: 283c1215b4b94d40a35037af0d63949f]
Mẫu đầu ra · 1,936 chars
<think>
We need to implement a Python CLI tool `logtally`. Let's break down requirements:

1. 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)

2. Output: per service, count of records by level, and p50 and p95 of `latency_ms` (ignore records without latency).

3. Malformed lines must be counted and reported at the end, never crash the program.

4. Support `--since <ISO timestamp>` flag that drops earlier records.

5. Use only standard library.

6. After code, explain in two or three sentences how we computed percentiles and why we chose that method, then list three edge cases a unit test suite should cover.

Let's design the CLI.

We'll use argparse for CLI parsing. The tool name is `logtally`. We'll have a `--since` option.

We need to parse stdin line by line. For each line:
- Try to parse JSON. If fails, increment malformed count.
- Check if record is valid: has required fields? The spec says "Each record has ...", but malformed lines should be counted. So we should validate that the JSON is a dict with required keys? Or just try to parse and if it's not a dict or missing required keys, count as malformed? The spec says "Malformed lines must be counted and reported at the end". So we should count lines that are not valid JSON or don't conform to the expected schema. Let's define valid as: JSON object with keys `ts`, `level`, `service`, and optionally `latency_ms`. But `latency_ms` is optional. So if a line is valid JSON but missing required keys, it's malformed. We'll count those as malformed.

We need to handle `--since` filtering: drop records where `ts` is earlier than the given timestamp. We need to compare ISO-8601 timestamps. We can use `datetime.fromisoformat` (Python 3.7+). But note: ISO-8601 strings might have timezone offsets
</think>

Các lượt chạy khác của mô hình này trên phần cứng này