Improve language tag
Browse filesHi! As the model is multilingual, this is a PR to add other languages than English to the language tag to improve the referencing. Note that 29 languages are announced in the README, but only 13 are explicitly listed. I was therefore only able to add these 13 languages.
README.md
CHANGED
@@ -1,158 +1,172 @@
|
|
1 |
-
---
|
2 |
-
library_name: transformers
|
3 |
-
license: other
|
4 |
-
license_name: qwen
|
5 |
-
license_link: https://huggingface.co/Qwen/Qwen2.5-14B/blob/main/LICENSE
|
6 |
-
base_model: Qwen/Qwen2.5-14B
|
7 |
-
tags:
|
8 |
-
- generated_from_trainer
|
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 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
</details><br>
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: other
|
4 |
+
license_name: qwen
|
5 |
+
license_link: https://huggingface.co/Qwen/Qwen2.5-14B/blob/main/LICENSE
|
6 |
+
base_model: Qwen/Qwen2.5-14B
|
7 |
+
tags:
|
8 |
+
- generated_from_trainer
|
9 |
+
language:
|
10 |
+
- zho
|
11 |
+
- eng
|
12 |
+
- fra
|
13 |
+
- spa
|
14 |
+
- por
|
15 |
+
- deu
|
16 |
+
- ita
|
17 |
+
- rus
|
18 |
+
- jpn
|
19 |
+
- kor
|
20 |
+
- vie
|
21 |
+
- tha
|
22 |
+
- ara
|
23 |
+
model-index:
|
24 |
+
- name: 14B-Qwen2.5-Freya-x1
|
25 |
+
results: []
|
26 |
+
---
|
27 |
+
|
28 |
+

