Muna compiles stateless Python functions to run anywhere. This project is a playground for testing the Muna compiler. Over time, we expect to open-source more and more of the compiler infrastructure in this project.
First, install Muna for Python:
# Run this in Terminal
$ pip install --upgrade munaNext, head over to the Muna dashboard to generate an access key. Once generated, sign in to the CLI:
# Login to the Muna CLI
$ muna auth login <ACCESS KEY>The predictors directory contains several prediction functions, ranging from very simple functions to
AI inference with PyTorch. Internally, we use these functions to test language and library coverage in the compiler.
Use the Muna CLI to compile the function, providing the path to the module where the function is defined:
# Compile the decorated function at the module path
$ muna compile --overwrite path/to/module.pyThe compiler will load the entrypoint function, create a remote sandbox, and compile the function:
- Discover predictors to use in your apps.
- Join our Slack community.
- Check out our docs.
- Learn more about us on our blog.
- Reach out to us at hi@muna.ai.
Muna is a product of NatML Inc.

