silvercoder45 commited on
Commit
54875c6
1 Parent(s): f60dde1

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ ---
4
+
5
+ Description to load and test will be added soon. More details on training and data will be added aswell.
6
+
7
+
8
+ ### **Loading the Model**
9
+
10
+ Use the following Python code to load the model:
11
+
12
+ ```python
13
+ import torch
14
+ from transformers import AutoModelForCausalLM, AutoTokenizer
15
+
16
+ TBD
17
+ ```
18
+
19
+ ### **Generating Text**
20
+
21
+ To generate text, use the following Python code:
22
+
23
+ ```python
24
+ text = "Hi, my name is "
25
+ inputs = tokenizer(text, return_tensors="pt")
26
+
27
+ outputs = model.generate(**inputs, max_new_tokens=64)
28
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
29
+ ```