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

Intel Arc Pro B70 32GB · llama.cpp · b11639 · Q4_K_M

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

Decode

113tok/s

Prefill

2.1ktok/s

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

118ms

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

docker run --device /dev/dri -v ~/models:/models ghcr.io/riceharvest/b70-llama sycl -m /models/Spark-X2.6-4B-Q4_K_M.gguf -fa on -c 16384 -np 1 --jinja   (adds --host 0.0.0.0 --port 8080 -ngl 99)

Theoretical memory ceiling

169.4–171.6 tok/s

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

66–67%

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 XHToken/Spark-X2.6-4B-GGUF/Spark-X2.6-4B-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
b11639
Build
upstream SYCL AOT bmg-g31-a0 via ghcr.io/riceharvest/b70-llama (oneAPI 2025.3 runtime bundled)
Commit
a0e6dc7384edb8f5d927155e1d26c10b4a310e6d
Quant
Q4_K_M
Backend
xpu
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
303
Prefill tok/s
2,058.2 tok/s
Output tokens
512
Ghi chú
Single request, canonical prompt, greedy, 512 tokens. Builds: https://github.com/riceharvest/b70-llama-builds#docker-image

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: d5bedb84e137408d8ea7671f25fdb077]
Mẫu đầu ra · 2,031 chars
<think>
We need to implement a Python command-line tool `logtally`. Requirements:

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

We need to output the code and the explanation.

Let's design the tool.

We'll use argparse for CLI. The tool name is `logtally`. It reads from stdin. We can use sys.stdin.

We need to parse each line as JSON. If it's malformed, we count it as malformed. Also, we need to validate the record structure? The requirement says "Malformed lines must be counted and reported at the end, never crash the program." So if a line is not valid JSON, or if it doesn't have required fields, we should count it as malformed. But what about missing optional fields? The spec says each record has `ts`, `level`, `service`, and optional `latency_ms`. So if a line is valid JSON but missing `ts` or `level` or `service`, it's malformed. We should count those as malformed as well. We'll define a function to validate a record.

We need to support `--since <ISO timestamp>`. That flag drops records with `ts` earlier than the given timestamp. We need to compare timestamps. Since they are ISO-8601 strings, we can parse them with datetime.fromisoformat. But note: ISO-8601 strings might have timezone offsets or be naive. We need to handle that consistently. We can parse them and compare. If we have a `--since` timestamp, we should drop records where `ts` < `since`. We need to
</think>

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