Alignment-Lab-AI
commited on
Commit
•
8147ee7
1
Parent(s):
5088566
Upload folder using huggingface_hub
Browse files- config.yml +78 -0
config.yml
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
base_model: mistralai/Mistral-7B-v0.1
|
2 |
+
model_type: MistralForCausalLM
|
3 |
+
tokenizer_type: LlamaTokenizer
|
4 |
+
is_mistral_derived_model: true
|
5 |
+
|
6 |
+
load_in_8bit: false
|
7 |
+
load_in_4bit: true
|
8 |
+
strict: false
|
9 |
+
|
10 |
+
datasets:
|
11 |
+
- path: AlignmentLab-AI/EverythingIsAllYouNeed0.25
|
12 |
+
type: alpaca
|
13 |
+
dataset_prepared_path: last_run_prepared
|
14 |
+
val_set_size: 0.01
|
15 |
+
output_dir: ./qlora-out
|
16 |
+
|
17 |
+
adapter: qlora
|
18 |
+
lora_model_dir:
|
19 |
+
|
20 |
+
sequence_len: 8192
|
21 |
+
sample_packing: true
|
22 |
+
pad_to_sequence_len: true
|
23 |
+
|
24 |
+
lora_r: 32
|
25 |
+
lora_alpha: 16
|
26 |
+
lora_dropout: 0.05
|
27 |
+
lora_target_linear: true
|
28 |
+
lora_fan_in_fan_out:
|
29 |
+
lora_target_modules:
|
30 |
+
- gate_proj
|
31 |
+
- down_proj
|
32 |
+
- up_proj
|
33 |
+
- q_proj
|
34 |
+
- v_proj
|
35 |
+
- k_proj
|
36 |
+
- o_proj
|
37 |
+
|
38 |
+
wandb_project:
|
39 |
+
wandb_entity:
|
40 |
+
wandb_watch:
|
41 |
+
wandb_run_id: sentinelv2
|
42 |
+
wandb_log_model:
|
43 |
+
|
44 |
+
gradient_accumulation_steps: 4
|
45 |
+
micro_batch_size: 2
|
46 |
+
num_epochs: 1
|
47 |
+
optimizer: adamw_bnb_8bit
|
48 |
+
lr_scheduler: constant
|
49 |
+
learning_rate: 0.0002
|
50 |
+
noisy_embedding_alpha: 5
|
51 |
+
train_on_inputs: True
|
52 |
+
group_by_length: false
|
53 |
+
bf16: true
|
54 |
+
fp16: false
|
55 |
+
tf32: false
|
56 |
+
|
57 |
+
gradient_checkpointing: true
|
58 |
+
early_stopping_patience:
|
59 |
+
resume_from_checkpoint:
|
60 |
+
local_rank:
|
61 |
+
logging_steps: 1
|
62 |
+
xformers_attention:
|
63 |
+
flash_attention: true
|
64 |
+
|
65 |
+
warmup_steps: 100
|
66 |
+
eval_steps: 0.05
|
67 |
+
eval_table_size:
|
68 |
+
eval_table_max_new_tokens: 256
|
69 |
+
save_steps:
|
70 |
+
debug:
|
71 |
+
deepspeed:
|
72 |
+
weight_decay: 0.02
|
73 |
+
fsdp:
|
74 |
+
fsdp_config:
|
75 |
+
special_tokens:
|
76 |
+
bos_token: "<s>"
|
77 |
+
eos_token: "</s>"
|
78 |
+
unk_token: "<unk>"
|