baltop/mistral-sql-finetune
Browse files- README.md +79 -0
- adapter_config.json +33 -0
- adapter_model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
base_model: mistralai/Mistral-7B-v0.1
|
7 |
+
model-index:
|
8 |
+
- name: mistral-sql-finetune
|
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 |
+
# mistral-sql-finetune
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 2.1301
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 2.5e-05
|
39 |
+
- train_batch_size: 2
|
40 |
+
- eval_batch_size: 8
|
41 |
+
- seed: 42
|
42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
+
- lr_scheduler_type: linear
|
44 |
+
- lr_scheduler_warmup_steps: 1
|
45 |
+
- training_steps: 500
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
51 |
+
| 1.8552 | 0.52 | 25 | 1.3859 |
|
52 |
+
| 1.0032 | 1.04 | 50 | 1.2098 |
|
53 |
+
| 0.6187 | 1.56 | 75 | 1.2380 |
|
54 |
+
| 0.5451 | 2.08 | 100 | 1.3525 |
|
55 |
+
| 0.267 | 2.6 | 125 | 1.4362 |
|
56 |
+
| 0.2475 | 3.12 | 150 | 1.4954 |
|
57 |
+
| 0.1659 | 3.65 | 175 | 1.5494 |
|
58 |
+
| 0.1581 | 4.17 | 200 | 1.9906 |
|
59 |
+
| 0.1317 | 4.69 | 225 | 1.7269 |
|
60 |
+
| 0.1133 | 5.21 | 250 | 1.8710 |
|
61 |
+
| 0.1129 | 5.73 | 275 | 1.8427 |
|
62 |
+
| 0.1046 | 6.25 | 300 | 1.9983 |
|
63 |
+
| 0.1056 | 6.77 | 325 | 1.9216 |
|
64 |
+
| 0.0998 | 7.29 | 350 | 2.0076 |
|
65 |
+
| 0.0962 | 7.81 | 375 | 2.0135 |
|
66 |
+
| 0.0873 | 8.33 | 400 | 2.0257 |
|
67 |
+
| 0.0924 | 8.85 | 425 | 2.0783 |
|
68 |
+
| 0.0885 | 9.38 | 450 | 2.0932 |
|
69 |
+
| 0.0894 | 9.9 | 475 | 2.1196 |
|
70 |
+
| 0.0829 | 10.42 | 500 | 2.1301 |
|
71 |
+
|
72 |
+
|
73 |
+
### Framework versions
|
74 |
+
|
75 |
+
- PEFT 0.7.2.dev0
|
76 |
+
- Transformers 4.37.0.dev0
|
77 |
+
- Pytorch 2.1.2
|
78 |
+
- Datasets 2.15.0
|
79 |
+
- Tokenizers 0.15.0
|
adapter_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 64,
|
13 |
+
"lora_dropout": 0.05,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 32,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"q_proj",
|
23 |
+
"k_proj",
|
24 |
+
"o_proj",
|
25 |
+
"gate_proj",
|
26 |
+
"lm_head",
|
27 |
+
"up_proj",
|
28 |
+
"v_proj",
|
29 |
+
"down_proj"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_rslora": false
|
33 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d3348cc155485132ef91130da464549a91ca7085d38561dbdeab6856cfd98981
|
3 |
+
size 864513616
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:604d2154728641cb203cde92c016671ee80c32ddcc96c2591194707df13882ab
|
3 |
+
size 4664
|