Open psimm opened 3 months ago
Can you try pip install transformers outlines datasets accelerate -U
and report back whether that resolves your issue? You're on an old version of transformers and outlines.
@lapp0 Thanks, I reran with the latest versions of the libraries and it worked. As this runs in Modal I've specified them by version number instead of the pip install
command you wrote.
I used "mistralai/Mistral-7B-v0.1". throughout, which worked. Currently the text and the inference code of the cookbook say to use that model but the import_model
function uses "mistralai/Mistral-7B-Instruct-v0.2". This causes a mismatch.
Could you please update the cookbook example to use the same model throughout and use updated package versions?
outlines_image = Image.debian_slim(python_version="3.11").pip_install(
"outlines==0.0.46",
"transformers==4.44.0",
"datasets==2.21.0",
"accelerate==0.33.0",
)
Describe the issue as clearly as possible:
When trying to run the example code here: https://outlines-dev.github.io/outlines/cookbook/deploy-using-modal/
on Modal, I run into an error in
outlines_image.run_function(import_model)
.The HF_TOKEN variable is correctly set.
Error:
Stopping app - uncaught exception raised locally: RemoteError("Image build for im-MiWdGqu5JS8eOH9zxxNH4Z failed with the exception:\nException('data did not match any variant of untagged enum PyPreTokenizerTypeWrapper at line 40 column 3')").
Also, the text says "We download the Mistral-7B-v0.1 model from HuggingFace" but the code uses "mistralai/Mistral-7B-Instruct-v0.2". I tried it with both models and ran into the same error.
Steps/code to reproduce the bug:
Expected result:
Error message:
Outlines/Python version information:
outlines_image = Image.debian_slim(python_version="3.11").pip_install( "outlines==0.0.37", "transformers==4.38.2", "datasets==2.18.0", "accelerate==0.27.2", )
Context for the issue:
No response