Update README.md
Browse files
README.md
CHANGED
|
@@ -45,6 +45,7 @@ This dataset enables Bee-8B to achieve exceptional performance, particularly in
|
|
| 45 |
|
| 46 |
```python
|
| 47 |
import requests
|
|
|
|
| 48 |
from PIL import Image
|
| 49 |
from transformers import AutoModel, AutoProcessor
|
| 50 |
|
|
@@ -53,7 +54,7 @@ model_path = "Open-Bee/Bee-8B-RL"
|
|
| 53 |
# Load model
|
| 54 |
model = AutoModel.from_pretrained(
|
| 55 |
model_path,
|
| 56 |
-
|
| 57 |
trust_remote_code=True,
|
| 58 |
).to("cuda")
|
| 59 |
|
|
|
|
| 45 |
|
| 46 |
```python
|
| 47 |
import requests
|
| 48 |
+
import torch
|
| 49 |
from PIL import Image
|
| 50 |
from transformers import AutoModel, AutoProcessor
|
| 51 |
|
|
|
|
| 54 |
# Load model
|
| 55 |
model = AutoModel.from_pretrained(
|
| 56 |
model_path,
|
| 57 |
+
torch_dtype=torch.bfloat16,
|
| 58 |
trust_remote_code=True,
|
| 59 |
).to("cuda")
|
| 60 |
|