본문으로 건너뛰기
cccskills
무료GitHub에 공개

flash-linear-attention

Operate Flash Linear Attention package workflows: setup, kernels, layers/models, KDA/context parallel, and benchmarking.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(30)

  • SKILL.md4.8 KB
  • references/package-overview.md4.6 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json462 B
  • references/troubleshooting.md3.6 KB
  • sub-skills/benchmarking-and-optimization/references/benchmarking.md10.0 KB
  • sub-skills/benchmarking-and-optimization/references/optimization-loop.md9.3 KB
  • sub-skills/benchmarking-and-optimization/references/troubleshooting.md6.6 KB
  • sub-skills/benchmarking-and-optimization/scripts/fla_verify_op_command.py2.3 KB
  • sub-skills/benchmarking-and-optimization/scripts/summarize_benchmark_json.py7.8 KB
  • sub-skills/benchmarking-and-optimization/SKILL.md3.9 KB
  • sub-skills/kda-and-context-parallel/references/context-parallel.md7.9 KB
  • sub-skills/kda-and-context-parallel/references/kda-workflows.md12.8 KB
  • sub-skills/kda-and-context-parallel/references/troubleshooting.md7.7 KB
  • sub-skills/kda-and-context-parallel/scripts/smoke_kda.py5.5 KB
  • sub-skills/kda-and-context-parallel/SKILL.md3.6 KB
  • sub-skills/layers-and-models/references/api-reference.md4.9 KB
  • sub-skills/layers-and-models/references/model-workflows.md10.6 KB
  • sub-skills/layers-and-models/references/troubleshooting.md4.5 KB
  • sub-skills/layers-and-models/scripts/smoke_layer_model.py3.9 KB
  • sub-skills/layers-and-models/SKILL.md2.5 KB
  • sub-skills/ops-kernels-and-dispatch/references/api-and-dispatch.md11.8 KB
  • sub-skills/ops-kernels-and-dispatch/references/testing-and-correctness.md9.7 KB
  • sub-skills/ops-kernels-and-dispatch/references/troubleshooting.md9.9 KB
  • sub-skills/ops-kernels-and-dispatch/scripts/inspect_fla_ops.py5.1 KB
  • sub-skills/ops-kernels-and-dispatch/SKILL.md5.5 KB
  • sub-skills/setup-and-backends/references/install-and-backends.md9.7 KB
  • sub-skills/setup-and-backends/references/troubleshooting.md11.4 KB
  • sub-skills/setup-and-backends/scripts/check_fla_runtime.py8.7 KB
  • sub-skills/setup-and-backends/SKILL.md3.3 KB

SKILL.md(원문)

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

Flash Linear Attention Repo Skill

Use this repo skill for tasks involving Flash Linear Attention (FLA), the fla Python package, its Triton-based linear-attention operators, fused modules, Transformers-compatible model families, Kimi Delta Attention (KDA), context-parallel routes, and FLA-specific benchmark or maintainer workflows.

Read references/repo-provenance.md before deciding whether this skill is current for a checkout. If the commit, package version, public API, or evidence paths differ materially, refresh this skill before relying on detailed guidance.

Fast routing

User taskRead
Install/import FLA, choose CUDA/ROCm/XPU/NPU/CPU extras, inspect runtime versions, debug backend wheel or env-var issues.sub-skills/setup-and-backends/SKILL.md
Call or maintain fla.ops functions, debug @dispatch fallback, select op tests, or reason about Triton kernel correctness.sub-skills/ops-kernels-and-dispatch/SKILL.md
Use fla.layers, fla.modules, fla.models, Hugging Face AutoModelForCausalLM, generation, training, evaluation, or fused losses.sub-skills/layers-and-models/SKILL.md
Work on KDA, KimiDeltaAttention, KDAConfig, chunk_kda, safe gates, FlashKDA/TileLang KDA, or context parallel.sub-skills/kda-and-context-parallel/SKILL.md
Build correctness-gated benchmark commands, interpret speedups, run optimization loops, or summarize benchmark JSON.sub-skills/benchmarking-and-optimization/SKILL.md

Minimal package setup facts

  • Import package: fla.
  • Main distribution: flash-linear-attention for layers/models plus core kernels.
  • Core distribution: fla-core for fla.ops, fla.modules, and fla.utils-only users.
  • Python: >=3.10.
  • Base dependencies: transformers>=4.45.0 and einops.
  • torch and the correct Triton flavor are intentionally selected through backend extras, not the bare package install.

Typical install choices:

# NVIDIA CUDA
pip install 'flash-linear-attention[cuda]'

# ROCm: install torch from the PyTorch ROCm index first, then FLA.
pip install --index-url https://download.pytorch.org/whl/rocm7.2 torch
pip install 'flash-linear-attention[rocm]'

# CPU import-only or limited CPU checks.
pip install --index-url https://download.pytorch.org/whl/cpu torch
pip install 'flash-linear-attention[cpu]'

For XPU, NPU/Ascend, source installs, and --no-deps workflows, route to sub-skills/setup-and-backends/SKILL.md.

Safe first checks

From the owning sub-skill directories, these bundled scripts avoid downloads, training, native tests, and destructive writes:

# Setup/import/backend visibility.
python sub-skills/setup-and-backends/scripts/check_fla_runtime.py --show-env-vars

# Public operator names/signatures without running kernels.
python sub-skills/ops-kernels-and-dispatch/scripts/inspect_fla_ops.py --filter gla

# Tiny layer/model construction without checkpoint downloads.
python sub-skills/layers-and-models/scripts/smoke_layer_model.py --device cpu

# KDA import and optional tiny CUDA KDA smoke.
python sub-skills/kda-and-context-parallel/scripts/smoke_kda.py --help

# Build a gated benchmark command without running it.
python sub-skills/benchmarking-and-optimization/scripts/fla_verify_op_command.py --op chunk_gla --base main

Use CUDA-requiring script flags only when the active environment intentionally has CUDA hardware and matching wheels.

Cross-cutting operating rules

  • Do not treat CPU import success as proof that Triton/CUDA, ROCm, XPU, NPU, TileLang, FlashKDA, or context-parallel kernels work.
  • Set FLA_* backend and cache environment variables before starting Python; dispatch decisions are made in the active process.
  • For maintainer tasks in an FLA checkout, correctness gates come before performance claims. A red or skipped gate means no speedup can be promoted.
  • Do not change public layer/model symbols, config fields, checkpoint compatibility, validated numerical precision, or tolerances without explicit approval.
  • Keep KDA-specific gate and CP behavior out of generic ops guidance; KDA has its own per-key-dimension gate and context-parallel constraints.

References

  • references/package-overview.md — package surfaces, supported workflow map, public exports, and optional dependency boundaries.
  • references/troubleshooting.md — cross-cutting install/import/runtime triage before selecting a deeper sub-skill.
  • references/repo-provenance.md — source commit, package version, evidence paths, and refresh checklist.
  • references/repo-routing-metadata.json — structured router metadata for managed import tooling.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고