授權問題
#4
by
HCCRen
- opened
我已經獲得授權,為何還說我沒有權限?
code:
from ctransformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("taide/TAIDE-LX-7B-Chat-4bit", model_file="taide-7b-a.2-q4_k_m.gguf", model_type="llama", gpu_layers=50, token="HF_token")
error:
Cannot access gated repo for url https://huggingface.co/api/models/taide/TAIDE-LX-7B-Chat-4bit/revision/main.
Repo model taide/TAIDE-LX-7B-Chat-4bit is gated. You must be authenticated to access it.
您好,
- 需要確認此環境,是否有登入您的 huggingface account。
參考:https://huggingface.co/welcome
或是
- 使用 User Access Tokens 的方式,存取 huggingface。
參考:https://huggingface.co/docs/hub/security-tokens#user-access-tokens
Best regards.