setfit icon indicating copy to clipboard operation
setfit copied to clipboard

model_head.pkl not loaded when HF repo is made private

Open Ioannis-Pikoulis opened this issue 2 years ago • 2 comments

Hello.

Whenever I use SetFitModel.from_pretrained(model_id, use_auth_token=...) to load a model from a private repo, the model_head.pkl is not found. When the repo is made public, the head is found and loaded as normal. My repo contains both model_head.pkl and pytorch_model.bin files.

Please check this please.

Ioannis-Pikoulis avatar Aug 31 '23 08:08 Ioannis-Pikoulis

Hi @Ioannis-Pikoulis, please see @tomaarsen's comment at https://github.com/huggingface/setfit/issues/409#issuecomment-1683762555

alvarobartt avatar Sep 01 '23 09:09 alvarobartt

Hello!

I'm unable to reproduce this, I'm afraid. The use_auth_token is also correctly passed to the hf_hub_download method that is responsible for downloading this file.

  • Tom Aarsen

tomaarsen avatar Nov 24 '23 14:11 tomaarsen