AstrAI/astrai
ViperEkura 57729fd92d refactor: stride-based attn interface with layout and causal mask
- Replace is_causal + causal_offset with unified causal_offset (-1 = off, >=0 = first Q pos)
- Causal and mask can now coexist (was mutually exclusive)
- Add stride-based addressing for Q/KV/O (layout-agnostic, zero-copy)
- Add layout param ("bhld"/"blhd") parsed in Python, passed as int to C++
- Support 2D [batch, kv_len] and 3D [batch, q_len, kv_len] mask
- Vectorize paged KV gather in Python fallback (was per-token Python loop)
- Extract shared helpers: compute_num_splits, alloc_split_partials, dispatch_head_dim
- Unify paged_decode entry via attn_pack_paged_params
- Update mma_softmax_tile for 3D mask with per-row qrow indexing
2026-07-14 21:34:42 +08:00
..
config fix : SFT pipeline position_ids default & doc boundary preservation 2026-07-04 15:59:11 +08:00
dataset feat: add JSONL dataset store with on-the-fly tokenization 2026-07-04 15:42:33 +08:00
extension refactor: stride-based attn interface with layout and causal mask 2026-07-14 21:34:42 +08:00
inference refactor: clean up inference design patterns 2026-07-05 11:41:54 +08:00
model perf: replace paged KV cache with contiguous ContiguousCache, decode all groups 2026-07-05 11:34:36 +08:00
parallel feat : add distributed checkpoint via executor checkpoint_context 2026-07-13 12:27:09 +08:00
preprocessing refactor: split mask builder by single/multi output 2026-07-08 21:18:34 +08:00
serialization feat : add distributed checkpoint via executor checkpoint_context 2026-07-13 12:27:09 +08:00
tokenize refactor : Pipeline 去除去重,ids 重命名为 sequence,泛型透传 2026-05-31 15:14:27 +08:00
trainer refactor: separate old policy and ref model in GRPO strategy 2026-07-14 20:03:45 +08:00
__init__.py chore: bump version to 1.3.9 2026-07-12 21:04:20 +08:00
factory.py fix: ForwardRef._evaluate Python 3.12 compatibility 2026-07-03 18:41:19 +08:00
protocols.py refactor: 重构训练后端为 Executor 模式 2026-05-24 20:35:44 +08:00