|
29 |
+
*Me during failed runs*
|
30 |
+
|
31 |
+
# 14B-Qwen2.5-Freya-v1
|
32 |
+
|
33 |
+
I decided to mess around with training methods again, considering the re-emegence of methods like multi-step training. Some people began doing it again, and so, why not? Inspired by AshhLimaRP's methology but done it my way.
|
34 |
+
|
35 |
+
Freya-S1
|
36 |
+
- LoRA Trained on ~1.1GB of literature and raw text over Qwen 2.5's base model.
|
37 |
+
- Cleaned text and literature as best as I could, still, may have had issues here and there.
|
38 |
+
|
39 |
+
Freya-S2
|
40 |
+
- The first LoRA was applied over Qwen 2.5 Instruct, then I trained on top of that.
|
41 |
+
- Reduced LoRA rank because it's mainly instruct and other details I won't get into.
|
42 |
+
|
43 |
+
Recommended Model Settings | *Look, I just use these, they work fine enough. I don't even know how DRY or other meme samplers work. Your system prompt matters more anyway.*
|
44 |
+
```
|
45 |
+
Prompt Format: ChatML
|
46 |
+
Temperature: 1+ # I don't know, man.
|
47 |
+
min_p: 0.05
|
48 |
+
```
|
49 |
+
|
50 |
+
Training time in total was ~10 Hours on a 8xH100 Node, sponsored by the Government of Singapore or something. Thanks for the national service allowance, MHA.
|
51 |
+
|
52 |
+
https://sao10k.carrd.co/ for contact.
|
53 |
+
|
54 |
+
---
|
55 |
+
|
56 |
+
[<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
|
57 |
+
<details><summary>See axolotl config</summary>
|
58 |
+
|
59 |
+
axolotl version: `0.6.0`
|
60 |
+
```yaml
|
61 |
+
base_model:
|
62 |
+
- s1: Qwen/Qwen2.5-14B
|
63 |
+
- s2: Qwen/Qwen2.5-14B-Instruct
|
64 |
+
model_type: AutoModelForCausalLM
|
65 |
+
tokenizer_type: AutoTokenizer
|
66 |
+
|
67 |
+
load_in_8bit: false
|
68 |
+
load_in_4bit: false
|
69 |
+
strict: false
|
70 |
+
sequence_len: 16384
|
71 |
+
bf16: auto
|
72 |
+
fp16:
|
73 |
+
tf32: false
|
74 |
+
flash_attention: true
|
75 |
+
special_tokens:
|
76 |
+
|
77 |
+
adapter: lora # 16-bit
|
78 |
+
lora_r:
|
79 |
+
- s1: 64
|
80 |
+
- s2: 32
|
81 |
+
lora_alpha: 64
|
82 |
+
lora_dropout: 0.2
|
83 |
+
lora_fan_in_fan_out:
|
84 |
+
peft_use_rslora: true
|
85 |
+
lora_target_linear: true
|
86 |
+
|
87 |
+
# Data
|
88 |
+
dataset_prepared_path: dataset_run_freya
|
89 |
+
datasets:
|
90 |
+
# S1 - Writing / Completion
|
91 |
+
- path: datasets/eBooks-cleaned-75K
|
92 |
+
type: completion
|
93 |
+
- path: datasets/novels-clean-dedupe-10K
|
94 |
+
type: completion
|
95 |
+
# S2 - Instruct
|
96 |
+
- path: datasets/10k-amoral-full-fixed-sys.json
|
97 |
+
type: chat_template
|
98 |
+
chat_template: chatml
|
99 |
+
roles_to_train: ["gpt"]
|
100 |
+
field_messages: conversations
|
101 |
+
message_field_role: from
|
102 |
+
message_field_content: value
|
103 |
+
train_on_eos: turn
|
104 |
+
- path: datasets/44k-hespera-smartshuffle.json
|
105 |
+
type: chat_template
|
106 |
+
chat_template: chatml
|
107 |
+
roles_to_train: ["gpt"]
|
108 |
+
field_messages: conversations
|
109 |
+
message_field_role: from
|
110 |
+
message_field_content: value
|
111 |
+
train_on_eos: turn
|
112 |
+
- path: datasets/5k_rpg_adventure_instruct-sys.json
|
113 |
+
type: chat_template
|
114 |
+
chat_template: chatml
|
115 |
+
roles_to_train: ["gpt"]
|
116 |
+
field_messages: conversations
|
117 |
+
message_field_role: from
|
118 |
+
message_field_content: value
|
119 |
+
train_on_eos: turn
|
120 |
+
shuffle_merged_datasets: true
|
121 |
+
warmup_ratio: 0.1
|
122 |
+
|
123 |
+
plugins:
|
124 |
+
- axolotl.integrations.liger.LigerPlugin
|
125 |
+
liger_rope: true
|
126 |
+
liger_rms_norm: true
|
127 |
+
liger_layer_norm: true
|
128 |
+
liger_glu_activation: true
|
129 |
+
liger_fused_linear_cross_entropy: true
|
130 |
+
|
131 |
+
# Iterations
|
132 |
+
num_epochs:
|
133 |
+
- s1: 1
|
134 |
+
- s2: 2
|
135 |
+
|
136 |
+
# Sampling
|
137 |
+
sample_packing: true
|
138 |
+
pad_to_sequence_len: true
|
139 |
+
train_on_inputs: false
|
140 |
+
group_by_length: false
|
141 |
+
|
142 |
+
# Batching
|
143 |
+
gradient_accumulation_steps: 4
|
144 |
+
micro_batch_size: 2
|
145 |
+
gradient_checkpointing: unsloth
|
146 |
+
|
147 |
+
# Evaluation
|
148 |
+
val_set_size: 0.025
|
149 |
+
evals_per_epoch: 5
|
150 |
+
eval_table_size:
|
151 |
+
eval_max_new_tokens: 256
|
152 |
+
eval_sample_packing: false
|
153 |
+
eval_batch_size: 1
|
154 |
+
|
155 |
+
# Optimizer
|
156 |
+
optimizer: paged_ademamix_8bit
|
157 |
+
lr_scheduler: cosine
|
158 |
+
learning_rate:
|
159 |
+
- s1: 0.000002
|
160 |
+
- s2: 0.000004
|
161 |
+
weight_decay: 0.2
|
162 |
+
max_grad_norm: 10.0
|
163 |
+
|
164 |
+
# Garbage Collection
|
165 |
+
gc_steps: 10
|
166 |
+
|
167 |
+
# Misc
|
168 |
+
deepspeed: ./deepspeed_configs/zero2.json
|
169 |
+
|
170 |
+
```
|
171 |
+
|
172 |
</details><br>
|