credent007 commited on
Commit
0ebb85e
·
verified ·
1 Parent(s): c3b483d

Update llm.py

Browse files
Files changed (1) hide show
  1. llm.py +1 -1
llm.py CHANGED
@@ -17,7 +17,7 @@ processor = AutoProcessor.from_pretrained(
17
  model = AutoModelForImageTextToText.from_pretrained(
18
  model_name,
19
  device_map="auto",
20
- torch_dtype=torch.float16,
21
  trust_remote_code=True
22
  )
23
 
 
17
  model = AutoModelForImageTextToText.from_pretrained(
18
  model_name,
19
  device_map="auto",
20
+ dtype=torch.float16,
21
  trust_remote_code=True
22
  )
23