taddeusb90 commited on
Commit
eb14661
1 Parent(s): b97ea23

Upload 3 files

Browse files
adapter/adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Meta-Llama-3-8B-Instruct",
5
+ "bias": "none",
6
+ "fan_in_fan_out": null,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "down_proj",
24
+ "o_proj",
25
+ "up_proj",
26
+ "gate_proj",
27
+ "k_proj",
28
+ "q_proj",
29
+ "v_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6e200a8e6d5127eeea2ebca01bcf1314b8312dc4bed280fcf3b19f4c12def93
3
+ size 83946192
axolotl/training.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ base_model: meta-llama/Meta-Llama-3-8B-Instruct
2
+ model_type: LlamaForCausalLM
3
+ tokenizer_type: AutoTokenizer # PreTrainedTokenizerFast
4
+
5
+ load_in_8bit: false
6
+ load_in_4bit: true
7
+ strict: false
8
+
9
+ datasets:
10
+ - path: taddeusb90/finbro-v0.1.0
11
+ type: alpaca
12
+ dataset_prepared_path: last_run_prepared
13
+ val_set_size: 0.01
14
+ output_dir: ./out/finbro-v0.1.0-llama-3-8B-instruct-4bit-1m-POSE
15
+
16
+ adapter: qlora
17
+ lora_model_dir:
18
+
19
+ sequence_len: 8192
20
+ sample_packing: false
21
+ pad_to_sequence_len: true
22
+
23
+ lora_r: 16
24
+ lora_alpha: 32
25
+ lora_dropout: 0.05
26
+ lora_target_modules:
27
+ lora_target_linear: true
28
+ lora_fan_in_fan_out:
29
+
30
+ wandb_project: finbro-v0.1.0-llama-3-8B-instruct-4bit-1m-POSE
31
+ wandb_entity: sigmance
32
+ wandb_watch: "true"
33
+ wandb_name: finbro-v0.1.0-llama-3-8B-instruct-4bit-1m-POSE
34
+ wandb_log_model: "true"
35
+
36
+ use_pose: true
37
+ pose_max_context_len: 1048576
38
+
39
+ overrides_of_model_config:
40
+ rope_theta: 500000.0
41
+ max_position_embeddings: 1048576
42
+ rope_scaling:
43
+
44
+ gradient_accumulation_steps: 4
45
+ micro_batch_size: 1
46
+ num_epochs: 4
47
+ optimizer: adamw_torch
48
+ lr_scheduler: cosine
49
+ learning_rate: 0.0002
50
+
51
+ train_on_inputs: false
52
+ group_by_length: false
53
+ bf16: auto
54
+ fp16:
55
+ tf32: false
56
+
57
+ gradient_checkpointing: true
58
+ gradient_checkpointing_kwargs:
59
+ use_reentrant: true
60
+ early_stopping_patience: 50
61
+ resume_from_checkpoint: ./out/finbro-v0.1.0-llama-3-8B-instruct-4bit-1m-POSE/checkpoint-4800
62
+ local_rank:
63
+ logging_steps: 1
64
+ xformers_attention:
65
+ flash_attention: true
66
+
67
+
68
+ warmup_steps: 1
69
+ save_steps: 100
70
+ eval_steps: 100
71
+ # evals_per_epoch: 4
72
+ eval_table_size:
73
+ # saves_per_epoch: 1
74
+ debug:
75
+ deepspeed:
76
+ weight_decay: 0.0
77
+ fsdp:
78
+ - full_shard
79
+ - auto_wrap
80
+ fsdp_config:
81
+ fsdp_limit_all_gathers: true
82
+ fsdp_sync_module_states: true
83
+ fsdp_offload_params: true
84
+ fsdp_use_orig_params: false
85
+ fsdp_cpu_ram_efficient_loading: true
86
+ fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
87
+ fsdp_transformer_layer_cls_to_wrap: LlamaDecoderLayer
88
+ fsdp_state_dict_type: FULL_STATE_DICT
89
+ fsdp_sharding_strategy: FULL_SHARD
90
+ special_tokens:
91
+ pad_token: <|end_of_text|>