Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

TileFoundry

Hand the compiler to the agent.

Not an agent that becomes the compiler,
and not an agent plugged in as one of its passes.
The compiler stays a tool — the agent is simply the one holding it.

One prompt in  ·  612 tok/s out  ·  Compiler in the loop


PyPI Coverage TileFoundry optimizations shipped to TileOPs License: MIT

Documentation · Quick Start · Examples

Latest News

  • 10/2026 🚀: TileFoundry 0.0.3 is on PyPI — a new instruction-level schedule, a restructured analysis, and prefill examples on H200 and Apple AMX.
  • 10/2026 ⚡: Qwen3.8-27B prefill — a 64-layer gated-delta-net / attention hybrid, faster than SGLang at 1024 / 4096 / 8192 tokens, and 1.88x–1.03x faster at 128–1024 tokens, across the roofline ridge.
  • 10/2026 🍎: Qwen prefill on Apple AMX — Qwen3-1.7B and Qwen3.5-4B text prefill on an M2 Pro, with the large projections as FP16 AMX outer products.
  • 09/2026 📝: AI Compilers in the Agentic Era — where is the right boundary between coding agents and AI compilers?
  • 09/2026 🔧: TileFoundry 0.0.2 is on PyPI — bug fixes and refactoring across the analysis, parser, and IR layers.
Earlier
  • 08/2026 ⚡: Nemotron-3.5-Lightning-30B-A3B — a 52-layer Mamba2 / attention / MoE hybrid in a single mega decode kernel, one launch a step with no CUDA graph, reaching 97.5% of SGLang at short context and 83.2% at 262144.
  • 08/2026 📦: Four worked examples added — Qwen3-1.7B (tilelang), Qwen3.5-35B-A3B (tilelang), MiniCPM3-4B (CuTeDSL) and granite-4.0-h-small (CUDA C) — each one a real agent run kept whole, with the decode throughput it measured.
  • 08/2026 🎉: TileFoundry 0.0.1 is on PyPI — the first public release.

Quick Start

1 · Install

pip install "tilefoundry[all]"    # needs Python 3.12 or newer; [nvidia] or [apple] installs one vendor
tilefoundry                # check the install: the commands an agent will ask

This run also needs one NVIDIA GPU, pip install tilelang, the published Qwen/Qwen3-1.7B checkpoint on disk (3.8 GB), and a coding agent started in an empty directory.

2 · Hand it the prompt

There is no API to learn first. Give your coding agent this, with a checkpoint directory of your own:

Get real tokens out of Qwen3-1.7B on TileFoundry, and make it fast.
Weights and config: <checkpoint directory>
Backend: tilelang.

Everything about TileFoundry is to be asked of the `tilefoundry` command -- do not
ask a person, do not go looking elsewhere. The model itself is yours to research.

Done when this runs from outside, prints the continuation, and reports a
tokens-per-second number measured over the whole generation:

    python run.py \
        --prompt "Write a detailed explanation of how a GPU executes a matrix multiplication." \
        --max-new-tokens 2048

Measure over a long generation -- 2048 new tokens, more than 2000 characters of
text. A 32-token sample is too short for the number to mean anything.

That is the whole input — nothing under it is written by hand.

3 · Come back in two hours

Claude Opus 5 at xhigh reasoning effort worked 2.1 hours and 177 tool calls without a single interaction, and left a run.py behind — it prints the continuation, and the number it measured: 612 tok/s on one H200.

python run.py --ckpt <checkpoint directory> \
    --prompt "Write a detailed explanation of how a GPU executes a matrix multiplication." \
    --max-new-tokens 2048

The first run compiles the kernels — once, a few minutes.

Where to go next

That run is kept whole in examples/qwen3_1_7b-tilelang/, with three more beside it. The specifications are meant to be argued with: open an issue, or start from docs/develop.md.

License

This project is licensed under the MIT License.

Metadata

Release files for tilefoundry 0.0.4rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tilefoundry 0.0.4rc1
File Size Uploaded Provenance
tilefoundry-0.0.4rc1.tar.gz 1.6 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tilefoundry 0.0.4rc1
File Interpreter ABI Platform
tilefoundry-0.0.4rc1-py3-none-any.whl Python 3 none any Details

Total release size: 2.5 MB

Release files / tilefoundry-0.0.4rc1.tar.gz

Download URL tilefoundry-0.0.4rc1.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
3d8dcc2b01ae8d04f5f4873430349a7a0ca0c3d1e0267873c42969f80662621f
BLAKE2b-256 checksum
How to use checksums
d388a21b8b1ba5570cc6403983c2f6384e4722f547f4dd27117de3733169ef49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / tilefoundry-0.0.4rc1-py3-none-any.whl

Download URL tilefoundry-0.0.4rc1-py3-none-any.whl
Size 958.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a40ba070292941c070c5f9d8cd1b3ddd6c6db557e86ba8e170aa854b8bc4cf0
BLAKE2b-256 checksum
How to use checksums
6cca3459ff145f2d57d291d3d940b5fe7bc1e06666f7f67a5769f17bf4a86448
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for tilefoundry 0.0.4rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tilefoundry-0.0.4rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page