Update README.md
Browse files
README.md
CHANGED
|
@@ -15,8 +15,8 @@ from transformers import AutoTokenizer
|
|
| 15 |
from trl import AutoModelForCausalLMWithValueHead
|
| 16 |
import torch
|
| 17 |
|
| 18 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 19 |
-
model = AutoModelForCausalLMWithValueHead.from_pretrained("
|
| 20 |
|
| 21 |
messages = [{"role":"system", "content": ""},
|
| 22 |
{"role":"user", "content": "How are you doing?"},
|
|
|
|
| 15 |
from trl import AutoModelForCausalLMWithValueHead
|
| 16 |
import torch
|
| 17 |
|
| 18 |
+
tokenizer = AutoTokenizer.from_pretrained("entfane/gpt2_constitutional_classifier_with_value_head")
|
| 19 |
+
model = AutoModelForCausalLMWithValueHead.from_pretrained("entfane/gpt2_constitutional_classifier_with_value_head", device_map = "cuda")
|
| 20 |
|
| 21 |
messages = [{"role":"system", "content": ""},
|
| 22 |
{"role":"user", "content": "How are you doing?"},
|