Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cookbook to run Outlines on the cloud with Modal #803

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Apr 11, 2024

Based on the example notebook in Modal's example repository. I also added a script that can be run directly in the /examples folder.

@rlouf rlouf added the documentation Linked to documentation and examples label Apr 11, 2024
@rlouf rlouf force-pushed the modal-deployment-example branch 2 times, most recently from 938a5fb to c34c45e Compare April 11, 2024 12:13
@rlouf rlouf marked this pull request as draft April 11, 2024 12:23
@rlouf rlouf force-pushed the modal-deployment-example branch 2 times, most recently from 96c29db to 8e54aef Compare April 15, 2024 16:42
Copy link

@charlesfrye charlesfrye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Charles from Modal here. This looks like a great demonstration of how Modal's platform and Outlines' tooling can work effectively together!

I have a few comments on framing, but you're free to take or leave them.

and don't have experience or time to set up the necessary cloud infrastructure.

I would instead say "want to be able to quickly and easily provision, configure, and orchestrate cloud infrastructure". Even folks with experience often end up able to move more quickly with Modal, because we don't just simplify (no k8s ingress config, no certs), we also make things faster (faster container builds and boots, hot-reloading development servers).

here an A100 with 80Gb memory

Should be GB.

modal token set

modal setup should give a better first experience.

We then need to define a main function

The function doesn't have to be called main, it just usually is. local_entrypoint does the work that special names like main do in other runtimes, like C/Python.

@charlesfrye
Copy link

And let me know if you have any questions!

@rlouf
Copy link
Member Author

rlouf commented Apr 16, 2024

Thank you so much @charlesfrye !

@rlouf rlouf marked this pull request as ready for review April 16, 2024 07:53
@rlouf rlouf merged commit 895a82e into main Apr 16, 2024
4 checks passed
@rlouf rlouf deleted the modal-deployment-example branch April 16, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Linked to documentation and examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants