Spaces:
Running
on
Zero
Running
on
Zero
v1
Browse files
app.py
CHANGED
@@ -13,16 +13,9 @@ from meteor.load_meteor import load_meteor
|
|
13 |
from transformers import TextIteratorStreamer
|
14 |
from torchvision.transforms.functional import pil_to_tensor
|
15 |
|
16 |
-
# package install
|
17 |
-
import sys
|
18 |
-
import subprocess
|
19 |
-
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'pip'])
|
20 |
-
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'flash-attn', '--no-build-isolation'])
|
21 |
-
|
22 |
-
|
23 |
# loading meteor model
|
24 |
mmamba = load_mmamba('BK-Lee/Meteor-Mamba').to('cuda')
|
25 |
-
meteor, tok_meteor = load_meteor('BK-Lee/Meteor-MLM'
|
26 |
|
27 |
# param
|
28 |
for param in mmamba.parameters():
|
|
|
13 |
from transformers import TextIteratorStreamer
|
14 |
from torchvision.transforms.functional import pil_to_tensor
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
# loading meteor model
|
17 |
mmamba = load_mmamba('BK-Lee/Meteor-Mamba').to('cuda')
|
18 |
+
meteor, tok_meteor = load_meteor('BK-Lee/Meteor-MLM')
|
19 |
|
20 |
# param
|
21 |
for param in mmamba.parameters():
|