ทดสอบความเร็ว
Qwen3.6-35B-A3B-TinyKV-GPTQ-Int4
Intel Arc Pro B70 32GB · vllm · v0.32.0 XPU + B70 cookbook patches (b70.7 overlay) + v4 attention kernels with head-128 variants + TinyKV vLLM plugin · GPTQ-Int4
Decode
209tok/s
Prefill
3.1ktok/s
เวลาถึงโทเค็นแรก
76ms
รวม
—
VRAM สูงสุด
—
ความยาวบริบท
256K
ความลึก KV
0
ขนาด batch
1
การทำงานพร้อมกัน
1
การใช้พลังงาน
—
การตรวจสอบ
การรันที่ตรวจสอบแล้วคำสั่งเริ่มรัน
gh release download v4 -p 'libattn_kernels_xe_2.tinykv.so' -D kernels; SO_FILE=kernels/libattn_kernels_xe_2.tinykv.so TINYKV_PLUGIN=<model>/plugin MODEL_DIR=<model> GPU_UTIL=0.82 ./serve.sh (cookbook serve.sh = vllm serve --quantization gptq --kv-cache-dtype fp8 --max-model-len 262144 --max-num-seqs 8 --speculative-config '{"method":"mtp","num_speculative_tokens":4,"draft_sample_method":"probabilistic"}' + fp8 lm_head, fp8 weight-only attention/GDN/shared expert, int4 MoE decode GEMV)Theoretical memory ceiling
1,037.0–1,041.3 tok/s
608 GB/s memory bandwidth (spec sheet) · 18.00 GB model weights · 8-bit KV cache · 1–239 tokens of context
Includes speculative decoding: 3.30 tokens accepted per model step on average (313.9–315.2 steps/s) · measured 63.2 steps/s
20–20%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from darioooooo0o/Qwen3.6-35B-A3B-TinyKV-GPTQ-Int4; size from GPTQ-Int4 estimate. Hardware source · Open calculator
ฮาร์ดแวร์
- GPU
- Intel Arc Pro B70
- จำนวน
- 1
- VRAM
- 32 GB
- OS
- Fedora 43 (kernel 7.1.8)
Engine
- Engine
- vllm
- เวอร์ชัน
- 0.32.0 XPU + B70 cookbook patches (b70.7 overlay) + v4 attention kernels with head-128 variants + TinyKV vLLM plugin
- Repository
- https://github.com/riceharvest/b70…
- Quant
- GPTQ-Int4
- Backend
- xpu
- KV cache
- fp8
- GPU mem util
- 0.82
- Max running seqs
- 8
- Spec decode
- เปิดใช้งาน
- MTP
- เปิดใช้งาน
Run config
- Context
- 262,144 tokens
- ความลึก
- 0 tokens
- Batch size
- 1
- Prompt tokens
- 239
- Prefill tok/s
- 3,128.7 tok/s
- Output tokens
- 512
- หมายเหตุ
- Single request, canonical prompt, greedy, 512 tokens. TinyKV = Qwen3.6-35B-A3B with a 2.5x smaller KV cache (full 262k context in 25 GB): https://huggingface.co/darioooooo0o/Qwen3.6-35B-A3B-TinyKV . Cookbook: https://github.com/riceharvest/b70-qwen38-cookbook
Speculative decoding
- วิธี
- MTP
- ที่ยอมรับต่อขั้น
- 3.3 โทเค็น
- อัตราการยอมรับ
- 58%
- โทเค็นร่าง
- 620
- โทเค็นที่ยอมรับ
- 357
หลักฐานที่บันทึกไว้
- แฮชพรอมป์ต์ (SHA-256)
- a737db738bd4…
ตัวอย่างพรอมป์ต์ · 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: 79f7ea2ff4fe42a380f9d6c5c207a7dd]
ตัวอย่างเอาต์พุต · 1,960 chars
<think>
Here's a thinking process:
1. **Understand User Requirements:**
- **Tool Name:** `logtally`
- **Input:** Newline-delimited JSON log records from stdin
- **Record Fields:** `ts` (ISO-8601 string), `level` (DEBUG, INFO, WARN, ERROR), `service` (string), optional `latency_ms` (number)
- **Output:** Per service: count of records by level, p50 and p95 of `latency_ms` (ignore records without latency)
- **Error Handling:** Malformed lines counted and reported at the end, never crash
- **Flag:** `--since <ISO timestamp>` to drop earlier records
- **Constraint:** Use only Python standard library
- **Post-code:** Explain percentile computation method and why, list 3 edge cases for unit tests
2. **Deconstruct Requirements & Plan Implementation:**
- **Input Parsing:** Read from `sys.stdin`, process line by line.
- **JSON Parsing:** Use `json.loads()`. Handle `json.JSONDecodeError` for malformed lines.
- **Validation:** Check required fields (`ts`, `level`, `service`). Check `level` is one of the allowed values. Check `ts` is valid ISO-8601 (can use `datetime.fromisoformat()` in Python 3.7+).
- **Filtering:** `--since` flag. Parse the `--since` timestamp, compare with record's `ts`. Drop if earlier.
- **Data Structures:**
- `service_data = {}` mapping service -> `{"levels": {"DEBUG": 0, ...}, "latencies": []}`
- `malformed_count = 0`
- **Percentile Calculation:** Need to compute p50 and p95 for each service's latencies.
- Standard library doesn't have a built-in percentile function, but I can implement it easily.
- Method: Sort the list, use linear interpolation or nearest-rank. The prompt asks to explain the method. I'll use the "nearest rank" or "linear interpolation" method. Actually, Python's `statistics.quantiles` (3.8+) or `numpy` isn't allowed (only stdlib). I'll implement a simple linear interpolation method, which is standard and widely accepted.
</think>
