macadeliccc
commited on
Commit
•
62c4197
1
Parent(s):
9807c21
Update README.md
Browse files
README.md
CHANGED
@@ -13,9 +13,24 @@ license: apache-2.0
|
|
13 |
+ Completed 2 epochs
|
14 |
+ 2e-5 learning rate
|
15 |
|
16 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
<pre>----Benchmark Complete----
|
21 |
2024-01-27 16:44:07
|
|
|
13 |
+ Completed 2 epochs
|
14 |
+ 2e-5 learning rate
|
15 |
|
16 |
+
## Code Example
|
17 |
+
|
18 |
+
```python
|
19 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
20 |
+
|
21 |
+
model_id = "macadeliccc/WestLake-7B-v2-laser-truthy-dpo"
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
23 |
+
|
24 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
25 |
|
26 |
+
text = "Come up with an idea for a TV show and write a short pilot script"
|
27 |
+
inputs = tokenizer(text, return_tensors="pt")
|
28 |
+
|
29 |
+
outputs = model.generate(**inputs, max_new_tokens=4096)
|
30 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
31 |
+
```
|
32 |
+
|
33 |
+
## Evaluations
|
34 |
|
35 |
<pre>----Benchmark Complete----
|
36 |
2024-01-27 16:44:07
|