RepositoryJuliaUSUnited States
EnzymeAD

EnzymeAD/Enzyme.jl

Julia bindings for the Enzyme automatic differentiator

595stars
116forks
375issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: automatic-differentiation

#1 Repository of the week

1
TINIX TRENDING·Topic: differentiable-programming

#1 Repository of the week

1
TINIX TRENDING·Topic: ad

#1 Repository of the week

The Enzyme High-Performance Automatic Differentiator of LLVM

Stable Dev Build Status Coverage

This is a package containing the Julia bindings for Enzyme. This is very much a work in progress and bug reports/discussion is greatly appreciated!

Enzyme is a plugin that performs automatic differentiation (AD) of statically analyzable LLVM. It is highly-efficient and its ability perform AD on optimized code allows Enzyme to meet or exceed the performance of state-of-the-art AD tools.

Enzyme.jl can be installed in the usual way Julia packages are installed

] add Enzyme

Enzyme.jl can be used by calling autodiff on a function to be differentiated as shown below:

using Enzyme, Test

f1(x) = x*x
# Returns a tuple of active returns, which in this case is simply (2.0,)
@test first(autodiff(Reverse, f1, Active(1.0))[1]) ≈ 2.0

For details, see the package documentation.

More information on installing and using Enzyme directly (not through Julia) can be found on our website: https://enzyme.mit.edu.

To get involved or if you have questions, please join our mailing list.

If using this code in an academic setting, please cite the following two papers (first for Enzyme as a whole, then for GPU+optimizations):

@inproceedings{NEURIPS2020_9332c513,
 author = {Moses, William and Churavy, Valentin},
 booktitle = {Advances in Neural Information Processing Systems},
 editor = {H. Larochelle and M. Ranzato and R. Hadsell and M. F. Balcan and H. Lin},
 pages = {12472--12485},
 publisher = {Curran Associates, Inc.},
 title = {Instead of Rewriting Foreign Code for Machine Learning, Automatically Synthesize Fast Gradients},
 url = {https://proceedings.neurips.cc/paper/2020/file/9332c513ef44b682e9347822c2e457ac-Paper.pdf},
 volume = {33},
 year = {2020}
}
@inproceedings{10.1145/3458817.3476165,
 author = {Moses, William S. and Churavy, Valentin and Paehler, Ludger and H\"{u}ckelheim, Jan and Narayanan, Sri Hari Krishna and Schanen, Michel and Doerfert, Johannes},
 title = {Reverse-Mode Automatic Differentiation and Optimization of GPU Kernels via Enzyme},
 year = {2021},
 isbn = {9781450384421},
 publisher = {Association for Computing Machinery},
 address = {New York, NY, USA},
 url = {https://doi.org/10.1145/3458817.3476165},
 doi = {10.1145/3458817.3476165},
 booktitle = {Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis},
 articleno = {61},
 numpages = {16},
 keywords = {CUDA, LLVM, ROCm, HPC, AD, GPU, automatic differentiation},
 location = {St. Louis, Missouri},
 series = {SC '21}
}

Similar Projects

Discover other similar projects and AI models.

RepositoryLLVM
EnzymeAD/Enzyme

High-performance automatic differentiation of LLVM and MLIR.

1.7k
Dec 2, 2026
RepositoryJulia
JuliaLang/julia

The Julia Programming Language

49.3k
Dec 2, 2026
RepositoryJulia
FluxML/Zygote.jl

21st century AD

1.6k
Nov 26, 2026
RepositoryJulia
JuliaDiff/ForwardDiff.jl

Forward Mode Automatic Differentiation for Julia

1.0k
Nov 16, 2026
RepositoryJulia
SciML/Optimization.jl

Mathematical Optimization in Julia. Local, global, gradient-based and derivative-free. Linear, Quadratic, Convex, Mixed-Integer, and Nonlinear Optimization in one simple, fast, and differentiable interface.

852
Dec 1, 2026
RepositoryJulia
SciML/Integrals.jl

A common interface for quadrature and numerical integration for the SciML scientific machine learning organization

246
Nov 10, 2026
RepositoryPython
exaloop/codon

A high-performance, zero-overhead, extensible Python compiler with built-in NumPy support

16.9k
Nov 28, 2026
RepositoryPython
numba/numba

NumPy aware dynamic Python compiler using LLVM

11.2k
Nov 25, 2026
RepositoryPython
gbionics/jaxsim

A differentiable physics engine and multibody dynamics library for control and robot learning.

207
Nov 23, 2026