freeCS-dot-org commited on
Commit
2ad232e
1 Parent(s): 0871b1d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -0
README.md CHANGED
@@ -3,3 +3,37 @@ datasets:
3
  - openagi-project/OpenAGI-set-dpo-v0.1
4
  base_model: freecs/ThetaWave-7B-v0.1
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  - openagi-project/OpenAGI-set-dpo-v0.1
4
  base_model: freecs/ThetaWave-7B-v0.1
5
  ---
6
+
7
+ # OpenAGI-7B-v0.1
8
+
9
+ DPO tuned on a small set of GPT4 generated responses.
10
+
11
+ Give it a try:
12
+ ```python
13
+ from transformers import AutoModelForCausalLM, AutoTokenizer
14
+
15
+ device = "cuda" # the device to load the model onto
16
+
17
+ model = AutoModelForCausalLM.from_pretrained("openagi-project/OpenAGI-7B-v0.1")
18
+ tokenizer = AutoTokenizer.from_pretrained("openagi-project/OpenAGI-7B-v0.1")
19
+
20
+ messages = [
21
+ {"role": "user", "content": "Who are you?"},
22
+ ]
23
+
24
+ encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")
25
+
26
+ model_inputs = encodeds.to(device)
27
+ model.to(device)
28
+
29
+ generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
30
+ decoded = tokenizer.batch_decode(generated_ids)
31
+ print(decoded[0])
32
+ ```
33
+
34
+ *" My goal as the founder of FreeCS.org is to establish an Open-Source AI Research Lab driven by its Community. Currently, I am the sole contributor at FreeCS.org. If you share our vision, we welcome you to join our community and contribute to our mission at [freecs.org/#community](https://freecs.org/#community). "*
35
+ |- [GR](https://twitter.com/gr_username)
36
+
37
+
38
+ If you'd like to support this project, kindly consider making a [donation](https://freecs.org/donate).
39
+