Closed ericmjl closed 3 months ago
I don't think that's the problem. It seems modal deletes environment variables, which makes outlines.models.transformers("mistralai/Mistral-7B-Instruct-v0.2")
fail even after login. The only workaround I found is to manually add a key before importing the model.
(sending PR)
Describe the issue as clearly as possible:
The Modal example fails if run by a user who has a Modal account but does not have
HF_TOKEN
set in their account as a secret. The failure shows up because the user must give authenticated access to the model:I would like to propose that either the docs show the use of a model that has no such gating, or that the docs explicitly include the need to set HF_TOKEN and to accept the terms on the model page before accessing.
Steps/code to reproduce the bug:
Expected result:
Error message:
Outlines/Python version information:
Version information
Context for the issue:
I'm just trying out the Modal example as-is and seeing if there's any issues that I encounter, while putting on a "beginner user" persona.