You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug]: "Retry install" in model manager fails for gated models requiring a Hugging Face token after adding it #9829
When trying to download a gated model requiring an access token via Invoke's model manager (e.g. starter models), it naturally fails when no token is provided under the API keys. However, if a valid token is added after a failed attempt and the button "Retry install" in the install queue is pressed, the attempt still fails with the same error, saying that no token is available. Only when starting a completely new download attempt from the model manager (not the queue) does it properly pick up the access token.
What you expected to happen
That the "Retry install" function recognizes the changed / added token and uses it accordingly for the retry attempt.
How to reproduce the problem
1.) Try downloading a gated model without a Hugging Face token - e.g. FLUX.1-schnell_ae for a quick test. For testing, it also works by removing any existing Hugging Face from the API keys before the download attempt.
2.) Wait for the error saying that the model is gated and needs an access token.
3.) Add a valid Hugging Face token under the API keys, expand the install queue and click the "Retry install" button. The download will still fail.
Activity
fix(model-install): use the current Hugging Face login when retrying âĶ
fix(model-install): use the current Hugging Face login when retrying âĶ