Update README.md
Browse files
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"
|