-
Notifications
You must be signed in to change notification settings - Fork 490
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
Update modal example #1111
Update modal example #1111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Just one minor comment.
Addressed the comments here -- any other comments? |
We generally pin to improve the stability of our examples. But you'll notice we don't pin Modal versions, because we expect to handle any issues that our own code changes cause. Makes sense for you to do the same!
I have mostly moved over to using forks or finetunes of gated models that are not themselves gated, e.g. from NousResearch, to avoid this bit of friction. |
Re: non-gated versions of models. I made that change to our version in this commit. Note that the |
- use ungated model - add sentencepiece dependency
Great, good idea! I added the ungated Mistral model, which also required a |
docs/cookbook/deploy-using-modal.md
Outdated
## Build the image | ||
|
||
First we need to define our container image. We download the Mistral-7B-v0.1 model from HuggingFace as part of the definition of the image so it only needs to be done once (you need to provide an [access token](https://huggingface.co/settings/tokens)) | ||
First we need to define our container image. We download the Mistral-7B-v0.1 model from HuggingFace as part of the definition of the image so it only needs to be done once (you need to provide an [access token](https://huggingface.co/settings/tokens)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we don't need this now?
I updated some of the text of the modal example to add more information on what's happening where, since Modal's general structure may be unfamiliar to new users.
List of changes:
import_model
to a.env
call when the image is created. This is more idiomatic Modal code. It was previously addressed in Documentation: Fix failing Modal example #1058, but this should be more current.