https://github.com/modal-labs/modal-examples
Examples of programs built using Modal
https://github.com/modal-labs/modal-examples
cloud distributed gpu machine-learning modal python pytorch serverless stable-diffusion web
Last synced: 18 days ago
JSON representation
Examples of programs built using Modal
- Host: GitHub
- URL: https://github.com/modal-labs/modal-examples
- Owner: modal-labs
- License: mit
- Created: 2022-08-24T08:15:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-29T03:37:48.000Z (21 days ago)
- Last Synced: 2026-01-29T16:53:50.090Z (20 days ago)
- Topics: cloud, distributed, gpu, machine-learning, modal, python, pytorch, serverless, stable-diffusion, web
- Language: Python
- Homepage: https://modal.com/docs
- Size: 89.7 MB
- Stars: 1,092
- Watchers: 17
- Forks: 287
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a collection of examples for [Modal](https://modal.com/). Use these examples to learn Modal and build your own robust and scalable applications.
## Usage
First, sign up for a free account at [modal.com](https://modal.com/) and follow
the setup instructions to install the `modal` package and set your API key.
The examples are organized into several folders based on their category. You can
generally run the files in any folder much like you run ordinary Python programs, with a
command like:
```bash
modal run 01_getting_started/hello_world.py
```
Although these scripts are run on your local machine, they'll communicate with
Modal and run in our cloud, spawning serverless containers on demand.
## Examples
- [**`01_getting_started/`**](01_getting_started) through [**`14_clusters/`**](14_clusters) provide a guided tour through Modal's concepts and capabilities.
- [**`misc/`**](/misc) contains uncategorized, miscellaneous examples.
_These examples are continuously tested for correctness against Python **3.11**._
## License
The [MIT license](LICENSE).