teowu commited on
Commit
0033227
1 Parent(s): 7b864d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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={"":"cuda:0"})
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"