ka1kuk commited on
Commit
1f0be19
1 Parent(s): 1dc56fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,10 +7,10 @@ from PIL import Image
7
  from transformers import AutoModel, AutoTokenizer
8
 
9
  # Load the model and tokenizer
10
- model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True, torch_dtype=torch.float16)
11
  model = model.to(device='cuda')
12
 
13
- tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True)
14
  model.eval()
15
 
16
  @spaces.GPU
 
7
  from transformers import AutoModel, AutoTokenizer
8
 
9
  # Load the model and tokenizer
10
+ model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
11
  model = model.to(device='cuda')
12
 
13
+ tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
14
  model.eval()
15
 
16
  @spaces.GPU