MikeTrendsTrends right now

Yhn SportBaseball first seen 2 d ago, last 8 min ago, peak #3

FlashAttention kernel generated from about 25 lines of SQL

Original: Show HN: Automatic deduction of FlashAttention kernel from ~25 lines of SQL

A developer has shared a project that automatically derives a FlashAttention GPU kernel from roughly 25 lines of SQL, published as a benchmark in the xarray-sql repository on GitHub. The demonstration suggests a high-level query language can express a complex attention computation and be compiled down to optimized hardware code, prompting discussion about whether SQL could serve as a concise way to specify machine learning kernels.

Why now: Readers are intrigued by the surprising claim that a complex GPU kernel can be expressed and deduced automatically from so little SQL.

FlashAttentionSQLxarray-sqlGitHub

Open on hn →

Rank over time, top of the chart is #1. 171 snapshots from 2 d ago to 8 min ago.

Evidence

API: https://socialmediatrends-api.osmike.com/v1/trends/4283000