luodian commited on
Commit
928b26e
1 Parent(s): 2d3e68b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -13
README.md CHANGED
@@ -29,19 +29,11 @@ This weight is for **initilizing training for Otter-MPT7B**. It's directly conve
29
 
30
  You can load and try this model using
31
  ```python
32
- load_bit = "bf16"
33
- precision = {}
34
- if load_bit == "bf16":
35
- precision["torch_dtype"] = torch.bfloat16
36
- elif load_bit == "fp16":
37
- precision["torch_dtype"] = torch.float16
38
- elif load_bit == "fp32":
39
- precision["torch_dtype"] = torch.float32
40
- model = OtterForConditionalGeneration.from_pretrained("luodian/OTTER-9B-LA-InContext", device_map="sequential", **precision)
41
- model.text_tokenizer.padding_side = "left"
42
- tokenizer = model.text_tokenizer
43
- image_processor = transformers.CLIPImageProcessor()
44
- model.eval()
45
  ```
46
 
47
  Leave us a message if you have any error or question. You can follow [Otter code](https://github.com/Luodian/Otter) (see training section) to further tune your model on top of it.
 
29
 
30
  You can load and try this model using
31
  ```python
32
+ model = OtterForConditionalGeneration.from_pretrained("luodian/OTTER-MPT7B-Init", device_map="sequential", **precision)
33
+ model.text_tokenizer.padding_side = "left"
34
+ tokenizer = model.text_tokenizer
35
+ image_processor = transformers.CLIPImageProcessor()
36
+ model.eval()
 
 
 
 
 
 
 
 
37
  ```
38
 
39
  Leave us a message if you have any error or question. You can follow [Otter code](https://github.com/Luodian/Otter) (see training section) to further tune your model on top of it.