Spaces:
Runtime error
Runtime error
Startup fails because stabilityai/stable-diffusion-2-1 now requires authentication
#2
by nootxlm - opened
This Space dies during model loading with:
OSError: stabilityai/stable-diffusion-2-1 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
The model has not been renamed or deleted โ it has been gated. Reading https://huggingface.co/api/models/stabilityai/stable-diffusion-2-1 without a token now returns HTTP 401, while a public control model (openai/clip-vit-base-patch32) returns 200 over the same route. This Space loads the model with no token, and its pinned transformers (4.27.4) converts that 401 into the misleading "not a valid model identifier" message above.
Two ways to revive it, both owner-side:
- Accept the model's license on the model page, add a Hugging Face token with access as a Space secret, and pass it at load time โ the Space then loads the original weights.
- Point the pipeline at an ungated mirror of the same weights, if one you trust exists.
I can't tell from outside which of those you'd prefer, so I'm leaving the choice with you โ but the diagnosis is checkable in one command: the API read above returns 401 today, and it returned 200 when this Space last worked.