Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

optimization-catalog优化目录

Agent Skill

optimization-catalog 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

563

周安装

23

GitHub Stars

公开资料未说明

下载量

182
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:optimization-catalog(优化目录)
来源仓库:https://github.com/pepperu96/hyper-mla
仓库路径:skills/optimization-catalog
安装命令:
npx skills add https://github.com/pepperu96/hyper-mla --skill optimization-catalog
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pepperu96/hyper-mla --skill optimization-catalog

简介

optimization-catalog 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于参数空间探索、超参组合管理与实验结果归档等 ML 工程场景。
  • 支持多维指标对比与帕累托前沿可视化建议。
  • 安装命令:npx skills add https://github.com/pepperu96/hyper-mla --skill optimization-catalog;需定义清晰优化目标函数。
  • 搜索结果依赖初始种子质量,建议多样化采样起点。

SKILL.md

Optimization Catalog Router

Use this skill as a dispatcher. The shared root knowledge base remains the canonical location for algorithmic patterns that transfer across implementation languages. Language-specific overlays capture implementation details tied to a specific DSL or programming model.

Load Order

  1. Read the shared root knowledge under docs/knowledge/optimizations/ and docs/knowledge/anti-patterns/ when the pattern is algorithmic.
  2. Load the language-specific optimization catalog skill for the chosen implementation language.
  3. Read language overlays in docs/knowledge/languages/<language>/... only when the implementation details depend on that surface.

Language-Specific Catalog Skills

Language keyLoad this skillLanguage-specific knowledge root
cutile-dsl/optimization-catalog-cutile-dsldocs/knowledge/languages/cutile-dsl/
cute-dsl/optimization-catalog-cute-dsldocs/knowledge/languages/cute-dsl/

Classification Rule

  • Shared root catalogs are for algorithmic patterns, workload-shape rules, and anti-patterns that transfer across DSLs.
  • Language overlays are for implementation details that depend on a specific API, compiler behavior, code-generation surface, or scheduling model.
  • When in doubt, keep the reusable mechanism in the shared root and add a language-specific overlay only for the implementation surface.

Current Migration State

  • The shared root catalogs in docs/knowledge/optimizations/ and docs/knowledge/anti-patterns/ remain the compatibility-preserving baseline.
  • New language-specific overlays are being added under docs/knowledge/languages/.
  • Existing references to the legacy root paths continue to work during the migration.

Knowledge Base Principles

The goal of this catalog is to build reusable cuTile kernel design knowledge, not to accumulate device folklore.

Every entry must therefore be written as:

  • a pattern or anti-pattern that can transfer across kernels,
  • with a clear context describing when it applies,
  • with explicit performance metrics affected,
  • with evidence separated into local validation, and generalized takeaway when relevant.

Device and architecture facts are encouraged when they sharpen the rule:

  • architecture families such as Blackwell or Hopper,
  • architecture capabilities such as Tensor Cores, TMA, thread block clusters, scheduler behavior, or shared-memory limits,
  • device-level specs such as peak FP16/BF16 TFLOP/s, peak memory bandwidth, ridge point, SM count, registers/SM, or SMEM capacity.

But those facts must be converted into reusable guidance. Entries should avoid collapsing into "kernel X on device Y liked config Z" unless that observation is only being used as evidence for a broader pattern.

How This Catalog Works

  1. Index below maps trigger conditions → optimization → detail file
  2. Orchestrator reads index to pick optimizations based on profiling results
  3. Kernel designer reads detail files to implement specific optimizations
  4. New optimizations: create detail file in docs/knowledge/optimizations/ + add row to index
  5. Failed optimizations: create anti-pattern in docs/knowledge/anti-patterns/ + add row below

Optimization Index

IDOptimizationTrigger ConditionsEst. ImpactPitfallsDetail File
O1Split-KV proportional block allocationDual-path kernel has strongly unbalanced latent vs decompressed work; equal block split leaves one path starvedVery HighRequires a reduction kernel and intermediate tensorsdocs/knowledge/optimizations/split-kv.md
O2Head grouping for shared-operand reuseSame operand is reused across heads (for example latent Z) and Bh=1 produces skinny per-head MMAs or near-zero TC utilizationVery HighRaises register pressure; not appropriate for per-head-only operands like decompressed K/Vdocs/knowledge/optimizations/head-grouping.md
O3Independent path schedulingAfter Split-KV, the latent and decompressed paths still want different streaming granularities or load schedulingLow-MedGains are modest if register pressure and occupancy do not improvedocs/knowledge/optimizations/independent-tiles.md
O4Swizzle schedulingTiled kernel reuses one operand across neighboring CTAs and block order measurably affects L2 localityLowCompute-bound kernels may see only marginal benefit; 1D remap adds index overheaddocs/knowledge/optimizations/swizzle.md
O5Latency hintsLoad/compute overlap tuning is needed after the kernel structure is already sound, and the per-path DRAM pressure differs enough that compiler guidance may help schedulingLowDifficult to isolate; hints are suggestions rather than guaranteesdocs/knowledge/optimizations/latency-hints.md
O6CGA thread block clustersHopper+ kernel has genuine cross-CTA data sharing opportunity or needs to reason correctly about num_ctas semantics and cluster launch behaviorMediumHardware-specific and easy to misuse when there is no real sharing benefitdocs/knowledge/optimizations/cga.md
O7Fast math for online softmaxOnline-softmax loop is heavy on exp2/division, larger tiles collapse compute throughput, and reduced-precision inference math is acceptableHighNot a substitute for sane tiling; gains shrink if spills or bandwidth dominatedocs/knowledge/optimizations/fast-math-online-softmax.md
O8Causal K-loop splitCausal attention has many fully unmasked K-tiles, only diagonal/tail tiles need mask logic, and future tiles can be skippedMedium-HighCan be neutral or negative if masking is no longer material on the target bottleneckdocs/knowledge/optimizations/causal-k-loop-split.md
O9Causal ProgramId remapTriangular work causes wave-tail imbalance across CTAs and a simple launch-order reversal is availableLow-MedSmall gain if work distribution is already uniform or the grid is tinydocs/knowledge/optimizations/causal-program-id-remap.md
O10Adaptive tile and occupancy autotuningBest tile/occupancy point changes with sequence length or device envelope; fixed manual choice underfills short shapes or overcommits long onesHighSearch space can explode if not curated; cannot rescue a structurally broken kerneldocs/knowledge/optimizations/adaptive-tile-autotuning.md
O11Pipeline-driven low-occupancy schedulingLarge unavoidable per-CTA state forces one CTA/SM or very low occupancy, and the kernel must win via overlap and scheduling rather than more resident warpsHighRequires architecture/DSL support for fine-grained scheduling; cannot be faked with a monolithic CTAdocs/knowledge/optimizations/pipeline-driven-low-occupancy.md

