← All projects
Project record1 mention
Originally shared on Hacker News

i

A tensor computing language and compiler named i with a simple explicit scheduling model (loop splitting, loop ordering, and input "staging"). These mechanisms alone can express complex algorithms like FlashAttention, generating target code with loop fusion, minimized intermediate allocations, and "online" reductions. Currently includes a runtime and a compiler targeting C written in dependency-free Rust plus a minimal Python frontend, with a CUDA backend in progress. Still proof-of-concept stage and not yet fast.

Last shared
01 / The problem

What it addresses

Enable automatic discovery of FlashAttention-style optimizations, which is not feasible with current compilers.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. i

    A tensor computing language and compiler named i with a simple explicit scheduling model (loop splitting, loop ordering, and input "staging"). These mechanisms alone can express complex algorithms like FlashAttention, generating target code with loop fusion, minimized intermediate allocations, and "online" reductions. Currently includes a runtime and a compiler targeting C written in dependency-free Rust plus a minimal Python frontend, with a CUDA backend in progress. Still proof-of-concept stage and not yet fast.

    Problem: Enable automatic discovery of FlashAttention-style optimizations, which is not feasible with current compilers.

    Posted by @loganboyd · Original source ↗

    Source text · @loganboyd · · Source ↗

    I’m working on a tensor computing language/compiler called i with a simple explicit scheduling model (loop splitting, loop ordering, input “staging”).