mstar.engine.resources.attn.xpu#
Paged attention through vllm-xpu-kernels.
Classes
|
Paged KV attention backed by |
|
- class mstar.engine.resources.attn.xpu.XPUPagedAttentionManager(kv_cache, device)[source]#
Bases:
AttentionManagerPaged KV attention backed by
vllm-xpu-kernelsFlashAttention.- plan(step, ctx)[source]#
ret is immutable and opaque to runner; only gives to ctx.plan_results
- Parameters:
step (AttentionStep)
ctx (StepContext)
- qo_indptr_buf(label='main')[source]#
Return this eager step’s query indptr.
Unlike CUDA-graph FlashInfer buffers, this tensor is newly allocated by every plan and therefore has no address-stability guarantee.
- class mstar.engine.resources.attn.xpu.XPUPagedPlan(block_table: torch.Tensor, cu_q: torch.Tensor, host_kv_lens: torch.Tensor, max_q: int, max_k: int, causal: bool)[source]#
Bases:
object- Parameters: