Model save
Browse files- README.md +62 -0
- adapter_config.json +25 -0
- adapter_model.safetensors +3 -0
- all_results.json +13 -0
- eval_results.json +8 -0
- runs/Dec07_09-07-26_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701940121.ip-172-16-110-193.ec2.internal.30273.0 +3 -0
- runs/Dec07_09-33-36_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701941648.ip-172-16-110-193.ec2.internal.6185.0 +3 -0
- runs/Dec07_09-44-49_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701942312.ip-172-16-110-193.ec2.internal.17325.0 +3 -0
- runs/Dec07_09-58-32_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701943140.ip-172-16-110-193.ec2.internal.29647.0 +3 -0
- runs/Dec07_10-34-19_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701945284.ip-172-16-110-193.ec2.internal.13879.0 +3 -0
- runs/Dec07_10-48-54_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701946159.ip-172-16-110-193.ec2.internal.27417.0 +3 -0
- runs/Dec07_10-48-54_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701948855.ip-172-16-110-193.ec2.internal.27417.1 +3 -0
- special_tokens_map.json +35 -0
- tokenizer.json +0 -0
- tokenizer_config.json +46 -0
- train_results.json +8 -0
- trainer_state.json +42 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: HuggingFaceH4/zephyr-7b-beta
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: zephyr-7b-sft-lora-truncate-2048
|
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-truncate-2048
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 1.9825
|
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: 1
|
39 |
+
- eval_batch_size: 1
|
40 |
+
- seed: 42
|
41 |
+
- distributed_type: multi-GPU
|
42 |
+
- num_devices: 4
|
43 |
+
- gradient_accumulation_steps: 256
|
44 |
+
- total_train_batch_size: 1024
|
45 |
+
- total_eval_batch_size: 4
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: cosine
|
48 |
+
- num_epochs: 1
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
54 |
+
| 2.0382 | 0.5 | 1 | 1.9825 |
|
55 |
+
|
56 |
+
|
57 |
+
### Framework versions
|
58 |
+
|
59 |
+
- Transformers 4.35.0
|
60 |
+
- Pytorch 2.1.1+cu121
|
61 |
+
- Datasets 2.14.6
|
62 |
+
- 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": "HuggingFaceH4/zephyr-7b-beta",
|
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 |
+
"v_proj",
|
20 |
+
"q_proj",
|
21 |
+
"k_proj",
|
22 |
+
"o_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:b3713ad42c5e1ba21cebfac3e251a7609e2638d2e9e85969e2b45443e903d22e
|
3 |
+
size 109086672
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.5,
|
3 |
+
"eval_loss": 1.982534408569336,
|
4 |
+
"eval_runtime": 660.4195,
|
5 |
+
"eval_samples": 1086,
|
6 |
+
"eval_samples_per_second": 1.644,
|
7 |
+
"eval_steps_per_second": 0.412,
|
8 |
+
"train_loss": 2.0382144451141357,
|
9 |
+
"train_runtime": 2035.9442,
|
10 |
+
"train_samples": 2026,
|
11 |
+
"train_samples_per_second": 0.995,
|
12 |
+
"train_steps_per_second": 0.0
|
13 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.5,
|
3 |
+
"eval_loss": 1.982534408569336,
|
4 |
+
"eval_runtime": 660.4195,
|
5 |
+
"eval_samples": 1086,
|
6 |
+
"eval_samples_per_second": 1.644,
|
7 |
+
"eval_steps_per_second": 0.412
|
8 |
+
}
|
runs/Dec07_09-07-26_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701940121.ip-172-16-110-193.ec2.internal.30273.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6ed023349a354a4ceefae20927a0bb6cc2ab9654b89932f96a7e8ce8c2524c33
|
3 |
+
size 4690
|
runs/Dec07_09-33-36_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701941648.ip-172-16-110-193.ec2.internal.6185.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38716c52691c4e70057eaaf606965417ec4e9868b748a25b703f9319e5aca420
|
3 |
+
size 4844
|
runs/Dec07_09-44-49_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701942312.ip-172-16-110-193.ec2.internal.17325.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4b71ffba6a129b5646a1bb7c1980eedcab69a0310702510bd0188c9e4921f14b
|
3 |
+
size 4456
|
runs/Dec07_09-58-32_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701943140.ip-172-16-110-193.ec2.internal.29647.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da157c5e3651314f095764adf8c18abd6e7d2e4f01f047449eac46512673cccd
|
3 |
+
size 4456
|
runs/Dec07_10-34-19_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701945284.ip-172-16-110-193.ec2.internal.13879.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e876d260e6b651b764c49744795a717bf95b03c7dcd608668c239931d07b780d
|
3 |
+
size 4302
|
runs/Dec07_10-48-54_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701946159.ip-172-16-110-193.ec2.internal.27417.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83fe8dda7666fa434194be05f02909c95e5a1644c31f37453bf3aeb51683b574
|
3 |
+
size 5093
|
runs/Dec07_10-48-54_ip-172-16-110-193.ec2.internal/events.out.tfevents.1701948855.ip-172-16-110-193.ec2.internal.27417.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5cf9bd799614dd91acdf0e1661348265787960e07210bc3f5ccd0363137eb9df
|
3 |
+
size 354
|
special_tokens_map.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<unk>",
|
4 |
+
"<s>",
|
5 |
+
"</s>"
|
6 |
+
],
|
7 |
+
"bos_token": {
|
8 |
+
"content": "<s>",
|
9 |
+
"lstrip": false,
|
10 |
+
"normalized": false,
|
11 |
+
"rstrip": false,
|
12 |
+
"single_word": false
|
13 |
+
},
|
14 |
+
"eos_token": {
|
15 |
+
"content": "</s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false
|
20 |
+
},
|
21 |
+
"pad_token": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false
|
27 |
+
},
|
28 |
+
"unk_token": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false
|
34 |
+
}
|
35 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"<unk>",
|
30 |
+
"<s>",
|
31 |
+
"</s>"
|
32 |
+
],
|
33 |
+
"bos_token": "<s>",
|
34 |
+
"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 %}",
|
35 |
+
"clean_up_tokenization_spaces": false,
|
36 |
+
"eos_token": "</s>",
|
37 |
+
"legacy": true,
|
38 |
+
"model_max_length": 2048,
|
39 |
+
"pad_token": "</s>",
|
40 |
+
"sp_model_kwargs": {},
|
41 |
+
"spaces_between_special_tokens": false,
|
42 |
+
"tokenizer_class": "LlamaTokenizer",
|
43 |
+
"truncation_side": "left",
|
44 |
+
"unk_token": "<unk>",
|
45 |
+
"use_default_system_prompt": true
|
46 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.5,
|
3 |
+
"train_loss": 2.0382144451141357,
|
4 |
+
"train_runtime": 2035.9442,
|
5 |
+
"train_samples": 2026,
|
6 |
+
"train_samples_per_second": 0.995,
|
7 |
+
"train_steps_per_second": 0.0
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.504930966469428,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1,
|
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.5,
|
13 |
+
"learning_rate": 0.0,
|
14 |
+
"loss": 2.0382,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.5,
|
19 |
+
"eval_loss": 1.9825345277786255,
|
20 |
+
"eval_runtime": 661.3124,
|
21 |
+
"eval_samples_per_second": 1.642,
|
22 |
+
"eval_steps_per_second": 0.411,
|
23 |
+
"step": 1
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.5,
|
27 |
+
"step": 1,
|
28 |
+
"total_flos": 381186736128000.0,
|
29 |
+
"train_loss": 2.0382144451141357,
|
30 |
+
"train_runtime": 2035.9442,
|
31 |
+
"train_samples_per_second": 0.995,
|
32 |
+
"train_steps_per_second": 0.0
|
33 |
+
}
|
34 |
+
],
|
35 |
+
"logging_steps": 5,
|
36 |
+
"max_steps": 1,
|
37 |
+
"num_train_epochs": 1,
|
38 |
+
"save_steps": 500,
|
39 |
+
"total_flos": 381186736128000.0,
|
40 |
+
"trial_name": null,
|
41 |
+
"trial_params": null
|
42 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75506c61238dccb8530ced9278c8d1407273ee20b762c69125c93cd0b8ec0e91
|
3 |
+
size 5688
|