lixinhao commited on
Commit
67ffd65
·
verified ·
1 Parent(s): 6e39ace

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -114,7 +114,7 @@ from transformers import AutoModel, AutoTokenizer
114
  model_path = 'OpenGVLab/VideoChat-Flash-Qwen2_5-2B_res448'
115
 
116
  tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
117
- model = AutoModel.from_pretrained(model_path, trust_remote_code=True).half().cuda()
118
  image_processor = model.get_vision_tower().image_processor
119
 
120
  mm_llm_compress = False # use the global compress or not
 
114
  model_path = 'OpenGVLab/VideoChat-Flash-Qwen2_5-2B_res448'
115
 
116
  tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
117
+ model = AutoModel.from_pretrained(model_path, trust_remote_code=True).to(torch.bfloat16).cuda()
118
  image_processor = model.get_vision_tower().image_processor
119
 
120
  mm_llm_compress = False # use the global compress or not