Changing name of packaged and published model

Hi,

I accidentally forgot to change the name of a model before packaging and publishing it, but I no longer have access to the model or package itself, apart from through the Hub where I pushed it to.
I know it is possible through Settings to change the name of the HF repo, but since the wheel and the .dist-info doesn’t change this messes downloading the model up.

Is it possible to change the name of the HF repo AND the wheel + the .dist-info, so that I may pip install it using the name that I actually wanted?

Also on a sidenote: It seems faulty that the “Use in SpaCy” in the top right corner of a model repo wrongly bases the destination of the wheel off of the repo name, rather than the actual destination of the wheel.

1 Like

Yes, you can change your Hugging Face model name by renaming the repository on the Hugging Face Hub. Here’s how you can do it:

  1. Go to Your Model Repository:
  • Log in to your Hugging Face account.
  • Navigate to the repository of the model you want to rename.
  1. Access Settings:
  • Once in the repository, look for a “Settings” option.
  1. ** Rename or transfer this model**:
  • In the settings, you should see an option to rename or transfer the repository. Enter the new name and save the changes.
1 Like