Update README.md
Browse files
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 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
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.
|