Commit 67f91de8 authored by raojy's avatar raojy 💬
Browse files

Update run_Transformers_imgedit.py

parent d6f1ce50
......@@ -8,7 +8,7 @@ from PIL import Image
model_path = "inclusionAI/LLaDA2.0-Uni"
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_path, device_map="cuda", torch_dtype="bfloat16", trust_remote_code=True
model_path, device_map="auto", torch_dtype="bfloat16", trust_remote_code=True
).eval()
model.tokenizer = tokenizer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment