SilverCoder66 commited on
Commit
1919853
1 Parent(s): c38abd4

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: cc-by-nc-4.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
  ---
4
+
5
+ Description TBD, thanks for checking in!
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
+ model = AutoModelForCausalLM.from_pretrained(repo_id)
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
+ ```
30
+
31
+
32
+
33
+
34
+