Upload V2-Adv.yml
Browse files- V2-Adv.yml +110 -0
V2-Adv.yml
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## model
|
2 |
+
base_model: NewEden/Hamanasu-KTO-V2
|
3 |
+
model_type: AutoModelForCausalLM
|
4 |
+
tokenizer_type: AutoTokenizer
|
5 |
+
|
6 |
+
## qlora COPE
|
7 |
+
load_in_8bit: false
|
8 |
+
load_in_4bit: false
|
9 |
+
strict: false
|
10 |
+
|
11 |
+
## data
|
12 |
+
datasets:
|
13 |
+
- path: PocketDoc/Dans-Prosemaxx-Cowriter-3-S
|
14 |
+
type: dan-chat-advanced
|
15 |
+
- path: PocketDoc/Dans-Prosemaxx-Adventure
|
16 |
+
type: dan-chat-advanced
|
17 |
+
- path: PocketDoc/Dans-Failuremaxx-Adventure-3
|
18 |
+
type: dan-chat-advanced
|
19 |
+
- path: PocketDoc/Dans-Prosemaxx-InstructWriter-ZeroShot-2
|
20 |
+
type: dan-chat-advanced
|
21 |
+
- path: PocketDoc/Dans-Prosemaxx-InstructWriter-ZeroShot-3
|
22 |
+
type: dan-chat-advanced
|
23 |
+
- path: PocketDoc/Dans-Prosemaxx-InstructWriter-Continue-2
|
24 |
+
type: dan-chat-advanced
|
25 |
+
- path: PocketDoc/Dans-Prosemaxx-Instructwriter-Long
|
26 |
+
type: dan-chat-advanced
|
27 |
+
shuffle_merged_datasets: true
|
28 |
+
dataset_prepared_path: dataset_prepared
|
29 |
+
val_set_size: 0.02
|
30 |
+
output_dir: 4b-out-rslora
|
31 |
+
|
32 |
+
## LIGGER
|
33 |
+
plugins:
|
34 |
+
- axolotl.integrations.liger.LigerPlugin
|
35 |
+
liger_rope: true
|
36 |
+
liger_rms_norm: true
|
37 |
+
liger_layer_norm: true
|
38 |
+
liger_glu_activation: true
|
39 |
+
liger_fused_linear_cross_entropy: true
|
40 |
+
|
41 |
+
## CTX settings
|
42 |
+
sequence_len: 32768
|
43 |
+
sample_packing: true
|
44 |
+
eval_sample_packing: true
|
45 |
+
pad_to_sequence_len: true
|
46 |
+
|
47 |
+
## Lora
|
48 |
+
adapter: lora
|
49 |
+
lora_model_dir:
|
50 |
+
lora_r: 64
|
51 |
+
lora_alpha: 32
|
52 |
+
lora_dropout: 0.1
|
53 |
+
lora_target_modules:
|
54 |
+
- gate_proj
|
55 |
+
- down_proj
|
56 |
+
- up_proj
|
57 |
+
- q_proj
|
58 |
+
- v_proj
|
59 |
+
- k_proj
|
60 |
+
- o_proj
|
61 |
+
lora_fan_in_fan_out:
|
62 |
+
peft_use_rslora: true
|
63 |
+
lora_modules_to_save:
|
64 |
+
- embed_tokens
|
65 |
+
- lm_head
|
66 |
+
|
67 |
+
## WandB
|
68 |
+
wandb_project: tavbussy
|
69 |
+
wandb_entity:
|
70 |
+
wandb_watch:
|
71 |
+
wandb_name: adventure-v2
|
72 |
+
wandb_log_model:
|
73 |
+
|
74 |
+
## evals
|
75 |
+
evals_per_epoch: 4
|
76 |
+
eval_table_size:
|
77 |
+
eval_max_new_tokens: 128
|
78 |
+
|
79 |
+
## hoe params
|
80 |
+
gradient_accumulation_steps: 2
|
81 |
+
micro_batch_size: 6
|
82 |
+
num_epochs: 4
|
83 |
+
optimizer: paged_ademamix_8bit
|
84 |
+
lr_scheduler: cosine
|
85 |
+
learning_rate: 2.83e-5
|
86 |
+
|
87 |
+
train_on_inputs: false
|
88 |
+
group_by_length: false
|
89 |
+
bf16: auto
|
90 |
+
fp16:
|
91 |
+
tf32: false
|
92 |
+
|
93 |
+
gradient_checkpointing: true
|
94 |
+
early_stopping_patience:
|
95 |
+
resume_from_checkpoint:
|
96 |
+
local_rank:
|
97 |
+
logging_steps: 1
|
98 |
+
xformers_attention:
|
99 |
+
flash_attention: true
|
100 |
+
s2_attention:
|
101 |
+
|
102 |
+
warmup_steps: 40
|
103 |
+
saves_per_epoch: 2
|
104 |
+
debug:
|
105 |
+
deepspeed: ./deepspeed_configs/zero3_bf16.json
|
106 |
+
weight_decay: 0.02
|
107 |
+
fsdp:
|
108 |
+
fsdp_config:
|
109 |
+
special_tokens:
|
110 |
+
pad_token: <|finetune_right_pad_id|>
|