Upload folder using huggingface_hub
Browse files- README.md +137 -3
- adapter_config.json +35 -0
- adapter_model.safetensors +3 -0
README.md
CHANGED
@@ -1,3 +1,137 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
license: llama3.1
|
4 |
+
base_model: meta-llama/Llama-3.1-8B-Instruct
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: workspace/FinLoRA/lora/axolotl-output/buffett_agent_llama_3_1_8b_8bits_r8_lora
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
[<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)
|
16 |
+
<details><summary>See axolotl config</summary>
|
17 |
+
|
18 |
+
axolotl version: `0.10.0`
|
19 |
+
```yaml
|
20 |
+
base_model: meta-llama/Llama-3.1-8B-Instruct
|
21 |
+
model_type: LlamaForCausalLM
|
22 |
+
tokenizer_type: AutoTokenizer
|
23 |
+
gradient_accumulation_steps: 2
|
24 |
+
micro_batch_size: 2
|
25 |
+
num_epochs: 4
|
26 |
+
optimizer: adamw_bnb_8bit
|
27 |
+
lr_scheduler: cosine
|
28 |
+
learning_rate: 0.0001
|
29 |
+
load_in_8bit: true
|
30 |
+
load_in_4bit: false
|
31 |
+
adapter: lora
|
32 |
+
lora_model_dir: null
|
33 |
+
lora_r: 8
|
34 |
+
lora_alpha: 16
|
35 |
+
lora_dropout: 0.05
|
36 |
+
lora_target_modules:
|
37 |
+
- q_proj
|
38 |
+
- v_proj
|
39 |
+
- k_proj
|
40 |
+
dataset_prepared_path: null
|
41 |
+
val_set_size: 0.02
|
42 |
+
output_dir: /workspace/FinLoRA/lora/axolotl-output/buffett_agent_llama_3_1_8b_8bits_r8_lora
|
43 |
+
peft_use_dora: false
|
44 |
+
peft_use_rslora: false
|
45 |
+
sequence_len: 4096
|
46 |
+
sample_packing: false
|
47 |
+
pad_to_sequence_len: false
|
48 |
+
wandb_project: finlora_models
|
49 |
+
wandb_entity: null
|
50 |
+
wandb_watch: gradients
|
51 |
+
wandb_name: buffett_agent_llama_3_1_8b_8bits_r8_lora
|
52 |
+
wandb_log_model: 'false'
|
53 |
+
bf16: auto
|
54 |
+
tf32: false
|
55 |
+
gradient_checkpointing: true
|
56 |
+
resume_from_checkpoint: null
|
57 |
+
logging_steps: 500
|
58 |
+
flash_attention: false
|
59 |
+
deepspeed: deepspeed_configs/zero1.json
|
60 |
+
warmup_steps: 10
|
61 |
+
evals_per_epoch: 4
|
62 |
+
saves_per_epoch: 1
|
63 |
+
weight_decay: 0.0
|
64 |
+
special_tokens:
|
65 |
+
pad_token: <|end_of_text|>
|
66 |
+
chat_template: llama3
|
67 |
+
|
68 |
+
```
|
69 |
+
|
70 |
+
</details><br>
|
71 |
+
|
72 |
+
# workspace/FinLoRA/lora/axolotl-output/buffett_agent_llama_3_1_8b_8bits_r8_lora
|
73 |
+
|
74 |
+
This model is a fine-tuned version of [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) on the /workspace/FinLoRA/data/train/warren_buffett_train.jsonl dataset.
|
75 |
+
It achieves the following results on the evaluation set:
|
76 |
+
- Loss: 1.3722
|
77 |
+
|
78 |
+
## Model description
|
79 |
+
|
80 |
+
More information needed
|
81 |
+
|
82 |
+
## Intended uses & limitations
|
83 |
+
|
84 |
+
More information needed
|
85 |
+
|
86 |
+
## Training and evaluation data
|
87 |
+
|
88 |
+
More information needed
|
89 |
+
|
90 |
+
## Training procedure
|
91 |
+
|
92 |
+
### Training hyperparameters
|
93 |
+
|
94 |
+
The following hyperparameters were used during training:
|
95 |
+
- learning_rate: 0.0001
|
96 |
+
- train_batch_size: 2
|
97 |
+
- eval_batch_size: 2
|
98 |
+
- seed: 42
|
99 |
+
- distributed_type: multi-GPU
|
100 |
+
- num_devices: 4
|
101 |
+
- gradient_accumulation_steps: 2
|
102 |
+
- total_train_batch_size: 16
|
103 |
+
- total_eval_batch_size: 8
|
104 |
+
- optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
105 |
+
- lr_scheduler_type: cosine
|
106 |
+
- lr_scheduler_warmup_steps: 10
|
107 |
+
- training_steps: 4900
|
108 |
+
|
109 |
+
### Training results
|
110 |
+
|
111 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
112 |
+
|:-------------:|:------:|:----:|:---------------:|
|
113 |
+
| No log | 0 | 0 | 2.1371 |
|
114 |
+
| No log | 0.2506 | 307 | 1.4879 |
|
115 |
+
| 1.5085 | 0.5012 | 614 | 1.4508 |
|
116 |
+
| 1.5085 | 0.7518 | 921 | 1.4314 |
|
117 |
+
| 1.4275 | 1.0024 | 1228 | 1.4152 |
|
118 |
+
| 1.3764 | 1.2531 | 1535 | 1.4083 |
|
119 |
+
| 1.3764 | 1.5037 | 1842 | 1.3980 |
|
120 |
+
| 1.3472 | 1.7543 | 2149 | 1.3900 |
|
121 |
+
| 1.3472 | 2.0049 | 2456 | 1.3844 |
|
122 |
+
| 1.3398 | 2.2555 | 2763 | 1.3847 |
|
123 |
+
| 1.304 | 2.5061 | 3070 | 1.3768 |
|
124 |
+
| 1.304 | 2.7567 | 3377 | 1.3749 |
|
125 |
+
| 1.2925 | 3.0073 | 3684 | 1.3710 |
|
126 |
+
| 1.2925 | 3.2580 | 3991 | 1.3720 |
|
127 |
+
| 1.2716 | 3.5086 | 4298 | 1.3717 |
|
128 |
+
| 1.2688 | 3.7592 | 4605 | 1.3722 |
|
129 |
+
|
130 |
+
|
131 |
+
### Framework versions
|
132 |
+
|
133 |
+
- PEFT 0.15.2
|
134 |
+
- Transformers 4.52.3
|
135 |
+
- Pytorch 2.8.0.dev20250319+cu128
|
136 |
+
- Datasets 3.6.0
|
137 |
+
- 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": "meta-llama/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 |
+
"q_proj",
|
28 |
+
"v_proj",
|
29 |
+
"k_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:b2e75c07bb07254f18887a64d3f992c9a3ae3e85db8425ec166ffe5afbb81cab
|
3 |
+
size 9462656
|