Spaces:
Running
on
Zero
Running
on
Zero
shambhuDATA
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,17 +3,18 @@ from transformers import AutoModelForCausalLM, AutoProcessor, GenerationConfig
|
|
3 |
from PIL import Image
|
4 |
import torch
|
5 |
import spaces
|
|
|
6 |
|
7 |
# Load the processor and model
|
8 |
processor = AutoProcessor.from_pretrained(
|
9 |
-
'allenai/
|
10 |
trust_remote_code=True,
|
11 |
torch_dtype='auto',
|
12 |
device_map='auto'
|
13 |
)
|
14 |
|
15 |
model = AutoModelForCausalLM.from_pretrained(
|
16 |
-
'allenai/
|
17 |
trust_remote_code=True,
|
18 |
torch_dtype='auto',
|
19 |
device_map='auto'
|
|
|
3 |
from PIL import Image
|
4 |
import torch
|
5 |
import spaces
|
6 |
+
allenai
|
7 |
|
8 |
# Load the processor and model
|
9 |
processor = AutoProcessor.from_pretrained(
|
10 |
+
'allenai/MolmoE-1B-0924',
|
11 |
trust_remote_code=True,
|
12 |
torch_dtype='auto',
|
13 |
device_map='auto'
|
14 |
)
|
15 |
|
16 |
model = AutoModelForCausalLM.from_pretrained(
|
17 |
+
'allenai/MolmoE-1B-0924',
|
18 |
trust_remote_code=True,
|
19 |
torch_dtype='auto',
|
20 |
device_map='auto'
|