Reputation: 1
MaxRetryError(
"HTTPSConnectionPool(host='huggingface.co', port=443):
Max retries exceeded with url:
/api/models/unsloth/Meta-Llama-3.1-8B-bnb-4bit/commits/main?p=1
(Caused by NewConnectionError(
'<urllib3.connection.HTTPSConnection object at 0x7f4d9e49bed0>:
Failed to establish a new connection:
[Errno 101] Network is unreachable')
)"
),
'(Request ID: c60c5b88-b505-4258-864c-04cb2d960132)'
)
model, tokenizer = FastLanguageModel.from_pretrained(
"unsloth/Meta-Llama-3.1-8B",
max_seq_length=max_seq_length,
dtype=dtype,
load_in_4bit=load_in_4bit)
curl www.google.com
import os
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("bert-base-chinese")
Upvotes: 0
Views: 62