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’
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