Anti-Pattern Index

IDAnti-PatternFailure ModeSourceDetail File
A1Equal block split across heterogeneous paths50/50 block allocation for unequal latent vs decompressed work produces sequential bottlenecks instead of overlapMLA-var6+ V0docs/knowledge/anti-patterns/equal-block-split.md
A2TILE_M=1 combine/decompressionSingle-row combine GEMMs disable Tensor Cores and leave a persistent tail at small sMLA-var6+ V0/V2/V3docs/knowledge/anti-patterns/tile-m-one-combine.md
A3Underfilled persistent concurrencyResident block budgets below the SM count leave the GPU idle and make overlap ineffectiveMLA-var6+ V4docs/knowledge/anti-patterns/underfilled-persistent.md
A4Register-ceiling persistent stagePersistent kernel lands at the register ceiling (255 regs/thread), collapses occupancy, and becomes latency-boundMLA-var6+ V4docs/knowledge/anti-patterns/spill-heavy-persistent.md
A5Blind large-tile portCopying a tile shape from another device without revalidating registers, SMEM, local-memory traffic, and grid size crosses a resource cliffFlashAttention learning chaindocs/knowledge/anti-patterns/blind-large-tile-port.md
A6Uniform causal maskingPaying full causal-mask logic on every K-tile wastes work even though most tiles are fully valid or fully skippedFlashAttention learning chaindocs/knowledge/anti-patterns/uniform-causal-masking.md
A7Sub-16 MMA dimensionShrinking any effective MMA dimension (M, N, or K) below 16 usually breaks Tensor Core coverage and explodes latency instead of fixing occupancyFlashMLA V1 manual probes + Tensor Core shape constraintsdocs/knowledge/anti-patterns/sub-16-mma-dimension.md
A8Blind dataflow flipRewriting a resource-sensitive Tensor Core kernel into an algebraically equivalent operand orientation changes codegen enough to reintroduce spills or worsen SMEM behaviorFlashMLA V1 → V2docs/knowledge/anti-patterns/blind-dataflow-flip.md

Cross-Referencing: Metrics → Optimizations

Profiling Metric StateLikely Optimizations
Equal-duration kernels with obviously unequal workO1 (Split-KV proportional block allocation)
Bh=1 or per-head skinny MMAs on a shared operandO2 (Head grouping)
Dual-path kernel plateaus near the ridge point after Split-KVO3 (Independent path scheduling)
L2 hit < 90% and neighboring CTAs reload the same operand tilesO4 (Swizzle scheduling)
Same kernel structure but different path-level memory pressure suggests compiler scheduling changes may matterO5 (Latency hints)
Cross-CTA data sharing on Hopper+ or confusion about what num_ctas actually controlsO6 (CGA thread block clusters)
Tensor Core/MMA structure is sound, but online-softmax special functions dominate the hot loopO7 (Fast math for online softmax)
Causal kernel still spends meaningful time in mask/control flow because many K-tiles are fully valid and future tiles are fully skippedO8 (Causal K-loop split)
Causal/triangular workload shows tail imbalance across CTAs or waves finish unevenlyO9 (Causal ProgramId remap)
Short shapes underfill the GPU while long shapes prefer different tiles or occupancy hintsO10 (Adaptive tile and occupancy autotuning)
Registers/SMEM force one CTA/SM, eligible warps stay very low, and the kernel is compute-bound but still under-utilizes Tensor CoresO11 (Pipeline-driven low-occupancy scheduling)
Combine stage has TILE_M=1 and TC Util = 0%A2 (TILE_M=1 combine/decompression)
Persistent resident blocks < SM count or waves/SM < 1A3 (Underfilled persistent concurrency)
Persistent stage at 255 regs/thread with single-digit occupancyA4 (Register-ceiling persistent stage)
Imported large tile causes register/SMEM cliffs, local-memory traffic, or abrupt grid shrinkage on the target deviceA5 (Blind large-tile port)
Causal masking logic is paid uniformly across all K-tiles despite obvious fully-valid and fully-skipped regionsA6 (Uniform causal masking)
Candidate tile drives any effective MMA dimension below 16, or Tensor Core FLOPs collapse far below algorithmic FLOPs after a "smaller tile" changeA7 (Sub-16 MMA dimension)
Proposed optimization is only an algebraic operand/dataflow flip, especially near a register or SMEM cliffA8 (Blind dataflow flip)

Knowledge Base Update Protocol

For the full update protocol, detail file template, and step-by-step instructions, load the /orchestration-workflow skill.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.15%
按下载量换算64

Claude

32.25%
按下载量换算59

Cursor

18.49%
按下载量换算34

Gemini CLI

9.18%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills