Model save
Browse files- README.md +63 -0
- adapter_config.json +25 -0
- adapter_model.safetensors +3 -0
- all_results.json +13 -0
- eval_results.json +8 -0
- runs/Jan04_06-30-21_torque0/events.out.tfevents.1704379059.torque0.2339408.0 +3 -0
- runs/Jan04_06-40-26_torque0/events.out.tfevents.1704379263.torque0.2341466.0 +3 -0
- runs/Jan04_07-25-31_torque0/events.out.tfevents.1704381968.torque0.2347262.0 +3 -0
- runs/Jan04_07-27-04_torque0/events.out.tfevents.1704382060.torque0.2347736.0 +3 -0
- runs/Jan04_07-38-46_torque0/events.out.tfevents.1704382763.torque0.2349828.0 +3 -0
- runs/Jan04_07-44-31_torque0/events.out.tfevents.1704383107.torque0.2350985.0 +3 -0
- runs/Jan04_07-44-31_torque0/events.out.tfevents.1704411915.torque0.2350985.1 +3 -0
- runs/Jan05_19-17-07_torque0/events.out.tfevents.1704511063.torque0.2431362.0 +3 -0
- runs/Jan06_04-19-56_torque0/events.out.tfevents.1704543638.torque0.2614000.0 +3 -0
- runs/Jan06_18-32-14_torque0/events.out.tfevents.1704594776.torque0.2740607.0 +3 -0
- runs/Jan06_18-32-14_torque0/events.out.tfevents.1704608696.torque0.2740607.1 +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +41 -0
- train_results.json +8 -0
- trainer_state.json +48 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: alignment-handbook/zephyr-7b-sft-full
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: zephyr-7b-sft-lora
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# zephyr-7b-sft-lora
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.9329
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 2e-05
|
38 |
+
- train_batch_size: 4
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- distributed_type: multi-GPU
|
42 |
+
- num_devices: 2
|
43 |
+
- gradient_accumulation_steps: 128
|
44 |
+
- total_train_batch_size: 1024
|
45 |
+
- total_eval_batch_size: 16
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: cosine
|
48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
49 |
+
- num_epochs: 1
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
54 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
55 |
+
| 0.8622 | 0.51 | 6 | 0.9330 |
|
56 |
+
|
57 |
+
|
58 |
+
### Framework versions
|
59 |
+
|
60 |
+
- Transformers 4.35.0
|
61 |
+
- Pytorch 2.1.1+cu121
|
62 |
+
- Datasets 2.14.6
|
63 |
+
- Tokenizers 0.14.1
|
adapter_config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "alignment-handbook/zephyr-7b-sft-full",
|
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 |
+
"lora_alpha": 16,
|
12 |
+
"lora_dropout": 0.1,
|
13 |
+
"modules_to_save": null,
|
14 |
+
"peft_type": "LORA",
|
15 |
+
"r": 64,
|
16 |
+
"rank_pattern": {},
|
17 |
+
"revision": null,
|
18 |
+
"target_modules": [
|
19 |
+
"o_proj",
|
20 |
+
"k_proj",
|
21 |
+
"q_proj",
|
22 |
+
"v_proj"
|
23 |
+
],
|
24 |
+
"task_type": "CAUSAL_LM"
|
25 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:881c62d1cb73b619248606d5d69e7dff96d3a0f33c8508b0716f67f2bf0367b4
|
3 |
+
size 218138576
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.51,
|
3 |
+
"eval_loss": 0.9329424500465393,
|
4 |
+
"eval_runtime": 4121.3449,
|
5 |
+
"eval_samples": 23234,
|
6 |
+
"eval_samples_per_second": 5.637,
|
7 |
+
"eval_steps_per_second": 0.353,
|
8 |
+
"train_loss": 0.9835741718610128,
|
9 |
+
"train_runtime": 9800.1157,
|
10 |
+
"train_samples": 12005,
|
11 |
+
"train_samples_per_second": 1.225,
|
12 |
+
"train_steps_per_second": 0.001
|
13 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.51,
|
3 |
+
"eval_loss": 0.9329424500465393,
|
4 |
+
"eval_runtime": 4121.3449,
|
5 |
+
"eval_samples": 23234,
|
6 |
+
"eval_samples_per_second": 5.637,
|
7 |
+
"eval_steps_per_second": 0.353
|
8 |
+
}
|
runs/Jan04_06-30-21_torque0/events.out.tfevents.1704379059.torque0.2339408.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3aef31c79e3c25b098cc3c730eb45f1f24a611cd18eed7f891f5d63089cae08c
|
3 |
+
size 4267
|
runs/Jan04_06-40-26_torque0/events.out.tfevents.1704379263.torque0.2341466.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:25c8f9d2fe24fb80cdf210f95dcbd2487530ac6fb6d28ac7b0b8e3abe62602d0
|
3 |
+
size 4421
|
runs/Jan04_07-25-31_torque0/events.out.tfevents.1704381968.torque0.2347262.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34a5b402093a96e6594fd0bb75a43b73d20d3f8bf0ccb02f75f9b6fd8099ce43
|
3 |
+
size 4267
|
runs/Jan04_07-27-04_torque0/events.out.tfevents.1704382060.torque0.2347736.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a1053cb0de20602bc8329e16e5d98934d9e496873e661cbb8860149d7010462c
|
3 |
+
size 4267
|
runs/Jan04_07-38-46_torque0/events.out.tfevents.1704382763.torque0.2349828.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcc7911bf2c55c65f2e62147d03c051014cf8969d98c1780dabc900d1187a663
|
3 |
+
size 4267
|
runs/Jan04_07-44-31_torque0/events.out.tfevents.1704383107.torque0.2350985.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:124235b235737a04a6fd4a16f3b7301fec1191c6684b7404654bd69a3246a3e0
|
3 |
+
size 5343
|
runs/Jan04_07-44-31_torque0/events.out.tfevents.1704411915.torque0.2350985.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4ab5f1022f43d3e61c6da69a89b4ebb6a3a88c644918672ea4667ffdc650ba1
|
3 |
+
size 354
|
runs/Jan05_19-17-07_torque0/events.out.tfevents.1704511063.torque0.2431362.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a4715e7c50a82ef5459d555b41a605f599a88aa2290e473a31de6e2fa66fa53e
|
3 |
+
size 4729
|
runs/Jan06_04-19-56_torque0/events.out.tfevents.1704543638.torque0.2614000.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ff941d59ecd594792da19bf8ad8f6855c56c21fa11e6f8b2fee8e471e97c6965
|
3 |
+
size 5189
|
runs/Jan06_18-32-14_torque0/events.out.tfevents.1704594776.torque0.2740607.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b750b85939d84e4c678f8f6e0f8cba1c1a8bb3ec47f3f36cfb33775a3d24ac4
|
3 |
+
size 5189
|
runs/Jan06_18-32-14_torque0/events.out.tfevents.1704608696.torque0.2740607.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8f1dde98d961684e04c04ce03771a6f1d47089ac3f72ab0b2e13f2383ea7faf
|
3 |
+
size 354
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"additional_special_tokens": [],
|
29 |
+
"bos_token": "<s>",
|
30 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
31 |
+
"clean_up_tokenization_spaces": false,
|
32 |
+
"eos_token": "</s>",
|
33 |
+
"legacy": true,
|
34 |
+
"model_max_length": 2048,
|
35 |
+
"pad_token": "</s>",
|
36 |
+
"sp_model_kwargs": {},
|
37 |
+
"spaces_between_special_tokens": false,
|
38 |
+
"tokenizer_class": "LlamaTokenizer",
|
39 |
+
"unk_token": "<unk>",
|
40 |
+
"use_default_system_prompt": true
|
41 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.51,
|
3 |
+
"train_loss": 0.9835741718610128,
|
4 |
+
"train_runtime": 9800.1157,
|
5 |
+
"train_samples": 12005,
|
6 |
+
"train_samples_per_second": 1.225,
|
7 |
+
"train_steps_per_second": 0.001
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.5116588940706196,
|
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.09,
|
13 |
+
"learning_rate": 1e-05,
|
14 |
+
"loss": 0.867,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.43,
|
19 |
+
"learning_rate": 1.5000000000000002e-05,
|
20 |
+
"loss": 0.8622,
|
21 |
+
"step": 5
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.51,
|
25 |
+
"eval_loss": 0.9330160021781921,
|
26 |
+
"eval_runtime": 4125.2443,
|
27 |
+
"eval_samples_per_second": 5.632,
|
28 |
+
"eval_steps_per_second": 0.352,
|
29 |
+
"step": 6
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"epoch": 0.51,
|
33 |
+
"step": 6,
|
34 |
+
"total_flos": 6.133270851249766e+17,
|
35 |
+
"train_loss": 0.9835741718610128,
|
36 |
+
"train_runtime": 9800.1157,
|
37 |
+
"train_samples_per_second": 1.225,
|
38 |
+
"train_steps_per_second": 0.001
|
39 |
+
}
|
40 |
+
],
|
41 |
+
"logging_steps": 5,
|
42 |
+
"max_steps": 11,
|
43 |
+
"num_train_epochs": 1,
|
44 |
+
"save_steps": 500,
|
45 |
+
"total_flos": 6.133270851249766e+17,
|
46 |
+
"trial_name": null,
|
47 |
+
"trial_params": null
|
48 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe93c77d35c9b1d84bfea52e48d9bd715b130e34952a5eb1fe359623490c0193
|
3 |
+
size 4664
|