finalf0 commited on
Commit
3274a35
·
1 Parent(s): cecfa59

Update usage on Mac and GPUs do not support BF16

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -138,7 +138,7 @@ model = model.to(device='cuda', dtype=torch.bfloat16)
138
  #model = model.to(device='mps', dtype=torch.float16)
139
 
140
  tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-V', trust_remote_code=True)
141
- model.eval().cuda()
142
 
143
  image = Image.open('xx.jpg').convert('RGB')
144
  question = 'What is in the image?'
@@ -167,4 +167,4 @@ Please look at [GitHub](https://github.com/OpenBMB/OmniLMM) for more detail abou
167
 
168
  #### Statement
169
  * As a LLM, MiniCPM-V generates contents by learning a large mount of texts, but it cannot comprehend, express personal opinions or make value judgement. Anything generated by MiniCPM-V does not represent the views and positions of the model developers
170
- * We will not be liable for any problems arising from the use of the MinCPM-V open Source model, including but not limited to data security issues, risk of public opinion, or any risks and problems arising from the misdirection, misuse, dissemination or misuse of the model.
 
138
  #model = model.to(device='mps', dtype=torch.float16)
139
 
140
  tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-V', trust_remote_code=True)
141
+ model.eval()
142
 
143
  image = Image.open('xx.jpg').convert('RGB')
144
  question = 'What is in the image?'
 
167
 
168
  #### Statement
169
  * As a LLM, MiniCPM-V generates contents by learning a large mount of texts, but it cannot comprehend, express personal opinions or make value judgement. Anything generated by MiniCPM-V does not represent the views and positions of the model developers
170
+ * We will not be liable for any problems arising from the use of the MinCPM-V open Source model, including but not limited to data security issues, risk of public opinion, or any risks and problems arising from the misdirection, misuse, dissemination or misuse of the model.