kirchik47 commited on
Commit
4a69b50
·
1 Parent(s): dcc8a5e

Update modeling_GOT.py

Browse files
Files changed (1) hide show
  1. custom_got/modeling_GOT.py +1 -1
custom_got/modeling_GOT.py CHANGED
@@ -581,7 +581,7 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
581
  with torch.autocast("cpu", dtype=torch.bfloat16):
582
  output_ids = self.generate(
583
  input_ids,
584
- images=[image_tensor_1.unsqueeze(0).half().cuda()],
585
  do_sample=False,
586
  num_beams = 1,
587
  no_repeat_ngram_size = 20,
 
581
  with torch.autocast("cpu", dtype=torch.bfloat16):
582
  output_ids = self.generate(
583
  input_ids,
584
+ images=[image_tensor_1.unsqueeze(0).half()],
585
  do_sample=False,
586
  num_beams = 1,
587
  no_repeat_ngram_size = 20,