OSError: You are trying to access a gated repo.
#32
by
eletromarlon
- opened
Eu estou tentando utilizar este modelo mas ainda não obtive nenhum sucesso. (i try to use this but not have success)
My code:
import torch
from transformers import pipeline
from huggingface_hub import login
login(token = 'hf_caracters')
model_id = "meta-llama/Llama-3.2-1B"
pipe = pipeline(
"text-generation",
model=model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
pipe("The key to life is")
Try using
"huggingface-cli login" in your terminal and it will ask for access token
Generate your token from clicking on your profile picture top right and click on access token create new and copy id and paste in terminal