ShinDJ commited on
Commit
0e37ea4
1 Parent(s): 826088a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -94,7 +94,7 @@ inputs = processor(
94
  chat_messages,
95
  image,
96
  return_tensors='pt',
97
- ).to('cuda:0')
98
 
99
  output = model.generate(
100
  **inputs,
@@ -134,7 +134,7 @@ with torch.no_grad():
134
  )
135
 
136
  bos_token = processor.tokenizer.bos_token_id
137
- chat_messages = torch.cat([torch.tensor([[bos_token]]),chat_messages],dim=-1).to('cuda:0')
138
 
139
 
140
  output = model.generate(
 
94
  chat_messages,
95
  image,
96
  return_tensors='pt',
97
+ )
98
 
99
  output = model.generate(
100
  **inputs,
 
134
  )
135
 
136
  bos_token = processor.tokenizer.bos_token_id
137
+ chat_messages = torch.cat([torch.tensor([[bos_token]]),chat_messages],dim=-1)
138
 
139
 
140
  output = model.generate(