Update README.md
Browse files
README.md
CHANGED
@@ -12,7 +12,7 @@ import torch
|
|
12 |
from transformers import AutoModelForCausalLM
|
13 |
|
14 |
model = AutoModelForCausalLM.from_pretrained("q-future/one-align", trust_remote_code=True,
|
15 |
-
torch_dtype=torch.float16, device_map=
|
16 |
|
17 |
from PIL import Image
|
18 |
url = "https://raw.githubusercontent.com/Q-Future/Q-Align/main/fig/singapore_flyer.jpg"
|
|
|
12 |
from transformers import AutoModelForCausalLM
|
13 |
|
14 |
model = AutoModelForCausalLM.from_pretrained("q-future/one-align", trust_remote_code=True,
|
15 |
+
torch_dtype=torch.float16, device_map="auto")
|
16 |
|
17 |
from PIL import Image
|
18 |
url = "https://raw.githubusercontent.com/Q-Future/Q-Align/main/fig/singapore_flyer.jpg"
|