freeCS-dot-org commited on
Commit
308462c
1 Parent(s): 21dd739

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md CHANGED
@@ -1,3 +1,34 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+ # ThetaWave-7B v0.2
5
+
6
+ More info will be added in the future about this model.
7
+
8
+ - Made By: [GR](https://twitter.com/gr_username).
9
+ - Donate: [donation](https://www.buymeacoffee.com/gr.0).
10
+
11
+
12
+ Give it a try:
13
+ ```python
14
+ from transformers import AutoModelForCausalLM, AutoTokenizer
15
+
16
+ device = "cuda" # the device to load the model onto
17
+
18
+ model = AutoModelForCausalLM.from_pretrained("freecs/ThetaWave-7B-v0.2")
19
+ tokenizer = AutoTokenizer.from_pretrained("freecs/ThetaWave-7B-v0.2")
20
+
21
+ messages = [
22
+ {"role": "system", "content": "You are an AI assistant"},
23
+ {"role": "user", "content": "Who are you?"},
24
+ ]
25
+
26
+ encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")
27
+
28
+ model_inputs = encodeds.to(device)
29
+ model.to(device)
30
+
31
+ generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
32
+ decoded = tokenizer.batch_decode(generated_ids)
33
+ print(decoded[0])
34
+ ```