Error: 'NoneType' object has no attribute 'pr_url'

#4
by kzleong - opened

Hi @Narsil , I keep getting this error "NoneType' object has no attribute 'pr_url'" when trying to convert my PyTorch model. Why does it not work and how can I fix this?

Hard to say. Is the repo you want to convert public and could you share it ?

The error probably occurs here
https://huggingface.co/spaces/diffusers/convert/blob/main/convert.py#L202

Which means somehow huggingface_hub would return None, which seems odd to me.
If I can reproduce I'll fix it.

Yes, it's this repo:
kzleong/llava-1.5-13b-posture

Keeps happening to me as well with model lucianosb/boto-7B. I even tried with different tokens.

Ohhhh you need to be using this space instead: https://huggingface.co/spaces/safetensors/convert

(This space is made for diffusers so it doesn't identify the files properly, although the error should be improved for sure)

Thank you! I found the link to this space on this page: https://huggingface.co/docs/safetensors/en/convert-weights. Someone should definitely replace it

Thanks a lot for sharing this information: https://github.com/huggingface/safetensors/pull/465

kzleong changed discussion status to closed

Sign up or log in to comment