본문으로 건너뛰기
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(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고