Archived
libxe2: kv_store and attn_paged, correctness first
The paged cache in libref's and libr4d's layout. attn_paged runs one work-group a (query row, head) in libref's order: each key's dot summed over d serially by its lane, the max over the group, then weights by chunk in local memory with the sum and every acc[d] accumulated in key order, exp in double. Scores are recomputed rather than kept, since 131072 keys of them do not fit local memory. Masks, sliding windows, ragged batches and fp8 descales are libref's. kv_store skips a slot past the cache instead of refusing the launch, which would need the host to read device memory. rad-kbench against libref: fixture 178/178, MiniCPM5-2B 160/160 (rel_l2 0). docs/SYCL_PROGRESS.md: the HIP build compiles (785/785 targets for gfx1201 in the ROCm 10.1 container) at the commit holding every core-side change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
This commit is contained in:
1 parent
c52f76c33e
commit
bcd4ddc91b
4 files changed
+298
-5
No files matched your search
@@ -19,4 +19,7 @@ int cast(const RadArgs* a, RadStream s);
|
||||
int gemm_nt(const RadArgs* a, RadStream s);
|
||||
int logits_gemm(const RadArgs* a, RadStream s);
|
||||
|
||||
int kv_store(const RadArgs* a, RadStream s);
|
||||
int attn_paged(const RadArgs* a, RadStream s);
|
||||
|
||||
} // namespace xe2
|
||||
Reference in new issue
Block a user