Spaces:
Runtime error
Runtime error
File size: 341 Bytes
fba67f5 f1cfe0e fba67f5 f1cfe0e fba67f5 185ec49 fba67f5 |
1 2 3 4 5 6 7 8 9 10 |
import hf_api
# Authenticate with Hugging Face
hf_api.set_access_token(None) # Use the default access token
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B")
model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B") |