Access to my own model on the hub
Hi,I am doing a university course, following the code in this notebookcolab.research.google.comGoogle ColabCurrently, I can’t access my model on Hugging Face hub. I keep running into this error (photo below).I have logged in using notebook_login(). My tokens are “write” access. I have deleted my tokens, generated new ones, trained and pushed my model again. But I still run into this error. I have followed discussion threads and asked my professor as well. Nothing has worked.I have checked and there is a config.json file on my hub. The model is private but I have access tokens. I really don’t know what the issue could be.image1427×516 28.3 KB
2024-10-14T11:51:39Z
How about this?github.com/huggingface/diffusersOSError: We couldn't connect to 'https://huggingface.co'opened09:08PM - 18 Dec 23 UTCclosed05:27PM - 26 Dec 23 UTCalirezaomnekyHi all,

I have pushed the weights of my Dreambooth model to Huggingface (I us…ed LoRa model). I confirm that pytorch_lora_weights.safetensors is indeed on Huggingface. When I want to get inference from the model, I run the following (as per the Readme file):

`from huggingface_hub.repocard import RepoCard
from diffusers import DiffusionPipeline
import torch

lora_model_id = <"lora-sdxl-dreambooth-id">
card = RepoCard.load(lora_model_id)
base_model_id = card.data.to_dict()["base_model"]

pipe = DiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
pipe.load_lora_weights(lora_model_id)
image = pipe("A picture of a sks dog in a bucket", num_inference_steps=25).images[0]
image.save("sks_dog.png")`

But I keep getting this error:

OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like "_path_" is not the path to a directory containing a file named pytorch_lora_weights.safetensors or 
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/diffusers/installation#offline-mode'.

Can you please let me know how to resolve this issue?