Skip to content

Unauthorized access error with Mistral 7B in Next.js despite successful huggingface-cli login" #1294

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

Open
2 tasks done
diegosalloumpro opened this issue Apr 24, 2025 · 1 comment
Labels
new model Request a new model

Comments

@diegosalloumpro
Copy link

Model description

"Could not locate ONNX file error when trying to load Mistral 7B in Next.js"
"Authentication issues with gated models in Next.js server environment"

Prerequisites

  • The model is supported in Transformers (i.e., listed here)
  • The model can be exported to ONNX with Optimum (i.e., listed here)

Additional information

No response

Your contribution

"Could not locate ONNX file error when trying to load Mistral 7B in Next.js"
"Authentication issues with gated models in Next.js server environment"

@diegosalloumpro diegosalloumpro added the new model Request a new model label Apr 24, 2025
@xenova
Copy link
Collaborator

xenova commented Apr 24, 2025

Hi there 👋 the huggingface-cli is for the python library to log in. For Transformers.js, you should instead set the HF_TOKEN environment variable. See here for more information: https://huggingface.co/docs/transformers.js/en/guides/private

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new model Request a new model
Projects
None yet
Development

No branches or pull requests

2 participants