uyzhang commited on
Commit
7f459c4
·
verified ·
1 Parent(s): 1ff321e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
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
- dtype="bfloat16",
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