y0un92 commited on
Commit
d2f8bd3
1 Parent(s): 65c8ee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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)