跳到正文
cccskills
免费在 GitHub 公开

vllm-metax-attention-upgrade

Review and adapt MetaX attention backends, MLA, sparse indexers, cache layouts, and kernel wrappers against target vLLM and installed MetaX component contracts. Use for attention work outside vllm_metax/patch/.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(4)

  • SKILL.md4.5 KB
  • agents/openai.yaml333 B
  • references/component-contracts.md7.7 KB
  • references/validation.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

vLLM-MetaX Attention Upgrade

Fully read and apply vllm-metax-upgrade-common before this workflow.

Cover the requested attention backends under vllm_metax/v1/attention/, common MLA layers, sparse indexer CustomOps, and directly related models and wrappers.

Trace component contracts and dispatch

Read component-contracts.md for each affected component family. Its versioned observations are investigation prompts, not permanent capability rules.

Trace registration/platform selection through metadata builder, layer binding, wrapper, and the selected Python/native kernel. Include native, flattened, fallback, prefill/decode, capture and distributed branches relevant to the requested change. Resolve aliases, decorators, *args/**kwargs and lazy symbols to the actual FA, MLA or indexer entry point; wrapper transformations can differ from raw component contracts.

ContractEstablish for each selected entry point
InputsPositional/keyword arguments, tensor vs tuple, dtype, shape, strides, contiguity, scales, index units and meanings of omitted/None arguments.
OutputsTensor vs tuple, output and LSE shapes/dtypes, LSE logarithm base, padding, aliasing, in-place writes and empty-row behavior.
Supported combinationsJoint restrictions on dtype, QK/V dimensions, sinks, block size, quantization, native MTP, DCP, variable lengths and graph capture.

Challenge claims such as "FA2 cannot do DiffKV", "all sinks supported", "FP8/FP4 share this API", "cache is contiguous" and "DCP supported" with executable restrictions and discriminating calls. An absent Python signature can be an extension-interface detail; an accepted keyword can still have unimplemented semantics. A fallback remains needed until the selected MetaX entry point implements its replacement.

Review attention semantics end to end

  • Follow allocation/spec/layout selection through bind_kv_cache, insertion, gather, index conversion, kernel reads and output merge. Check layer/page/head/token strides and storage offsets; logical shapes do not establish physical layout.
  • Preserve actual query counts, per-request boundaries and phase when reordering. Review uniform MTP, variable query lengths, short prefills, zero-length padding and CPU/device boundary differences. Reshape only with proven uniformity; otherwise flatten or bucket with the correct per-token metadata.
  • Distinguish request-relative token indices, paged slots, physical flat rows and chunk workspace offsets. Preserve original indices when consumers need different mappings. Review valid-count semantics when -1 entries have interior holes.
  • Dense-MHA-prefill tokens excluded from MQA form a valid subset. Do not run prefill work for absent tokens or return padded heads as real heads.
  • For FP8/INT8, verify storage layout, scale placement/type, query scaling and whether weights already incorporate a scale.
  • Check LSE layout/base, neutral empty outputs and distributed ownership before merging. Localize DCP causal lengths in the correct order relative to MTP expansion. Derive kernel head counts from gathered queries rather than local TP heads.
  • Trace graph metadata lifetime and lazy scheduler state. Captured pointers must refer to runtime-updated buffers; metadata reuse must satisfy the component's conditions.
  • Narrow optional attention metadata with direct is not None checks where required; do not hide incompatible metadata types with suppressions.

Align capability declarations and implementations

Update supports_combination, dtype/layout restrictions, supports_out, graph support and constructors with the reachable implementations. Evaluate combinations rather than independent flags. Retain a verified implementation, update its mapping, select a verified fallback or reject an unsupported combination before launching the kernel.

Keep verified fast paths. Limit a numerical fallback to its failing case, preserve masks/dtypes/outputs, and avoid full-cache copies or hot-path host synchronization. Document the component condition that permits its removal without promising speedups.

Attention acceptance cases

Read validation.md for affected numerical, metadata-routing, graph-replay and DCP acceptance cases.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Trim large MetaX model directories for dummy smoke tests or real-checkpoint loading on limited GPUs. Preserve target execution paths while reducing depth; use the real-weight workflow when a loadable checkpoint is requested. Not for accuracy evaluation or model compatibility upgrades.

中文简介正在准备中。当前显示原文说明。

MetaX-MACA/vLLM-metax1842026年10月23日 更新

Review and upgrade MetaX model support against target vLLM and installed MACA components, including model-dependent attention, weight loading and kernels. Use for model adaptations and shared-upstream-bug attribution, not standalone patch or registry audits.

中文简介正在准备中。当前显示原文说明。

MetaX-MACA/vLLM-metax1842026年10月23日 更新

Audit and adapt monkey patches in vllm_metax/patch/ against a target upstream revision. Decide whether to retain, update, migrate, or remove each patch; maintain patch headers and explanations; validate changes and record evidence. Use only for compatibility work on this directory, not standalone attention backend, model, kernel, or other adaptations elsewhere in vllm_metax.

中文简介正在准备中。当前显示原文说明。

MetaX-MACA/vLLM-metax1842026年10月23日 更新

Review and adapt vllm_metax/registry registrations, quantization configurations, CustomOps and kernel dispatch against a target vLLM revision and installed MetaX APIs. Verify registration, inherited state, weight layouts and actual backend selection. Use for registry compatibility work, not standalone attention algorithms or monkey patches.

中文简介正在准备中。当前显示原文说明。

MetaX-MACA/vLLM-metax1842026年10月23日 更新

Orchestrate a repository-wide vLLM-MetaX compatibility upgrade or coordinated multi-component adaptation through a support matrix, dependency graph and scoped specialists. Use a domain skill for standalone component work.

中文简介正在准备中。当前显示原文说明。

MetaX-MACA/vLLM-metax1842026年10月23日 更新

Shared workflow for vLLM-MetaX compatibility adaptations and reviews, including confirmed environments, upstream-first code, dependency contracts, validation and durable progress. Required by standalone domain skills and the full-upgrade coordinator; collecting environment facts may precede confirmation.

中文简介正在准备中。当前显示原文说明。

MetaX-MACA/vLLM-metax1842026年10月23日 更新

查看 MetaX-MACA 的全部技能

报告此技能的问题