Training in progress, step 500
Browse files- README.md +74 -0
- adapter_config.json +31 -0
- adapter_model.safetensors +3 -0
- all_results.json +21 -0
- config.json +26 -0
- eval_results.json +16 -0
- runs/Jan15_14-22-15_hrsung-a100/events.out.tfevents.1705328710.hrsung-a100.9210.0 +3 -0
- runs/Jan15_14-22-15_hrsung-a100/events.out.tfevents.1705328722.hrsung-a100.9210.1 +3 -0
- runs/Jan15_14-33-04_hrsung-a100/events.out.tfevents.1705330613.hrsung-a100.9931.0 +3 -0
- special_tokens_map.json +30 -0
- test_results.json +8 -0
- tokenizer.json +0 -0
- tokenizer_config.json +47 -0
- trainer_state.json +44 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- alignment-handbook
|
6 |
+
- generated_from_trainer
|
7 |
+
- trl
|
8 |
+
- dpo
|
9 |
+
- generated_from_trainer
|
10 |
+
datasets:
|
11 |
+
- EllieS/pubmedqa_dpo_data
|
12 |
+
base_model: alignment-handbook/zephyr-7b-sft-full
|
13 |
+
model-index:
|
14 |
+
- name: zephyr-7b-dpo-lora-pubmedqa
|
15 |
+
results: []
|
16 |
+
---
|
17 |
+
|
18 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
19 |
+
should probably proofread and complete it, then remove this comment. -->
|
20 |
+
|
21 |
+
# zephyr-7b-dpo-lora-pubmedqa
|
22 |
+
|
23 |
+
This model is a fine-tuned version of [EllieS/zephyr-7b-sft-qlora](https://huggingface.co/EllieS/zephyr-7b-sft-qlora) on the EllieS/pubmedqa_dpo_data dataset.
|
24 |
+
It achieves the following results on the evaluation set:
|
25 |
+
- Loss: 0.6931
|
26 |
+
- Rewards/chosen: 0.0
|
27 |
+
- Rewards/rejected: 0.0
|
28 |
+
- Rewards/accuracies: 0.0
|
29 |
+
- Rewards/margins: 0.0
|
30 |
+
- Logps/rejected: -36.0156
|
31 |
+
- Logps/chosen: -31.6600
|
32 |
+
- Logits/rejected: -2.8963
|
33 |
+
- Logits/chosen: -2.8905
|
34 |
+
|
35 |
+
## Model description
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Intended uses & limitations
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Training and evaluation data
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Training procedure
|
48 |
+
|
49 |
+
### Training hyperparameters
|
50 |
+
|
51 |
+
The following hyperparameters were used during training:
|
52 |
+
- learning_rate: 5e-06
|
53 |
+
- train_batch_size: 4
|
54 |
+
- eval_batch_size: 8
|
55 |
+
- seed: 42
|
56 |
+
- distributed_type: multi-GPU
|
57 |
+
- gradient_accumulation_steps: 2
|
58 |
+
- total_train_batch_size: 8
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: cosine
|
61 |
+
- lr_scheduler_warmup_ratio: 0.1
|
62 |
+
- num_epochs: 1
|
63 |
+
|
64 |
+
### Training results
|
65 |
+
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- PEFT 0.7.1
|
71 |
+
- Transformers 4.36.2
|
72 |
+
- Pytorch 2.1.1+cu121
|
73 |
+
- Datasets 2.14.6
|
74 |
+
- Tokenizers 0.15.0
|
adapter_config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 16,
|
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": 16,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"k_proj",
|
23 |
+
"down_proj",
|
24 |
+
"v_proj",
|
25 |
+
"gate_proj",
|
26 |
+
"q_proj",
|
27 |
+
"o_proj",
|
28 |
+
"up_proj"
|
29 |
+
],
|
30 |
+
"task_type": "CAUSAL_LM"
|
31 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1e4bbc80434dee4d59edd0e08c815530d047aff6cc7d533db2d167dd65a80b6
|
3 |
+
size 83946192
|
all_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -2.8904712200164795,
|
4 |
+
"eval_logits/rejected": -2.8962836265563965,
|
5 |
+
"eval_logps/chosen": -31.659954071044922,
|
6 |
+
"eval_logps/rejected": -36.01557159423828,
|
7 |
+
"eval_loss": 0.6931471824645996,
|
8 |
+
"eval_rewards/accuracies": 0.0,
|
9 |
+
"eval_rewards/chosen": 0.0,
|
10 |
+
"eval_rewards/margins": 0.0,
|
11 |
+
"eval_rewards/rejected": 0.0,
|
12 |
+
"eval_runtime": 2.558,
|
13 |
+
"eval_samples": 5,
|
14 |
+
"eval_samples_per_second": 1.955,
|
15 |
+
"eval_steps_per_second": 0.391,
|
16 |
+
"train_loss": 0.6931471824645996,
|
17 |
+
"train_runtime": 9.8814,
|
18 |
+
"train_samples": 5,
|
19 |
+
"train_samples_per_second": 0.506,
|
20 |
+
"train_steps_per_second": 0.101
|
21 |
+
}
|
config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "alignment-handbook/zephyr-7b-sft-full",
|
3 |
+
"architectures": [
|
4 |
+
"MistralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 4096,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 14336,
|
13 |
+
"max_position_embeddings": 32768,
|
14 |
+
"model_type": "mistral",
|
15 |
+
"num_attention_heads": 32,
|
16 |
+
"num_hidden_layers": 32,
|
17 |
+
"num_key_value_heads": 8,
|
18 |
+
"rms_norm_eps": 1e-05,
|
19 |
+
"rope_theta": 10000.0,
|
20 |
+
"sliding_window": 4096,
|
21 |
+
"tie_word_embeddings": false,
|
22 |
+
"torch_dtype": "bfloat16",
|
23 |
+
"transformers_version": "4.36.2",
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 32000
|
26 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -2.8904712200164795,
|
4 |
+
"eval_logits/rejected": -2.8962836265563965,
|
5 |
+
"eval_logps/chosen": -31.659954071044922,
|
6 |
+
"eval_logps/rejected": -36.01557159423828,
|
7 |
+
"eval_loss": 0.6931471824645996,
|
8 |
+
"eval_rewards/accuracies": 0.0,
|
9 |
+
"eval_rewards/chosen": 0.0,
|
10 |
+
"eval_rewards/margins": 0.0,
|
11 |
+
"eval_rewards/rejected": 0.0,
|
12 |
+
"eval_runtime": 2.558,
|
13 |
+
"eval_samples": 5,
|
14 |
+
"eval_samples_per_second": 1.955,
|
15 |
+
"eval_steps_per_second": 0.391
|
16 |
+
}
|
runs/Jan15_14-22-15_hrsung-a100/events.out.tfevents.1705328710.hrsung-a100.9210.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c51431456654b19bed956d24edd71661b1767556949b24bf37d9e19a532d054a
|
3 |
+
size 5541
|
runs/Jan15_14-22-15_hrsung-a100/events.out.tfevents.1705328722.hrsung-a100.9210.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c775f435a3eec4a982c5c40707205d995205aceed48bdb98b7235e1dcd7ddc01
|
3 |
+
size 815
|
runs/Jan15_14-33-04_hrsung-a100/events.out.tfevents.1705330613.hrsung-a100.9931.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:285ff2005680ccbc55a6dc0eaebf36abf140e783f91129136f4cbfbfa947ca19
|
3 |
+
size 40448
|
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 |
+
}
|
test_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.6931471824645996,
|
4 |
+
"train_runtime": 9.8814,
|
5 |
+
"train_samples": 5,
|
6 |
+
"train_samples_per_second": 0.506,
|
7 |
+
"train_steps_per_second": 0.101
|
8 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "{% 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 %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": true,
|
36 |
+
"max_length": 2048,
|
37 |
+
"model_max_length": 2048,
|
38 |
+
"pad_token": "</s>",
|
39 |
+
"sp_model_kwargs": {},
|
40 |
+
"spaces_between_special_tokens": false,
|
41 |
+
"stride": 0,
|
42 |
+
"tokenizer_class": "LlamaTokenizer",
|
43 |
+
"truncation_side": "left",
|
44 |
+
"truncation_strategy": "longest_first",
|
45 |
+
"unk_token": "<unk>",
|
46 |
+
"use_default_system_prompt": false
|
47 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 100,
|
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": 1.0,
|
13 |
+
"learning_rate": 5e-06,
|
14 |
+
"logits/chosen": -3.0048444271087646,
|
15 |
+
"logits/rejected": -3.0081019401550293,
|
16 |
+
"logps/chosen": -31.717243194580078,
|
17 |
+
"logps/rejected": -36.675025939941406,
|
18 |
+
"loss": 0.6931,
|
19 |
+
"rewards/accuracies": 0.0,
|
20 |
+
"rewards/chosen": 0.0,
|
21 |
+
"rewards/margins": 0.0,
|
22 |
+
"rewards/rejected": 0.0,
|
23 |
+
"step": 1
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"step": 1,
|
28 |
+
"total_flos": 0.0,
|
29 |
+
"train_loss": 0.6931471824645996,
|
30 |
+
"train_runtime": 9.8814,
|
31 |
+
"train_samples_per_second": 0.506,
|
32 |
+
"train_steps_per_second": 0.101
|
33 |
+
}
|
34 |
+
],
|
35 |
+
"logging_steps": 10,
|
36 |
+
"max_steps": 1,
|
37 |
+
"num_input_tokens_seen": 0,
|
38 |
+
"num_train_epochs": 1,
|
39 |
+
"save_steps": 500,
|
40 |
+
"total_flos": 0.0,
|
41 |
+
"train_batch_size": 4,
|
42 |
+
"trial_name": null,
|
43 |
+
"trial_params": null
|
44 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:478a14cb898347ed195f5287441d02de65d6dc8a042a098070ba1ff1d7ffe5c8
|
3 |
+
size 4856
|