Spacy models in Huggingface Repo

Опубликовано: 04 Июль 2026
на канале: Deepak John Reji
1,014
24

This video details on pushing your existing your spaCy pipelines to the Hub to the huggingface repository.

commands detailed in the video:

Once you have your trained token classification model in a folder execute the following steps:
Step 1 : Login to huggingface using a cli command
huggingface-cli login

Step 2: copy the folder name where you model is saved and create an output folder and construct the following command
python -m spacy package ./en_ner_fashion ./output --build wheel
where "en_ner_fashion" is the folder where model is saved
"output" the file required to push the model will be generated here

Step 3: go to the dist path inside output folder
cd ./output/en_ner_fashion-0.0.0/dist

Step 4: execute the following line to push the .whl file
python -m spacy huggingface-hub push en_ner_fashion-0.0.0-py3-none-any.whl

source: https://huggingface.co/blog/spacy