Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

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: 3 months ago
JSON representation

Examples of programs built using Modal

Lists

README

        




Modal Examples



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 as ordinary Python programs, with a
command like:

```bash
python -m 01_getting_started.hello_world
```

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 [**`11_notebooks/`**](11_notebooks) 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).