rubenamtz0
commited on
Commit
•
4f02b7f
1
Parent(s):
de51a2a
End of training
Browse files- README.md +160 -0
- adapter_model.bin +3 -0
README.md
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama3
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- axolotl
|
6 |
+
- generated_from_trainer
|
7 |
+
base_model: meta-llama/Meta-Llama-3-8B
|
8 |
+
model-index:
|
9 |
+
- name: llama-3-8b-lora-law2entity
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
17 |
+
<details><summary>See axolotl config</summary>
|
18 |
+
|
19 |
+
axolotl version: `0.4.1`
|
20 |
+
```yaml
|
21 |
+
base_model: meta-llama/Meta-Llama-3-8B
|
22 |
+
model_type: LlamaForCausalLM
|
23 |
+
tokenizer_type: AutoTokenizer
|
24 |
+
|
25 |
+
load_in_8bit: true
|
26 |
+
load_in_4bit: false
|
27 |
+
strict: false
|
28 |
+
|
29 |
+
datasets:
|
30 |
+
- path: rubenamtz0/law_entity_recognition
|
31 |
+
type: alpaca
|
32 |
+
dataset_prepared_path:
|
33 |
+
val_set_size: 0.1
|
34 |
+
output_dir: ./outputs/lora-law
|
35 |
+
hub_model_id: rubenamtz0/llama-3-8b-lora-law2entity
|
36 |
+
|
37 |
+
sequence_len: 4096
|
38 |
+
sample_packing: true
|
39 |
+
pad_to_sequence_len: true
|
40 |
+
|
41 |
+
adapter: lora
|
42 |
+
lora_model_dir:
|
43 |
+
lora_r: 32
|
44 |
+
lora_alpha: 16
|
45 |
+
lora_dropout: 0.05
|
46 |
+
lora_target_linear: true
|
47 |
+
lora_fan_in_fan_out:
|
48 |
+
|
49 |
+
wandb_project: entity-relationship-claim-ft
|
50 |
+
wandb_entity:
|
51 |
+
wandb_watch:
|
52 |
+
wandb_name:
|
53 |
+
wandb_log_model:
|
54 |
+
|
55 |
+
gradient_accumulation_steps: 4
|
56 |
+
micro_batch_size: 2
|
57 |
+
num_epochs: 4
|
58 |
+
optimizer: adamw_bnb_8bit
|
59 |
+
lr_scheduler: cosine
|
60 |
+
learning_rate: 0.0002
|
61 |
+
|
62 |
+
train_on_inputs: false
|
63 |
+
group_by_length: false
|
64 |
+
bf16: auto
|
65 |
+
fp16:
|
66 |
+
tf32: false
|
67 |
+
|
68 |
+
gradient_checkpointing: true
|
69 |
+
early_stopping_patience:
|
70 |
+
resume_from_checkpoint:
|
71 |
+
local_rank:
|
72 |
+
logging_steps: 1
|
73 |
+
xformers_attention:
|
74 |
+
flash_attention: true
|
75 |
+
s2_attention:
|
76 |
+
|
77 |
+
warmup_steps: 10
|
78 |
+
evals_per_epoch: 4
|
79 |
+
eval_table_size:
|
80 |
+
eval_max_new_tokens: 128
|
81 |
+
saves_per_epoch: 1
|
82 |
+
debug:
|
83 |
+
deepspeed:
|
84 |
+
weight_decay: 0.0
|
85 |
+
fsdp:
|
86 |
+
fsdp_config:
|
87 |
+
special_tokens:
|
88 |
+
pad_token: <|end_of_text|>
|
89 |
+
|
90 |
+
```
|
91 |
+
|
92 |
+
</details><br>
|
93 |
+
|
94 |
+
# llama-3-8b-lora-law2entity
|
95 |
+
|
96 |
+
This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) on the None dataset.
|
97 |
+
It achieves the following results on the evaluation set:
|
98 |
+
- Loss: 0.1490
|
99 |
+
|
100 |
+
## Model description
|
101 |
+
|
102 |
+
More information needed
|
103 |
+
|
104 |
+
## Intended uses & limitations
|
105 |
+
|
106 |
+
More information needed
|
107 |
+
|
108 |
+
## Training and evaluation data
|
109 |
+
|
110 |
+
More information needed
|
111 |
+
|
112 |
+
## Training procedure
|
113 |
+
|
114 |
+
### Training hyperparameters
|
115 |
+
|
116 |
+
The following hyperparameters were used during training:
|
117 |
+
- learning_rate: 0.0002
|
118 |
+
- train_batch_size: 2
|
119 |
+
- eval_batch_size: 2
|
120 |
+
- seed: 42
|
121 |
+
- distributed_type: multi-GPU
|
122 |
+
- num_devices: 3
|
123 |
+
- gradient_accumulation_steps: 4
|
124 |
+
- total_train_batch_size: 24
|
125 |
+
- total_eval_batch_size: 6
|
126 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
127 |
+
- lr_scheduler_type: cosine
|
128 |
+
- lr_scheduler_warmup_steps: 10
|
129 |
+
- num_epochs: 4
|
130 |
+
|
131 |
+
### Training results
|
132 |
+
|
133 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
134 |
+
|:-------------:|:------:|:----:|:---------------:|
|
135 |
+
| 0.2735 | 0.05 | 1 | 0.2923 |
|
136 |
+
| 0.2852 | 0.25 | 5 | 0.2742 |
|
137 |
+
| 0.2007 | 0.5 | 10 | 0.2015 |
|
138 |
+
| 0.1742 | 0.75 | 15 | 0.1807 |
|
139 |
+
| 0.1854 | 1.0 | 20 | 0.1688 |
|
140 |
+
| 0.159 | 1.1125 | 25 | 0.1630 |
|
141 |
+
| 0.1444 | 1.3625 | 30 | 0.1592 |
|
142 |
+
| 0.1479 | 1.6125 | 35 | 0.1565 |
|
143 |
+
| 0.1505 | 1.8625 | 40 | 0.1538 |
|
144 |
+
| 0.1369 | 2.1125 | 45 | 0.1518 |
|
145 |
+
| 0.1348 | 2.2125 | 50 | 0.1512 |
|
146 |
+
| 0.1287 | 2.4625 | 55 | 0.1510 |
|
147 |
+
| 0.1359 | 2.7125 | 60 | 0.1498 |
|
148 |
+
| 0.1367 | 2.9625 | 65 | 0.1491 |
|
149 |
+
| 0.1218 | 3.075 | 70 | 0.1491 |
|
150 |
+
| 0.1285 | 3.325 | 75 | 0.1493 |
|
151 |
+
| 0.1307 | 3.575 | 80 | 0.1490 |
|
152 |
+
|
153 |
+
|
154 |
+
### Framework versions
|
155 |
+
|
156 |
+
- PEFT 0.11.1
|
157 |
+
- Transformers 4.41.1
|
158 |
+
- Pytorch 2.1.2+cu118
|
159 |
+
- Datasets 2.19.1
|
160 |
+
- Tokenizers 0.19.1
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9446df43de03915e89a4285df2b261c4eacb2a56f5118296713e5cc5e51a378a
|
3 |
+
size 335706186
|