# Show HN：从约 25 行 SQL 自动推导 FlashAttention kernel

> 原标题：Show HN: Automatic deduction of FlashAttention kernel from ~25 lines of SQL

- 来源：Hacker News 首页
- 发布时间：2026-10-30T20:09:47.000Z
- AX AI 日报：https://ai-daily.ax0x.ai/items/o5hvkhyolpr8hj136207v7ug5
- 原文：https://github.com/xqlsystems/xarray-sql/blob/6debe2495dcb4e8fac20ab97df5b89baae2a31a6/benchmarks/ml/01_attention.py

## 摘要

有开发者展示了从约 25 行 SQL 自动推导出 FlashAttention kernel 的方法，相关代码位于 xarray-sql 仓库的 benchmarks/ml 目录下 01_attention.py 文件中，该文件共 322 行。
