# Auth problem when using fine tuned model

**URL:** <https://discuss.huggingface.co/t/auth-problem-when-using-fine-tuned-model/28037>\
**Category:** Beginners\
**Created:** [December 17, 2022, 7:36pm UTC](https://discuss.huggingface.co/t/auth-problem-when-using-fine-tuned-model/28037 "2022-12-17T19:36:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MokaExpress](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@MokaExpress](https://discuss.huggingface.co/u/MokaExpress)\
**Post date:** [December 17, 2022, 7:36pm UTC](https://discuss.huggingface.co/t/auth-problem-when-using-fine-tuned-model/28037/1 "2022-12-17T19:36:04Z")

</div>

Hi there,  
I am a beginner to ML and doing uni project, facing deadline tomorrow.  
I successfully fine tuned a pre trained model, pushed to hub. Now it is about using it for predictions. There I got stuck.  
My repository xx/yy is public.

pred\_pipeline = pipeline(model=“xx/yy”)

OSError: xx/yy is not a local folder and is not a valid model identifier listed on ‘[Models - Hugging Face](https://huggingface.co/models)’  
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.

I did the following  
!huggingface-cli login  
Entered my token  
Change the code as below  
pred\_pipeline = pipeline(model=“xx/yy”, use\_auth\_token=True)

It didnt work.  
I seriously don’t know how to make it work. Cannot believe I am failing in the last step… Can anyone pls help me? Your help is highly appreciated

Regards, Shanshan
