Model save
Browse files- README.md +66 -0
- adapter_config.json +31 -0
- adapter_model.safetensors +3 -0
- all_results.json +9 -0
- runs/Apr18_22-58-46_ip-10-192-12-209/events.out.tfevents.1713481152.ip-10-192-12-209.2364.0 +3 -0
- runs/Apr18_23-04-50_ip-10-192-12-209/events.out.tfevents.1713481505.ip-10-192-12-209.12403.0 +3 -0
- runs/Apr18_23-05-57_ip-10-192-12-209/events.out.tfevents.1713481568.ip-10-192-12-209.12403.1 +3 -0
- runs/Apr18_23-07-36_ip-10-192-12-209/events.out.tfevents.1713481664.ip-10-192-12-209.12403.2 +3 -0
- runs/Apr18_23-08-44_ip-10-192-12-209/events.out.tfevents.1713481737.ip-10-192-12-209.12403.3 +3 -0
- runs/Apr18_23-10-03_ip-10-192-12-209/events.out.tfevents.1713481818.ip-10-192-12-209.12403.4 +3 -0
- runs/Apr18_23-15-04_ip-10-192-12-209/events.out.tfevents.1713482107.ip-10-192-12-209.27070.0 +3 -0
- runs/Apr19_07-15-52_ip-10-192-11-238/events.out.tfevents.1713510964.ip-10-192-11-238.2860.0 +3 -0
- runs/Apr19_07-18-35_ip-10-192-11-238/events.out.tfevents.1713511165.ip-10-192-11-238.7026.0 +3 -0
- runs/Apr19_07-33-41_ip-10-192-11-238/events.out.tfevents.1713512025.ip-10-192-11-238.7026.1 +3 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
- train_results.json +9 -0
- trainer_state.json +46 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: mistralai/Mistral-7B-Instruct-v0.1
|
9 |
+
datasets:
|
10 |
+
- generator
|
11 |
+
model-index:
|
12 |
+
- name: mistral-7b-sft-lora-tom-baseline
|
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 |
+
# mistral-7b-sft-lora-tom-baseline
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.4316
|
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: 2
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
55 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
56 |
+
| No log | 1.0 | 1 | 1.4419 |
|
57 |
+
| No log | 2.0 | 2 | 1.4316 |
|
58 |
+
|
59 |
+
|
60 |
+
### Framework versions
|
61 |
+
|
62 |
+
- PEFT 0.10.1.dev0
|
63 |
+
- Transformers 4.41.0.dev0
|
64 |
+
- Pytorch 2.2.1+cu121
|
65 |
+
- Datasets 2.18.0
|
66 |
+
- 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.1",
|
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 |
+
"q_proj",
|
24 |
+
"o_proj",
|
25 |
+
"v_proj",
|
26 |
+
"k_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:c0beb6ddd773d95dac144b7617d2d2981ee4ceb36e1ea93686c309a8595f370d
|
3 |
+
size 218138576
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.0,
|
3 |
+
"total_flos": 176091612315648.0,
|
4 |
+
"train_loss": 0.011341426521539688,
|
5 |
+
"train_runtime": 28.129,
|
6 |
+
"train_samples": 15,
|
7 |
+
"train_samples_per_second": 0.071,
|
8 |
+
"train_steps_per_second": 0.071
|
9 |
+
}
|
runs/Apr18_22-58-46_ip-10-192-12-209/events.out.tfevents.1713481152.ip-10-192-12-209.2364.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e397ecc226a5d8ba85d3088ab7015de2a76c8936ee116fc4db95e52a5b6b5ad1
|
3 |
+
size 5314
|
runs/Apr18_23-04-50_ip-10-192-12-209/events.out.tfevents.1713481505.ip-10-192-12-209.12403.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f9a1a9766bcf05727ec981f19866307feb5a838ca25e675a1c276f29fde505eb
|
3 |
+
size 5315
|
runs/Apr18_23-05-57_ip-10-192-12-209/events.out.tfevents.1713481568.ip-10-192-12-209.12403.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2a78c72418abd70bc64e50c946b12097d73470c19438cba846c920c0fbbd6705
|
3 |
+
size 5315
|
runs/Apr18_23-07-36_ip-10-192-12-209/events.out.tfevents.1713481664.ip-10-192-12-209.12403.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:971ee0c5cf46bcaf1228c14da77a6c78429163c35bb5a5e6de39deb261fd78d6
|
3 |
+
size 5314
|
runs/Apr18_23-08-44_ip-10-192-12-209/events.out.tfevents.1713481737.ip-10-192-12-209.12403.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0db501944aba43c4a35ef416d472c65de9401ce6d5b8a6eb9301093d1186a702
|
3 |
+
size 5315
|
runs/Apr18_23-10-03_ip-10-192-12-209/events.out.tfevents.1713481818.ip-10-192-12-209.12403.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4a44241b2e6f34a3ea84fcd15e18c28dfa63073ff8cc4289fd1365b38c7097c
|
3 |
+
size 5315
|
runs/Apr18_23-15-04_ip-10-192-12-209/events.out.tfevents.1713482107.ip-10-192-12-209.27070.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:41bca768cdc66d82d0bd4e96d9748716635f9daf0cfb7276ff52cd487590cd2a
|
3 |
+
size 5929
|
runs/Apr19_07-15-52_ip-10-192-11-238/events.out.tfevents.1713510964.ip-10-192-11-238.2860.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c458a09f4f69ccaf3aabc3e7c380939dfa89f5735055b05ae67f42015dd35c9a
|
3 |
+
size 5335
|
runs/Apr19_07-18-35_ip-10-192-11-238/events.out.tfevents.1713511165.ip-10-192-11-238.7026.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc34c92a7146d284d498ce1f22b7e4f1de1be74e72f27cc664509043feab63f9
|
3 |
+
size 5335
|
runs/Apr19_07-33-41_ip-10-192-11-238/events.out.tfevents.1713512025.ip-10-192-11-238.7026.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a73df649dfb66864558c458c5b8cf650d4485788d2213228ca2952c62bec07eb
|
3 |
+
size 6224
|
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_config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"additional_special_tokens": [],
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token + ' ' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": true,
|
36 |
+
"model_max_length": 2048,
|
37 |
+
"pad_token": "</s>",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"spaces_between_special_tokens": false,
|
40 |
+
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"unk_token": "<unk>",
|
42 |
+
"use_default_system_prompt": false
|
43 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.0,
|
3 |
+
"total_flos": 176091612315648.0,
|
4 |
+
"train_loss": 0.011341426521539688,
|
5 |
+
"train_runtime": 28.129,
|
6 |
+
"train_samples": 15,
|
7 |
+
"train_samples_per_second": 0.071,
|
8 |
+
"train_steps_per_second": 0.071
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 2,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 1.0,
|
13 |
+
"eval_loss": 1.441920280456543,
|
14 |
+
"eval_runtime": 3.7457,
|
15 |
+
"eval_samples_per_second": 0.267,
|
16 |
+
"eval_steps_per_second": 0.267,
|
17 |
+
"step": 1
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"epoch": 2.0,
|
21 |
+
"eval_loss": 1.4315892457962036,
|
22 |
+
"eval_runtime": 3.7937,
|
23 |
+
"eval_samples_per_second": 0.264,
|
24 |
+
"eval_steps_per_second": 0.264,
|
25 |
+
"step": 2
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"epoch": 2.0,
|
29 |
+
"step": 2,
|
30 |
+
"total_flos": 176091612315648.0,
|
31 |
+
"train_loss": 0.011341426521539688,
|
32 |
+
"train_runtime": 28.129,
|
33 |
+
"train_samples_per_second": 0.071,
|
34 |
+
"train_steps_per_second": 0.071
|
35 |
+
}
|
36 |
+
],
|
37 |
+
"logging_steps": 5,
|
38 |
+
"max_steps": 2,
|
39 |
+
"num_input_tokens_seen": 0,
|
40 |
+
"num_train_epochs": 2,
|
41 |
+
"save_steps": 500,
|
42 |
+
"total_flos": 176091612315648.0,
|
43 |
+
"train_batch_size": 1,
|
44 |
+
"trial_name": null,
|
45 |
+
"trial_params": null
|
46 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9213336a2a272123f85149eb3c38922441610712326e372deb245e9b8de0bd86
|
3 |
+
size 5176
|