Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,8 @@ from transformers import AutoModel, AutoTokenizer
|
|
23 |
import torch
|
24 |
from PIL import Image
|
25 |
from transformers import AutoModel, AutoTokenizer
|
|
|
|
|
26 |
|
27 |
model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
|
28 |
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
|
|
|
23 |
import torch
|
24 |
from PIL import Image
|
25 |
from transformers import AutoModel, AutoTokenizer
|
26 |
+
import bitsandbytes as bnb
|
27 |
+
import accelerate
|
28 |
|
29 |
model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
|
30 |
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
|