請問 Llama3-TAIDE-LX-8B-Chat-Alpha1是否可以設定cuda為GPU?

#11
by JessyNTHUELEBC - opened

參照網路其他模型的寫法,無法順利切換到GPU...
希望能得到您的解惑。
device = "cuda"
tokenizer = AutoTokenizer.from_pretrained("taide/Llama3-TAIDE-LX-8B-Chat-Alpha1", use_fast=False, token = my_token)
model = AutoModelForCausalLM.from_pretrained("taide/Llama3-TAIDE-LX-8B-Chat-Alpha1").to(device)

TAIDE org

您好,

請參考以下文章:

a. 檢查GPU是否可用
https://ithelp.ithome.com.tw/articles/10336255

Best regards.

Sign up or log in to comment