wangd12 commited on
Commit
3259995
·
verified ·
1 Parent(s): f1e91a8

Add/update LoRA model: finer_llama_3_1_8b_8bits_r8

Browse files
Files changed (3) hide show
  1. README.md +135 -0
  2. adapter_config.json +35 -0
  3. adapter_model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
3
+ should probably proofread and complete it, then remove this comment. -->
4
+
5
+ [<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)
6
+ <details><summary>See axolotl config</summary>
7
+
8
+ axolotl version: `0.9.0`
9
+ ```yaml
10
+ base_model: NousResearch/Meta-Llama-3.1-8B-Instruct
11
+ model_type: LlamaForCausalLM
12
+ tokenizer_type: AutoTokenizer
13
+ gradient_accumulation_steps: 8
14
+ micro_batch_size: 1
15
+ num_epochs: 4
16
+ optimizer: adamw_bnb_8bit
17
+ lr_scheduler: cosine
18
+ learning_rate: 0.0001
19
+ load_in_8bit: true
20
+ load_in_4bit: false
21
+ adapter: lora
22
+ lora_model_dir: null
23
+ lora_r: 8
24
+ lora_alpha: 16
25
+ lora_dropout: 0.05
26
+ lora_target_modules:
27
+ - q_proj
28
+ - v_proj
29
+ - k_proj
30
+ datasets:
31
+ - path: /workspace/FinLoRA/data/train/finer_train_batched.jsonl
32
+ type:
33
+ system_prompt: ''
34
+ field_system: system
35
+ field_instruction: context
36
+ field_output: target
37
+ format: '[INST] {instruction} [/INST]'
38
+ no_input_format: '[INST] {instruction} [/INST]'
39
+ dataset_prepared_path: null
40
+ val_set_size: 0.02
41
+ output_dir: /workspace/FinLoRA/lora/axolotl-output/finer_llama_3_1_8b_8bits_r8
42
+ sequence_len: 4096
43
+ sample_packing: false
44
+ pad_to_sequence_len: false
45
+ wandb_project: finlora_models
46
+ wandb_entity: null
47
+ wandb_watch: gradients
48
+ wandb_name: finer_llama_3_1_8b_8bits_r8
49
+ wandb_log_model: 'false'
50
+ bf16: auto
51
+ tf32: false
52
+ gradient_checkpointing: true
53
+ resume_from_checkpoint: null
54
+ logging_steps: 500
55
+ flash_attention: false
56
+ deepspeed: deepspeed_configs/zero1.json
57
+ warmup_steps: 10
58
+ evals_per_epoch: 4
59
+ saves_per_epoch: 1
60
+ weight_decay: 0.0
61
+ special_tokens:
62
+ pad_token: <|end_of_text|>
63
+ chat_template: llama3
64
+
65
+ ```
66
+
67
+ </details><br>
68
+
69
+ # workspace/FinLoRA/fine-tune/axolotl-output/finer_llama_3_1_8B_8bits_r8
70
+
71
+ This model is a fine-tuned version of [NousResearch/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/NousResearch/Meta-Llama-3.1-8B-Instruct) on the /workspace/FinLoRA/data/train/finer_train_batched.jsonl dataset.
72
+ It achieves the following results on the evaluation set:
73
+ - Loss: 0.0331
74
+
75
+ ## Model description
76
+
77
+ More information needed
78
+
79
+ ## Intended uses & limitations
80
+
81
+ More information needed
82
+
83
+ ## Training and evaluation data
84
+
85
+ More information needed
86
+
87
+ ## Training procedure
88
+
89
+ ### Training hyperparameters
90
+
91
+ The following hyperparameters were used during training:
92
+ - learning_rate: 0.0001
93
+ - train_batch_size: 1
94
+ - eval_batch_size: 1
95
+ - seed: 42
96
+ - distributed_type: multi-GPU
97
+ - num_devices: 2
98
+ - gradient_accumulation_steps: 8
99
+ - total_train_batch_size: 16
100
+ - total_eval_batch_size: 2
101
+ - optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
102
+ - lr_scheduler_type: cosine
103
+ - lr_scheduler_warmup_steps: 10
104
+ - num_epochs: 4.0
105
+
106
+ ### Training results
107
+
108
+ | Training Loss | Epoch | Step | Validation Loss |
109
+ |:-------------:|:------:|:----:|:---------------:|
110
+ | No log | 0.0016 | 1 | 0.5433 |
111
+ | No log | 0.2497 | 153 | 0.0520 |
112
+ | No log | 0.4995 | 306 | 0.0459 |
113
+ | No log | 0.7492 | 459 | 0.0406 |
114
+ | 0.0693 | 0.9990 | 612 | 0.0386 |
115
+ | 0.0693 | 1.2497 | 765 | 0.0396 |
116
+ | 0.0693 | 1.4995 | 918 | 0.0363 |
117
+ | 0.036 | 1.7492 | 1071 | 0.0351 |
118
+ | 0.036 | 1.9990 | 1224 | 0.0348 |
119
+ | 0.036 | 2.2497 | 1377 | 0.0360 |
120
+ | 0.0302 | 2.4995 | 1530 | 0.0321 |
121
+ | 0.0302 | 2.7492 | 1683 | 0.0347 |
122
+ | 0.0302 | 2.9990 | 1836 | 0.0324 |
123
+ | 0.0302 | 3.2497 | 1989 | 0.0328 |
124
+ | 0.0242 | 3.4995 | 2142 | 0.0334 |
125
+ | 0.0242 | 3.7492 | 2295 | 0.0332 |
126
+ | 0.0242 | 3.9990 | 2448 | 0.0331 |
127
+
128
+
129
+ ### Framework versions
130
+
131
+ - PEFT 0.15.2
132
+ - Transformers 4.51.3
133
+ - Pytorch 2.8.0.dev20250319+cu128
134
+ - Datasets 3.5.0
135
+ - Tokenizers 0.21.1
adapter_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "NousResearch/Meta-Llama-3.1-8B-Instruct",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": null,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.05,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 8,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "k_proj",
28
+ "q_proj",
29
+ "v_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "trainable_token_indices": null,
33
+ "use_dora": false,
34
+ "use_rslora": false
35
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8a25d48802d10e77609254723de643d2683d2c72d1a73bdb4110ed78f3f9d0b
3
+ size 9462656