# optimizing-attention-flash

> Optimizes transformer attention with Flash Attention for 2-4x speedup and 10-20x memory reduction.

Optimizes transformer attention with Flash Attention for 2-4x speedup and 10-20x memory reduction. Use when training/running transformers with long sequences (>512 tokens), encountering GPU memory issues with attention, or need faster inference. Supports PyTorch native SDPA, flash-attn library, H100 FP8, and sliding window attention.

- Type: Skill
- Made by: Orchestra-Research
- Category: AI & agents
- Formats: Skills
- Version: b8a7245
- Source: https://github.com/orchestra-research/ai-research-skills/tree/HEAD/10-optimization/flash-attention
- Page: https://pluginboard.ai/skills/optimizing-attention-flash

## Works with

- ChatGPT
- Claude
- Gemini
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- Replit
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### ChatGPT

In ChatGPT: Download the optimizing-attention-flash folder and zip it, then Plugins → Skills → Create → Upload from your computer. Business and Enterprise plans.

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### Claude

In Claude (web or desktop): Download the optimizing-attention-flash folder and zip the folder itself, then upload it in Customize → Skills.

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### Gemini

In Gemini: Download the optimizing-attention-flash folder, then at gemini.google.com click Customize → Skills → Create → Upload and pick the folder (or a .zip of it).

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### GitHub Copilot

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention ~/.copilot/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### Cursor

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention ~/.cursor/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### Claude Code

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention ~/.claude/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

Or all of AI Research Skills (Orchestra), in Claude Code:

```text
/plugin marketplace add Orchestra-Research/AI-Research-SKILLs
/plugin install rag@ai-research-skills
```

### Codex

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention ~/.agents/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### Antigravity

In Antigravity: Copy the optimizing-attention-flash folder into ~/.gemini/config/skills (Antigravity app and IDE) or ~/.gemini/antigravity-cli/skills (Antigravity CLI).

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### Gemini CLI

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention ~/.gemini/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### Replit

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention .agents/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### OpenClaw

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention ~/.openclaw/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### OpenCode

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention ~/.config/opencode/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

### Hermes Agent

Run in your terminal:

```shell
npx -y degit Orchestra-Research/AI-Research-SKILLs/10-optimization/flash-attention ~/.hermes/skills/optimizing-attention-flash
```

View the folder on GitHub: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/HEAD/10-optimization/flash-attention

---
From Pluginboard (https://pluginboard.ai).
