[Benchmark] RX 6600M / Inkling-2 Mini SQ-15: reuse FP8 K/V across GQA heads on HIP
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp, linux
- 領域
- backend, performance
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C++
- スター
- 11.6k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Niko1221/Strata のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Niko1221/Strata#7365 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 4 日以内に返信
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Niko1221/Strata#7276 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Niko1221/Strata#7230 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
Niko1221/Strata の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Quantinuum/tket#2282 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
メンテナーはふだん 10 日以内に返信
-
Server crashes when a mob dies to poison対応中かも @joelstiller が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DarkCastleMUD/DarkCastle#305 ·
メンテナーはふだん 1 日以内に返信
-
[Issue]: RAS status report lists the wrong pids for an outlier node対応中かも @bhargavchintam が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信