Spaces:
Running
Running
Update inference.py
Browse files- 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 |
|