問題:Access restricted. You must be authenticated to access it.

#6
by ctshih - opened

我登入 huggingface 並填寫了一開始的表單後,在 model card 已經看到「You have been granted access to this model」,然後要在自家 Jupyter 載入模型時:

from transformers import pipeline
pipe = pipeline("text-generation", model="taide/Llama3-TAIDE-LX-8B-Chat-Alpha1")

出現了 Error,看起來是授權問題,加入 huggingface 的 access token 也無法解決:
pipe = pipeline("text-generation", model="taide/Llama3-TAIDE-LX-8B-Chat-Alpha1", use_auth_token='h(馬賽克)t'),請問如何解決?謝謝。

Error message:

(前面省略)
OSError: You are trying to access a gated repo.
Make sure to have access to it at https://huggingface.co/taide/Llama3-TAIDE-LX-8B-Chat-Alpha1.
401 Client Error. (Request ID: Root=1-663af1ce-7b5177af2c4eaf201a6650d2;9ba6f009-79de-42c5-9ead-a00152a95919)

Cannot access gated repo for url https://huggingface.co/taide/Llama3-TAIDE-LX-8B-Chat-Alpha1/resolve/main/config.json.
Access to model taide/Llama3-TAIDE-LX-8B-Chat-Alpha1 is restricted. You must be authenticated to access it.

aqweteddy changed discussion status to closed

Sign up or log in to comment