Skip to content

Latest commit

 

History

907 Commits

Folders and files

Repository files navigation

Tempest.jl

Note

This package is in active development.

Tempest is a Julia tensor program compiler that aims to be the equivalent of torch.compile. It can reuse memory, fuse operations, pick the best of many implementations for an operation, and eliminate launch overhead with CUDA graphs.

using Tempest, CUDA

loss(w, b, x) = sum(abs2, tanh.(w' * x .+ b))

w = CUDA.randn(32, 64)
b = CUDA.randn(64)
x = CUDA.randn(32, 16)

grad = compile((w, b, x) -> Tempest.withgradient(loss, w, b, x), w, b, x)
l, (dw, db, dx) = grad(w, b, x)

Releases

Contributors

Languages