thwin27 commited on
Commit
230cb2b
1 Parent(s): a80bd3b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -28,7 +28,7 @@ torch.cuda.set_device(0)
28
 
29
  model_id_or_path = "thwin27/Aria-sequential_mlp-bnb_nf4"
30
 
31
- model = AutoModelForCausalLM.from_pretrained(model_id_or_path, torch_dtype=torch.bfloat16, trust_remote_code=True)
32
  processor = AutoProcessor.from_pretrained(model_id_or_path, trust_remote_code=True)
33
 
34
  image_path = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"
 
28
 
29
  model_id_or_path = "thwin27/Aria-sequential_mlp-bnb_nf4"
30
 
31
+ model = AutoModelForCausalLM.from_pretrained(model_id_or_path, device_map="auto", torch_dtype=torch.bfloat16, trust_remote_code=True)
32
  processor = AutoProcessor.from_pretrained(model_id_or_path, trust_remote_code=True)
33
 
34
  image_path = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"