Update README.md
Browse files
README.md
CHANGED
@@ -49,14 +49,14 @@ Use the code below to get started with the model:
|
|
49 |
|
50 |
```python
|
51 |
import torch
|
52 |
-
from transformers import AutoTokenizer,
|
53 |
|
54 |
DEV = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
55 |
|
56 |
-
adapter_path = "SungJoo/llama2-7b-sft-detox
|
57 |
|
58 |
# Load model
|
59 |
-
model =
|
60 |
adapter_path,
|
61 |
torch_dtype=torch.bfloat16
|
62 |
).to(DEV)
|
|
|
49 |
|
50 |
```python
|
51 |
import torch
|
52 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
53 |
|
54 |
DEV = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
55 |
|
56 |
+
adapter_path = "SungJoo/llama2-7b-sft-dpo-detox"
|
57 |
|
58 |
# Load model
|
59 |
+
model = AutoModelForCausalLM.from_pretrained(
|
60 |
adapter_path,
|
61 |
torch_dtype=torch.bfloat16
|
62 |
).to(DEV)
|