huggingface / hub-docs

Docs of the Hugging Face Hub
http://hf.co/docs/hub
Apache License 2.0
303 stars 253 forks source link

Model Tree Refresh issues #1388

Closed ManuelFay closed 3 months ago

ManuelFay commented 3 months ago

System Info

Problem is on the model hub

Who can help?

@stevhliu

Information

Tasks

Reproduction

Hello, great work with the hub !

I was recently working with the new model tree feature and realized when you update a base_model, it also updates the model tree (good) but you can't force it back.

  1. Specify a base_model in the README metadata of the finetune
  2. Change the name of the base model from the hub settings
  3. Upload a new model on the hub with the old name

--> the tree widget includes the updated name, with no way of forcing it back to the new model....

Expected behavior

We should be able to change the model tree from the readme of the model card directly.

(Example) --> here the model tree points to the "deprecated" base model, instead of the oen specified in the readme/ https://huggingface.co/vidore/colpali-v1.1

image

image

Thanks a ton !

stevhliu commented 3 months ago

Thanks for the feedback! I think you'll be able to get more help on the https://github.com/huggingface/hub-docs repo 🙂

Pierrci commented 3 months ago

the tree widget includes the updated name, with no way of forcing it back to the new model....

Have you tried removing the base_model metadata from the readme, and adding it again?

ManuelFay commented 3 months ago

Yes actually, it removes the widget when the base_model is removed, but then upon putting it back in, it goes back to pointing to the "deprecated" model...

Pierrci commented 3 months ago

Indeed, it seems there's some bug on our side; thanks for reporting!

Pierrci commented 3 months ago

it should be fixed now :)