Broken models [SOLVED]

#5
by rockguard - opened

Can you fix your models please. Every time I hit the generate button it immediately errors. It’s not the spaces including Toyworld but it the models that don’t work. The models are Yntec, digiplay and john6666. Please fix.

Thank you

Sorry, I'm helpless, I'll try summoning @John6666 [EDIT - Things are working right now and the error below can't be reproduced] in case this isn't a temporary problem. This is what I'm getting when trying to fetch models in fresh spaces:

Could not find model: Yntec/Yiffyverse. If it is a private or gated model, please provide your Hugging Face access token (https://huggingface.co/settings/tokens) as the argument for the `hf_token` parameter.

I'm using this space as an example: https://huggingface.co/spaces/Yntec/MiniToyWorld - it worked two days ago, now it can't find any model.

I copied your space and replicated the problem, then added a secret HF_TOKEN in the settings with a read-only token from my account and it started working again. If you don't want everyone using your token, adding the standard "log in with hf" button should also work (not tested)

@DaveK23 Thanks, hopefully a way can be found to keep current code working as before, sometimes it all takes is downgrading something to the version that worked 2 days ago in the requirements.txt file.

UPDATE: It's working right now! I just made a picture and fetched the models!
It seems to be an intermittent problem, all models may be broken when you try to use them, but they will come back later. I think it's a thing that will work permanently once its internals get fixed, and does not need any code change.

Yntec changed discussion title from Broken models to Broken models [INTERMITENT PROBLEM]

E... It looks like the handling of HF tokens has been changed, so I fixed it, but it's fixed!
It didn't even need fixing!😅

Edit:
It seems that HF is looking for a fix in the production environment, and I think the behavior of things like tokens is changing about once a week...

Edit:
HF is now fixing...
https://discuss.huggingface.co/t/model-does-not-exist-inference-api-dont-work/145242/3

@John6666 Thanks! Just saw and applied your changes, models now load faster than ever! And thanks to meganariley too!

The world was saved once again, at least the MiniToyWorld!

Yntec changed discussion status to closed
Yntec changed discussion title from Broken models [INTERMITENT PROBLEM] to Broken models [SOLVED]
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment