← All projects
Project record1 mention
Originally shared on Hacker News

Jacq

Jacq is a DSL and compiler that turns files describing a model's configuration, weights, layers, and pipeline into a standalone CUDA inference runtime and a Python weight exporter; kernel descriptions can also generate CUDA harnesses, and an experimental vLLM patch compiles a jacq file into a vLLM build. Generating CUDA requires only Rust, while inference requires an NVIDIA GPU with CUDA.

Last shared
01 / The problem

What it addresses

Existing infrastructure/libraries made trying out attention algorithm ideas harder than it should be; Jacq shortens the experiment loop by letting an agent or the author edit the DSL and regenerate throwaway CUDA, while handling repetitive setup like tensor allocation, seeded inputs, launch wiring, timing, and output dumps.

02 / Source history

Shared over time

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

  1. Jacq

    Jacq is a DSL and compiler that turns files describing a model's configuration, weights, layers, and pipeline into a standalone CUDA inference runtime and a Python weight exporter; kernel descriptions can also generate CUDA harnesses, and an experimental vLLM patch compiles a jacq file into a vLLM build. Generating CUDA requires only Rust, while inference requires an NVIDIA GPU with CUDA.

    Problem: Existing infrastructure/libraries made trying out attention algorithm ideas harder than it should be; Jacq shortens the experiment loop by letting an agent or the author edit the DSL and regenerate throwaway CUDA, while handling repetitive setup like tensor allocation, seeded inputs, launch wiring, timing, and output dumps.

    Posted by @keithba · Original source ↗

    Story title · @keithba · · Source ↗

    Show HN: Jacq, a DSL that compiles model and kernel descriptions to CUDA

    Submitted URL · @keithba · · Source ↗

    https://github.com/ImpossibleComputing/jacq

    Source text · @keithba · · Source ↗

    So I created Jacq, a DSL and compiler. A jacq file describes a model’s configuration, weights, layers, and pipeline. Jacq turns it into a standalone CUDA inference runtime and a Python weight exporter. Kernel descriptions can also generate CUDA harnesses.

    Source text · @keithba · · Source ↗

    Building, validating, visualizing, and generating CUDA only require Rust. Of course, running inference does require an NVIDIA GPU, CUDA, Python dependencies, and weights. Jacq doesn't support other GPU vendors (AMD, etc) or Metal, yet

    Source text · @keithba · · Source ↗

    There's also an experimental vLLM patch to compile and patch your jacq file into a vLLM build, as well.

    Source text · @keithba · · Source ↗

    I was working (with agents) on testing out various attention algorithm ideas I had, and I found that the existing infrastructure/libraries made it more difficult than it should be.

    Source text · @keithba · · Source ↗

    my main motivation was shortening the experiment loop. I wanted the DSL to be the thing my agent or myself edited, then regenerate the CUDA and throw the generated code away.

    Source text · @keithba · · Source ↗

    Jacq also handles some of the repetitive setup stuff: tensor allocation, seeded inputs, launch wiring, timing, and all the output dumps for generating comparisons and what not.