jax-triton  by jax-ml

JAX integrations for OpenAI Triton

created 3 years ago
411 stars

Top 72.2% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides integrations between JAX and OpenAI Triton, enabling users to write custom, high-performance kernels for JAX arrays. It targets researchers and engineers needing to optimize complex computations beyond standard JAX operations, offering significant speedups through custom GPU kernels.

How It Works

The core of jax-triton is the jax_triton.triton_call function, which allows seamless integration of Triton kernels within JAX workflows, including jax.jit. This enables users to define custom kernels using Triton's Pythonic API and apply them directly to JAX arrays, leveraging Triton's low-level control over GPU hardware for performance.

Quick Start & Requirements

Highlighted Details

  • Enables writing custom GPU kernels using Triton's domain-specific language.
  • Supports integration within jax.jit-compiled functions for seamless performance optimization.
  • Provides examples for advanced use cases like fused attention.

Maintenance & Community

  • This is not an officially supported Google product.
  • Development can be done via editable install after cloning the repository.
  • Tests are available via pytest.

Licensing & Compatibility

  • The repository does not explicitly state a license in the README.

Limitations & Caveats

The project requires building Triton from source, which can add complexity to the setup process. Compatibility with specific CUDA versions or JAX builds may require manual verification.

Health Check
Last commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
1
Star History
23 stars in the last 90 days

Explore Similar Projects

Starred by Jiayi Pan Jiayi Pan(Author of SWE-Gym; AI Researcher at UC Berkeley), Thomas Wolf Thomas Wolf(Cofounder of Hugging Face), and
3 more.

levanter by stanford-crfm

0.5%
628
Framework for training foundation models with JAX
created 3 years ago
updated 22 hours ago
Feedback? Help us improve.