xarray-sql

What does it do?

It provides a SQL interface for array datasets, treating Xarray Datasets like tables so SQL queries can run against them on a chosen query engine. [1] For example, it can register a dataset as a table, compute a climatology (the mean annual cycle) in SQL, and convert the result back to Xarray for plotting. [2a][2b]

Activity, over time

Daily observations from the public event archive.

Attention

Daily stars & forks

Loading attention chart

Star accumulation

Cumulative stars

Loading star accumulation chart

Pull requests

Daily opens & merges

Loading pull requests chart

Conversations

Daily issues & comments

Loading conversations chart

Community

Daily accounts & reviews

Loading community chart

Releases

Daily releases

Loading releases chart

Mentions

10posts · 30d
Nov 40 posts
  1. Bluesky · · @al.merose.com

    With my friend @realcromwellian.bsky.social’s help (and his Mac Studio), we got a 126M param NanoGPT model training in ~165s — primarily written in SQL. github.com/xqlsystems/xarray-sql/blob/main/benchm…

    2 likes
  2. Show HN: Automatic deduction of FlashAttention kernel from ~25 lines of SQL github.com/xqlsystems/xarray-sql/blob/6debe2495dc… (news.ycombinator.com)

    17 views
  3. Reddit · · r/hackernews · u/HNMod

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

    1 point · 1 comment
  4. Show HN: Automatic deduction of FlashAttention kernel from ~25 lines of SQL github.com/xqlsystems/xarray-sql/blob/6debe2495dc… (news.ycombinator.com)

  5. Show HN: Automatic deduction of FlashAttention kernel from ~25 lines of SQL | Discussion

    1 like
  6. Show HN: Automatic deduction of FlashAttention kernel from ~25 lines of SQL github.com/xqlsystems/xarray-sql/blob/6debe2495dc…

  7. Hacker News · · alxmrs

    Show HN: Automatic deduction of FlashAttention kernel from ~25 lines of SQL In this demo, we automatically deduce a FlashAttention kernel with ~25 lines of SQL, which just expresses vanilla attention. This is possible due to three portable SQL extensions that we’re building: - xarray-sql: a library that efficiently represents petabyte scale array datasets in the cloud as tables (relations). - ddx: a database extension that adds automatic differentiation in the style of JAX to standard SQL, assuming the above array data model. - einfold: a modular query planner for fast tensor contractions in vanilla SQL, again, assuming the above array data model. My hope is that the relational model and algebra provide fresh perspectives on how we might do accelerator programming. Here, our thesis is that separating the logical layers in a tensor program from the physical layers is both more correct and more scalable. If the Bitter Lesson is a central dogma of machine learning, then why not formalize it with relational algebra? If this interests you and you’d like to tinker with us at the intersection of database theory and ML systems, join us on Discord at xql.systems (link at the bottom). Cheers.

    26 points · 1 comment
  8. Bluesky · · @al.merose.com

    New result: Automatic derivation of FlashAttention from vanilla attention in ~25 lines of SQL via three portable extensions. github.com/xqlsystems/xarray-sql/blob/6debe2495dc…

    27 likes · 3 reposts

Latest stargazers

The last 10 distinct accounts we observed this year.

Most active participants

PR, issue, comment & review events in the past year.

Packages

2
PackageVersionDownloads · 30dTrend · 30d
———
v0.6.0
≥1.1K

Live mentions badge

Show how many posts mention your project in the last 30 days.

Live mentions · last 30 days
xqlsystems/xarray-sql mentions in the last 30 days