Update README.md
Browse files
README.md
CHANGED
@@ -6,13 +6,13 @@ pipeline_tag: text-generation
|
|
6 |
|
7 |
π [Article](https://www.safurai.com/blog/introducing-safurai-csharp)
|
8 |
|
9 |
-
<center><img src="https://
|
10 |
|
11 |
-
This is a [`codellama/CodeLlama-7b-hf`](https://huggingface.co/codellama/CodeLlama-7b-hf) model fine-tuned using QLoRA (4-bit precision)
|
12 |
|
13 |
## π§ Training
|
14 |
|
15 |
-
It was trained on
|
16 |
|
17 |
```yaml
|
18 |
base_model: codellama/CodeLlama-34b-hf
|
@@ -86,11 +86,15 @@ special_tokens:
|
|
86 |
unk_token: "<unk>"
|
87 |
```
|
88 |
|
89 |
-
|
90 |
|
91 |
-
![](https://i.imgur.com/
|
92 |
|
93 |
-
|
|
|
|
|
|
|
|
|
94 |
|
95 |
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
96 |
|
@@ -103,8 +107,8 @@ from transformers import AutoTokenizer
|
|
103 |
import transformers
|
104 |
import torch
|
105 |
|
106 |
-
model = "
|
107 |
-
prompt = "
|
108 |
|
109 |
tokenizer = AutoTokenizer.from_pretrained(model)
|
110 |
pipeline = transformers.pipeline(
|
@@ -120,7 +124,7 @@ sequences = pipeline(
|
|
120 |
top_k=10,
|
121 |
num_return_sequences=1,
|
122 |
eos_token_id=tokenizer.eos_token_id,
|
123 |
-
max_length=
|
124 |
)
|
125 |
for seq in sequences:
|
126 |
print(f"Result: {seq['generated_text']}")
|
|
|
6 |
|
7 |
π [Article](https://www.safurai.com/blog/introducing-safurai-csharp)
|
8 |
|
9 |
+
<center><img src="https://i.imgur.com/REPqbYM.png" width="300"></center>
|
10 |
|
11 |
+
This is a [`codellama/CodeLlama-7b-hf`](https://huggingface.co/codellama/CodeLlama-7b-hf) model fine-tuned using QLoRA (4-bit precision)
|
12 |
|
13 |
## π§ Training
|
14 |
|
15 |
+
It was trained on 2 x NVIDIA A100 PCIe 80GB in 7h 40m with the following configuration file:
|
16 |
|
17 |
```yaml
|
18 |
base_model: codellama/CodeLlama-34b-hf
|
|
|
86 |
unk_token: "<unk>"
|
87 |
```
|
88 |
|
89 |
+
Training loss curve:
|
90 |
|
91 |
+
![](https://i.imgur.com/rp1htuf.png)
|
92 |
|
93 |
+
Dataset composition:
|
94 |
+
|
95 |
+
![](https://i.imgur.com/kTNXgGX.png)
|
96 |
+
|
97 |
+
It is mainly designed for experimental purposes.
|
98 |
|
99 |
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
100 |
|
|
|
107 |
import transformers
|
108 |
import torch
|
109 |
|
110 |
+
model = "Safurai/Evol-csharp-full"
|
111 |
+
prompt = "User: \n {your question} \n Assistant: "
|
112 |
|
113 |
tokenizer = AutoTokenizer.from_pretrained(model)
|
114 |
pipeline = transformers.pipeline(
|
|
|
124 |
top_k=10,
|
125 |
num_return_sequences=1,
|
126 |
eos_token_id=tokenizer.eos_token_id,
|
127 |
+
max_length=1024,
|
128 |
)
|
129 |
for seq in sequences:
|
130 |
print(f"Result: {seq['generated_text']}")
|