chenjoya commited on
Commit
5eb5992
1 Parent(s): bc37f30

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -0
inference.py CHANGED
@@ -13,6 +13,7 @@ class LiveInfer:
13
  def __init__(self, ) -> None:
14
  args = parse_args()
15
  args.resume_from_checkpoint = 'live1+_aug_2e/'
 
16
  self.model, self.tokenizer = build_model_and_tokenizer(is_training=False, set_vision_inside=True, **asdict(args))
17
  self.model.to('cuda')
18
 
 
13
  def __init__(self, ) -> None:
14
  args = parse_args()
15
  args.resume_from_checkpoint = 'live1+_aug_2e/'
16
+ args.attn_implementation = 'sdpa'
17
  self.model, self.tokenizer = build_model_and_tokenizer(is_training=False, set_vision_inside=True, **asdict(args))
18
  self.model.to('cuda')
19