ghostof0days commited on
Commit
274bb9d
·
verified ·
1 Parent(s): ce7a471

Upload LoRA adapter files

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
+ library_name: peft
3
+ license: other
4
+ base_model: mistralai/Ministral-8B-Instruct-2410
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: workspace/FinLoRA/lora/axolotl-output/formula_mistral_8b_8bits_r8
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: mistralai/Ministral-8B-Instruct-2410
21
+ model_type: AutoModelForCausalLM
22
+ tokenizer_type: AutoTokenizer
23
+ gradient_accumulation_steps: 2
24
+ micro_batch_size: 4
25
+ num_epochs: 1
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
+ bnb_4bit_use_double_quant: false
32
+ bnb_4bit_quant_type: null
33
+ bnb_4bit_compute_dtype: null
34
+ adapter: lora
35
+ lora_model_dir: null
36
+ lora_r: 8
37
+ lora_alpha: 16
38
+ lora_dropout: 0.05
39
+ lora_target_modules:
40
+ - q_proj
41
+ - v_proj
42
+ - k_proj
43
+ - path: /workspace/FinLoRA/data/train/formula_train.jsonl
44
+ type:
45
+ system_prompt: ''
46
+ field_system: system
47
+ field_instruction: context
48
+ field_output: target
49
+ format: '[INST] {instruction} [/INST]'
50
+ no_input_format: '[INST] {instruction} [/INST]'
51
+ dataset_prepared_path: null
52
+ val_set_size: 0.02
53
+ output_dir: /workspace/FinLoRA/lora/axolotl-output/formula_mistral_8b_8bits_r8
54
+ peft_use_dora: false
55
+ peft_use_rslora: false
56
+ sequence_len: 4096
57
+ sample_packing: false
58
+ pad_to_sequence_len: false
59
+ wandb_project: finlora_models
60
+ wandb_entity: null
61
+ wandb_watch: gradients
62
+ wandb_name: formula_mistral_8b_8bits_r8
63
+ wandb_log_model: 'false'
64
+ bf16: auto
65
+ tf32: false
66
+ gradient_checkpointing: true
67
+ resume_from_checkpoint: null
68
+ logging_steps: 500
69
+ flash_attention: false
70
+ deepspeed: deepspeed_configs/zero1.json
71
+ warmup_steps: 10
72
+ evals_per_epoch: 4
73
+ saves_per_epoch: 1
74
+ weight_decay: 0.0
75
+ special_tokens:
76
+ pad_token: <|end_of_text|>
77
+
78
+ ```
79
+
80
+ </details><br>
81
+
82
+ # workspace/FinLoRA/lora/axolotl-output/formula_mistral_8b_8bits_r8
83
+
84
+ This model is a fine-tuned version of [mistralai/Ministral-8B-Instruct-2410](https://huggingface.co/mistralai/Ministral-8B-Instruct-2410) on the /workspace/FinLoRA/data/train/formula_train.jsonl dataset.
85
+ It achieves the following results on the evaluation set:
86
+ - Loss: 0.6196
87
+
88
+ ## Model description
89
+
90
+ More information needed
91
+
92
+ ## Intended uses & limitations
93
+
94
+ More information needed
95
+
96
+ ## Training and evaluation data
97
+
98
+ More information needed
99
+
100
+ ## Training procedure
101
+
102
+ ### Training hyperparameters
103
+
104
+ The following hyperparameters were used during training:
105
+ - learning_rate: 0.0001
106
+ - train_batch_size: 4
107
+ - eval_batch_size: 4
108
+ - seed: 42
109
+ - distributed_type: multi-GPU
110
+ - num_devices: 4
111
+ - gradient_accumulation_steps: 2
112
+ - total_train_batch_size: 32
113
+ - total_eval_batch_size: 16
114
+ - optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
115
+ - lr_scheduler_type: cosine
116
+ - lr_scheduler_warmup_steps: 10
117
+ - training_steps: 25
118
+
119
+ ### Training results
120
+
121
+ | Training Loss | Epoch | Step | Validation Loss |
122
+ |:-------------:|:------:|:----:|:---------------:|
123
+ | No log | 0 | 0 | 0.9518 |
124
+ | No log | 0.2857 | 7 | 0.7872 |
125
+ | No log | 0.5714 | 14 | 0.6417 |
126
+ | No log | 0.8571 | 21 | 0.6196 |
127
+
128
+
129
+ ### Framework versions
130
+
131
+ - PEFT 0.15.2
132
+ - Transformers 4.52.3
133
+ - Pytorch 2.8.0.dev20250319+cu128
134
+ - Datasets 3.6.0
135
+ - Tokenizers 0.21.2
adapter_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Ministral-8B-Instruct-2410",
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:39ad3e365f1055f81141d9f44465a99de82aff31b77dd26046abfc079bb3e4e8
3
+ size 2158147096