Update README.md
Browse files
README.md
CHANGED
@@ -1,37 +1,41 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
# TinyLlama-1.1B-2.5T-chat
|
2 |
+
It was created by starting with the TinyLlama-1.1B-2.5T-chat and training it on the open assistant dataset. We have attached the wandb report in pdf form to view the training run at a glance.
|
3 |
+
|
4 |
+
# Reson
|
5 |
+
This model was fine tuned to allow it to follow direction and is a steeping stone to further training, but still would be good for asking qestions about code.
|
6 |
+
|
7 |
+
# How to use
|
8 |
+
You will need the transformers>=4.31
|
9 |
+
```python
|
10 |
+
from transformers import AutoTokenizer
|
11 |
+
import transformers
|
12 |
+
import torch
|
13 |
+
model = "AIGym/TinyLlama-1.1B-2.5T-chat"
|
14 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
15 |
+
pipeline = transformers.pipeline(
|
16 |
+
"text-generation",
|
17 |
+
model=model,
|
18 |
+
torch_dtype=torch.float16,
|
19 |
+
device_map="auto",
|
20 |
+
)
|
21 |
+
prompt = "What are the values in open source projects?"
|
22 |
+
formatted_prompt = (
|
23 |
+
f"### Human: {prompt}### Assistant:"
|
24 |
+
)
|
25 |
+
sequences = pipeline(
|
26 |
+
formatted_prompt,
|
27 |
+
do_sample=True,
|
28 |
+
top_k=50,
|
29 |
+
top_p = 0.7,
|
30 |
+
num_return_sequences=1,
|
31 |
+
repetition_penalty=1.1,
|
32 |
+
max_new_tokens=500,
|
33 |
+
)
|
34 |
+
for seq in sequences:
|
35 |
+
print(f"Result: {seq['generated_text']}")
|
36 |
+
```
|
37 |
+
|
38 |
+
# Referrals
|
39 |
+
Run Pod - This is who I use to train th emodels on huggingface. If you use it we both get free crdits. - <a href="https://runpod.io?ref=kilq83n1" target="_blank" style="color: #3498db; text-decoration: none; font-weight: bold;">Visit Runpod's Website!</a>
|
40 |
+
|
41 |
+
Paypal - If you want to leave a tip, it is appecaheted. - <a href="paypal.me/OpenSourceTraining" target="_blank" style="color: #3498db; text-decoration: none; font-weight: bold;">Visit My Paypal!</a>
|