prasanna2003 commited on
Commit
c77d8d4
1 Parent(s): 746c8a9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -1,3 +1,20 @@
1
  ---
2
  license: apache-2.0
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ datasets:
4
+ - openchat/openchat_sharegpt4_dataset
5
  ---
6
+
7
+ ## Usage
8
+ ```
9
+ from transformers import AutoTokenizer, AutoModelForCausalLM
10
+ tok = AutoTokenizer.from_pretrained('facebook/opt-350m')
11
+ model = AutoModelForCausalLM.from_pretrained('prasanna2003/opt-350m-instruct')
12
+
13
+ system_message = "You are AI language model helps the human."
14
+ input_prompt = "Define data science."
15
+
16
+ prompt = '<system>' + system_message + '<human>' + input_prompt + '<assistant>'
17
+ prompt = tokenizer(prompt, return_tensors='pt')
18
+ out = model.generate(**prompt, max_length=120)
19
+ print(tok.decode(out[0]))
20
+ ```