Commit
•
11595b9
1
Parent(s):
2fc1dcb
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1 |
---
|
2 |
license: cc-by-nc-4.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
```
|