macadeliccc commited on
Commit
7d14508
1 Parent(s): 0faa49d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -24
README.md CHANGED
@@ -13,30 +13,6 @@ license: apache-2.0
13
  + Completed 2 epochs
14
  + 2e-5 learning rate
15
 
16
- ## Code Example
17
-
18
- ```python
19
- from transformers import AutoTokenizer
20
- import transformers
21
- import torch
22
-
23
- model = "macadeliccc/WestLake-7B-v2-laser-truthy-dpo"
24
- messages = [{"role": "user", "content": "What is a large language model?"}]
25
-
26
- tokenizer = AutoTokenizer.from_pretrained(model)
27
- prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
28
- pipeline = transformers.pipeline(
29
- "text-generation",
30
- model=model,
31
- torch_dtype=torch.float16,
32
- device_map="auto",
33
- )
34
-
35
- outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
36
- print(outputs[0]["generated_text"])
37
-
38
- ```
39
-
40
  ## Evaluations
41
 
42
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6455cc8d679315e4ef16fbec/9CJeaPxf4XGJv7w114LKo.png)
 
13
  + Completed 2 epochs
14
  + 2e-5 learning rate
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ## Evaluations
17
 
18
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6455cc8d679315e4ef16fbec/9CJeaPxf4XGJv7w114LKo.png)