Feature Extraction
Safetensors
English
minicpmv
VisRAG
custom_code
tcy6 commited on
Commit
decd088
·
verified ·
1 Parent(s): fa9ae76

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -120,7 +120,7 @@ def encode(text_or_image_list):
120
 
121
  model_name_or_path = "openbmb/VisRAG-Ret"
122
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True)
123
- model = AutoModel.from_pretrained(model_name_or_path, torch_dtype=torch.bfloat16, trust_remote_code=True)
124
  model.eval()
125
 
126
  queries = ["What does a dog look like?"]
 
120
 
121
  model_name_or_path = "openbmb/VisRAG-Ret"
122
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True)
123
+ model = AutoModel.from_pretrained(model_name_or_path, torch_dtype=torch.bfloat16, trust_remote_code=True).cuda()
124
  model.eval()
125
 
126
  queries = ["What does a dog look like?"]