heegyu commited on
Commit
179e694
1 Parent(s): 81f4ada

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - heegyu/wizard_vicuna_70k_v2
4
+ ---
5
+
6
+ Hyperparameters
7
+ - 3 epoch
8
+ - 1e-4 -> 1e-5 with cosine lr decay
9
+ - batch size 128
10
+ - max sequence length 2048
11
+
12
+ ```
13
+ # Load model directly
14
+ from transformers import AutoTokenizer, AutoModelForCausalLM
15
+
16
+ tokenizer = AutoTokenizer.from_pretrained("heegyu/WizardVicuna-pythia-410m-deduped")
17
+ model = AutoModelForCausalLM.from_pretrained("heegyu/WizardVicuna-pythia-410m-deduped")
18
+
19
+ inputs = tokenizer(["Human: Hi\n\nAssistant: "], return_tensors="pt")
20
+ outputs = model.generate(**inputs, max_new_tokens=16)
21
+ print(tokenizer.batch_decode(outputs, skip_special_tokens=False))
22
+ ```
23
+
24
+ output: `['Human: Hi\n\nAssistant: Hello! How can I assist you today?<|endoftext|>']`