khuangaf commited on
Commit
039dd31
·
1 Parent(s): 4eed8c5

update readme

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -39,8 +39,8 @@ decoder_input_ids = processor.tokenizer(input_prompt, add_special_tokens=False,
39
 
40
 
41
  outputs = model.generate(
42
- pixel_values.to(device),
43
- decoder_input_ids=decoder_input_ids.to(device),
44
  max_length=model.decoder.config.max_position_embeddings,
45
  early_stopping=True,
46
  pad_token_id=processor.tokenizer.pad_token_id,
 
39
 
40
 
41
  outputs = model.generate(
42
+ pixel_values.cuda(),
43
+ decoder_input_ids=decoder_input_ids.cuda(),
44
  max_length=model.decoder.config.max_position_embeddings,
45
  early_stopping=True,
46
  pad_token_id=processor.tokenizer.pad_token_id,