[Benchmark] RX 6600M / Inkling-2 Mini SQ-15: reuse FP8 K/V across GQA heads on HIP
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cpp, linux
- Lĩnh vực
- backend, performance
Hướng nghiên cứu
Read ink_hip_ops.hip.h and ink_hip_backend.hip.cpp, then reproduce the two opt-in FP8 attention switches on an RX 6600M (gfx1032) using the provided command and baseline settings. Compare kernel timings and outputs for the grouped prefill and single-token split-KV paths; done means the changes are independently evaluable and preserve the reported bitwise-equal outputs. The issue requests interest in a PR, so confirm maintainer direction before investing in implementation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On an RX 6600M, two opt-in FP8 attention changes reduced full-model time to the first token from 26.95 to 25.78 s for a 1,024-token prompt across five paired runs. The separate global attention kernel at position 32,768 went from 543.33 to 141.43 ms with a 256-token prefill chunk. Would you be interested in an opt-in PR for the HIP/RDNA2 path?
Changes. In ink_hip_ops.hip.h and ink_hip_backend.hip.cpp, one wave loads and unpacks K/V once for the three query heads that share it in the 24:8:128 GQA geometry. Each query head still computes its own scores and softmax in its original order. A 256-entry FP32 table in LDS is built using the existing E4M3 conversion, and the single-token split-KV path can use the same lookup technique. The grouped path is gated to gfx1032, FP8 KV, contiguous single-slot prefill, and B ≥ 64. The two switches can be evaluated independently.
| Full-model median | Baseline | Both switches |
|---|---|---|
| Prefill, 1,024 tokens | 38.00 tok/s | 39.73 tok/s |
| Decode, 80-token response to that prompt | 13.44 tok/s | 13.67 tok/s |
| Total time, same prompt and response | 32.94 s | 31.56 s |
| Decode, 136-token prompt | 13.53 tok/s | 14.50 tok/s |
strata-rdna2-fp8-attention-repro.zip
All five pairs favored the candidate on total time for the 1,024-token prompt. All ten 80-token responses to that prompt matched. Short-prompt free generations varied even across baseline runs. A separate fixed-input check (64-token batch followed by a single token) matched 13,003,770 FP32 logits bit for bit. The timings use one local engine binary with fresh processes in AB/BA pairs, zero prefix reuse and zero storage reads during the requests.
Kernel-only results. HIP events with synthetic FP8 K/V, production head geometry and bitwise-equal outputs: at B=256 and position 32,768, global attention took 543.33 → 141.43 ms and sliding-window attention 16.25 → 5.49 ms. One-token global split-KV attention at position 30,720 took 2.193 → 1.006 ms. These numbers cover attention kernels. The 32K full-model speedup remains unmeasured. The candidate run on 3,072 input tokens stopped at the system RAM guard and is excluded from paired timings.
Reproduction. RX 6600M (gfx1032, 8 GiB), Ryzen 5 5600H, 16 GB RAM, Ubuntu 24.04, local HIP strata-inkling 0.1.67, native Inkling-2-Mini-SQ-15.strata. Both arms held 1,148 experts in VRAM and 1,924 in RAM. Both retained the same earlier local optimizations, including the Q8ROW projection reported in #7260.
STRATA_INK_FP8_ATTN_LUT=1 STRATA_INK_GROUPED_FP8_PREFILL=1 \
./strata-inkling --serve --native "$MODEL" --max-context 4096 \
--kv fp8 --draft off --vram-experts-gb 4.87 --vram-reserve-mib 512 \
--chunk 128 --threads 6 --ram-experts-gb 7.00
Use 0 for both switches in the baseline arm. The related CUDA prefill report #7031 covers repeated packing across query blocks. This report concerns shared FP8 reads and conversion across HIP query heads.
- Ngôn ngữ chính
- C++
- Star
- 11.6k
- Fork
- 1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Niko1221/Strata
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Niko1221/Strata#7365 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 4 ngày
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 4 ngày
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Niko1221/Strata#7276 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Niko1221/Strata#7230 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của Niko1221/Strata
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Quantinuum/tket#2282 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
Maintainer thường phản hồi trong vòng 10 ngày
-
Server crashes when a mob dies to poisonCó thể đã có người làm @joelstiller đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DarkCastleMUD/DarkCastle#305 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Issue]: RAS status report lists the wrong pids for an outlier nodeCó thể đã có người làm @bhargavchintam đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 2 ngày