naimsassine commited on
Commit
a37f413
1 Parent(s): 05709a4

mistralinstruct-7b-sft-lora

Browse files
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ datasets:
4
+ - generator
5
+ library_name: peft
6
+ license: apache-2.0
7
+ tags:
8
+ - trl
9
+ - sft
10
+ - generated_from_trainer
11
+ model-index:
12
+ - name: mistralinstruct-7b-sft-lora
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # mistralinstruct-7b-sft-lora
20
+
21
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 1.4251
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 2e-05
43
+ - train_batch_size: 1
44
+ - eval_batch_size: 1
45
+ - seed: 42
46
+ - gradient_accumulation_steps: 128
47
+ - total_train_batch_size: 128
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: cosine
50
+ - num_epochs: 1
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss |
55
+ |:-------------:|:------:|:----:|:---------------:|
56
+ | 1.4326 | 0.8807 | 6 | 1.4251 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - PEFT 0.11.1
62
+ - Transformers 4.42.4
63
+ - Pytorch 2.3.1+cu121
64
+ - Datasets 2.20.0
65
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0.1,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 64,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "k_proj",
24
+ "v_proj",
25
+ "o_proj",
26
+ "q_proj"
27
+ ],
28
+ "task_type": "CAUSAL_LM",
29
+ "use_dora": false,
30
+ "use_rslora": false
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f973ab09f6874d183dbd626377c9be9569d0aa0d5ac0969ad591b1c89c51b78
3
+ size 109086672
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.8807339449541285,
3
+ "total_flos": 6.764886594315878e+16,
4
+ "train_loss": 1.4339824716250102,
5
+ "train_runtime": 610.6947,
6
+ "train_samples_per_second": 1.428,
7
+ "train_steps_per_second": 0.01
8
+ }
runs/Jul23_20-52-12_288fdc5fccf2/events.out.tfevents.1721768016.288fdc5fccf2.295.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b87a6ce38417ebcee8f15c03ad08942dec3e8654b1b22711e49c692065f0dca
3
+ size 5537
runs/Jul23_20-52-12_288fdc5fccf2/events.out.tfevents.1721768539.288fdc5fccf2.295.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5e997614f51582c870da6b04861e69a2ed2899cde20affc6a0bb06dd6ee8041
3
+ size 6151
runs/Jul23_21-24-12_288fdc5fccf2/events.out.tfevents.1721769873.288fdc5fccf2.295.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd7b8eece0f14a81faf261fef89a2c2758173f8a08cc6de355b3a17e8523bca4
3
+ size 6175
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
3
+ size 587404
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.8807339449541285,
3
+ "total_flos": 6.764886594315878e+16,
4
+ "train_loss": 1.4339824716250102,
5
+ "train_runtime": 610.6947,
6
+ "train_samples_per_second": 1.428,
7
+ "train_steps_per_second": 0.01
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.8807339449541285,
5
+ "eval_steps": 500,
6
+ "global_step": 6,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.7339449541284404,
13
+ "grad_norm": 0.298828125,
14
+ "learning_rate": 1.339745962155613e-06,
15
+ "loss": 1.4326,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.8807339449541285,
20
+ "eval_loss": 1.4250946044921875,
21
+ "eval_runtime": 158.8147,
22
+ "eval_samples_per_second": 5.491,
23
+ "eval_steps_per_second": 5.491,
24
+ "step": 6
25
+ },
26
+ {
27
+ "epoch": 0.8807339449541285,
28
+ "step": 6,
29
+ "total_flos": 6.764886594315878e+16,
30
+ "train_loss": 1.4339824716250102,
31
+ "train_runtime": 610.6947,
32
+ "train_samples_per_second": 1.428,
33
+ "train_steps_per_second": 0.01
34
+ }
35
+ ],
36
+ "logging_steps": 5,
37
+ "max_steps": 6,
38
+ "num_input_tokens_seen": 0,
39
+ "num_train_epochs": 1,
40
+ "save_steps": 500,
41
+ "stateful_callbacks": {
42
+ "TrainerControl": {
43
+ "args": {
44
+ "should_epoch_stop": false,
45
+ "should_evaluate": false,
46
+ "should_log": false,
47
+ "should_save": false,
48
+ "should_training_stop": false
49
+ },
50
+ "attributes": {}
51
+ }
52
+ },
53
+ "total_flos": 6.764886594315878e+16,
54
+ "train_batch_size": 1,
55
+ "trial_name": null,
56
+ "trial_params": null
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66207095291eda917acd277d2b7cefabb7a166a1e1564da047c470a1ba15d159
3
+ size 5560