-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: GPU notebooks with modal (#3711)
Update the modal edit example to use a T4 instance, and to read from a local notebook that queries nvidia-smi. Outstanding issues: - No venv installed (package installation not working) - Edits to remote notebook not currently synced back to local
- Loading branch information
Showing
4 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
# Deploying marimo on modal | ||
# Running marimo on Modal | ||
|
||
This folder contains examples of how to use marimo notebook on Modal. | ||
This folder contains examples of how to run marimo notebooks on | ||
[Modal](https://modal.com/), making it easy to get access to cloud GPUs. To get | ||
started, first create a modal account and follow their onboarding. You'll also | ||
need to install the [uv package manager](https://docs.astral.sh/uv/). | ||
|
||
[modal_app.py](modal_app.py) has an example of how to deploy a read-only marimo notebook as an app on Modal. | ||
## Editable notebooks | ||
[modal_edit.py](modal_edit.py) has an example of how to spin up an editable | ||
marimo notebook that runs on a Modal container. Run with | ||
|
||
```bash | ||
uvx -p 3.12 modal run modal_edit.py | ||
``` | ||
|
||
You can configure your GPU selection by editing `modal_edit`. | ||
|
||
## Run as apps | ||
|
||
[modal_app.py](modal_app.py) has an example of how to deploy a read-only marimo | ||
notebook as an app on Modal. Run with | ||
|
||
```bash | ||
uvx -p 3.12 modal run modal_run.py | ||
``` | ||
|
||
[modal_edit.py](modal_edit.py) has an example of how to spin up an editable marimo notebook that runs on a Modal container. Run with `modal run modal_edit.py` (requires Modal account and configured credentials). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters