yangzhao02
commited on
Commit
•
61c5698
1
Parent(s):
1ac92ea
Model save
Browse files- README.md +5 -9
- all_results.json +6 -11
- config.json +5 -4
- generation_config.json +3 -2
- model.safetensors +2 -2
- special_tokens_map.json +17 -16
- tokenizer_config.json +4 -4
- train_results.json +6 -6
- trainer_state.json +0 -0
- training_args.bin +1 -1
README.md
CHANGED
@@ -2,15 +2,11 @@
|
|
2 |
license: apache-2.0
|
3 |
base_model: Qwen/Qwen2-0.5B
|
4 |
tags:
|
5 |
-
- alignment-handbook
|
6 |
-
- trl
|
7 |
-
- sft
|
8 |
-
- generated_from_trainer
|
9 |
- trl
|
10 |
- sft
|
11 |
- generated_from_trainer
|
12 |
datasets:
|
13 |
-
-
|
14 |
model-index:
|
15 |
- name: qwen2-0.5b-sft
|
16 |
results: []
|
@@ -19,12 +15,12 @@ model-index:
|
|
19 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
20 |
should probably proofread and complete it, then remove this comment. -->
|
21 |
|
22 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/zhaoyang1/huggingface/runs/
|
23 |
# qwen2-0.5b-sft
|
24 |
|
25 |
-
This model is a fine-tuned version of [Qwen/Qwen2-0.5B](https://huggingface.co/Qwen/Qwen2-0.5B) on the
|
26 |
It achieves the following results on the evaluation set:
|
27 |
-
- Loss: 1.
|
28 |
|
29 |
## Model description
|
30 |
|
@@ -62,7 +58,7 @@ The following hyperparameters were used during training:
|
|
62 |
|
63 |
| Training Loss | Epoch | Step | Validation Loss |
|
64 |
|:-------------:|:------:|:----:|:---------------:|
|
65 |
-
| 1.
|
66 |
|
67 |
|
68 |
### Framework versions
|
|
|
2 |
license: apache-2.0
|
3 |
base_model: Qwen/Qwen2-0.5B
|
4 |
tags:
|
|
|
|
|
|
|
|
|
5 |
- trl
|
6 |
- sft
|
7 |
- generated_from_trainer
|
8 |
datasets:
|
9 |
+
- generator
|
10 |
model-index:
|
11 |
- name: qwen2-0.5b-sft
|
12 |
results: []
|
|
|
15 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
should probably proofread and complete it, then remove this comment. -->
|
17 |
|
18 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/zhaoyang1/huggingface/runs/n1cgl3ti)
|
19 |
# qwen2-0.5b-sft
|
20 |
|
21 |
+
This model is a fine-tuned version of [Qwen/Qwen2-0.5B](https://huggingface.co/Qwen/Qwen2-0.5B) on the generator dataset.
|
22 |
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.5269
|
24 |
|
25 |
## Model description
|
26 |
|
|
|
58 |
|
59 |
| Training Loss | Epoch | Step | Validation Loss |
|
60 |
|:-------------:|:------:|:----:|:---------------:|
|
61 |
+
| 1.524 | 0.9999 | 1888 | 1.5269 |
|
62 |
|
63 |
|
64 |
### Framework versions
|
all_results.json
CHANGED
@@ -1,14 +1,9 @@
|
|
1 |
{
|
2 |
-
"epoch": 0.
|
3 |
-
"
|
4 |
-
"
|
5 |
-
"
|
6 |
-
"eval_samples_per_second": 64.802,
|
7 |
-
"eval_steps_per_second": 4.052,
|
8 |
-
"total_flos": 107512363745280.0,
|
9 |
-
"train_loss": 1.5265680355653908,
|
10 |
-
"train_runtime": 15553.3872,
|
11 |
"train_samples": 207864,
|
12 |
-
"train_samples_per_second": 15.
|
13 |
-
"train_steps_per_second": 0.
|
14 |
}
|
|
|
1 |
{
|
2 |
+
"epoch": 0.9998676022772408,
|
3 |
+
"total_flos": 106218135748608.0,
|
4 |
+
"train_loss": 1.5447227579809852,
|
5 |
+
"train_runtime": 15813.94,
|
|
|
|
|
|
|
|
|
|
|
6 |
"train_samples": 207864,
|
7 |
+
"train_samples_per_second": 15.283,
|
8 |
+
"train_steps_per_second": 0.119
|
9 |
}
|
config.json
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
-
"bos_token_id":
|
8 |
-
"eos_token_id":
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 896,
|
11 |
"initializer_range": 0.02,
|
@@ -16,13 +16,14 @@
|
|
16 |
"num_attention_heads": 14,
|
17 |
"num_hidden_layers": 24,
|
18 |
"num_key_value_heads": 2,
|
|
|
19 |
"rms_norm_eps": 1e-06,
|
20 |
"rope_theta": 1000000.0,
|
21 |
"sliding_window": 131072,
|
22 |
"tie_word_embeddings": true,
|
23 |
"torch_dtype": "float16",
|
24 |
"transformers_version": "4.42.0",
|
25 |
-
"use_cache":
|
26 |
"use_sliding_window": false,
|
27 |
-
"vocab_size":
|
28 |
}
|
|
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 151644,
|
8 |
+
"eos_token_id": 151645,
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 896,
|
11 |
"initializer_range": 0.02,
|
|
|
16 |
"num_attention_heads": 14,
|
17 |
"num_hidden_layers": 24,
|
18 |
"num_key_value_heads": 2,
|
19 |
+
"pad_token_id": 151645,
|
20 |
"rms_norm_eps": 1e-06,
|
21 |
"rope_theta": 1000000.0,
|
22 |
"sliding_window": 131072,
|
23 |
"tie_word_embeddings": true,
|
24 |
"torch_dtype": "float16",
|
25 |
"transformers_version": "4.42.0",
|
26 |
+
"use_cache": false,
|
27 |
"use_sliding_window": false,
|
28 |
+
"vocab_size": 151646
|
29 |
}
|
generation_config.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
{
|
2 |
-
"bos_token_id":
|
3 |
-
"eos_token_id":
|
4 |
"max_new_tokens": 2048,
|
|
|
5 |
"transformers_version": "4.42.0"
|
6 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token_id": 151644,
|
3 |
+
"eos_token_id": 151645,
|
4 |
"max_new_tokens": 2048,
|
5 |
+
"pad_token_id": 151645,
|
6 |
"transformers_version": "4.42.0"
|
7 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4828a8f271d2dfaa510a80ad20ce65d9f92dcdcbd95b7c6dfad5614cfeacb97b
|
3 |
+
size 987577856
|
special_tokens_map.json
CHANGED
@@ -1,20 +1,21 @@
|
|
1 |
{
|
2 |
"additional_special_tokens": [
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
],
|
6 |
-
"
|
7 |
-
|
8 |
-
|
9 |
-
"normalized": false,
|
10 |
-
"rstrip": false,
|
11 |
-
"single_word": false
|
12 |
-
},
|
13 |
-
"pad_token": {
|
14 |
-
"content": "<|endoftext|>",
|
15 |
-
"lstrip": false,
|
16 |
-
"normalized": false,
|
17 |
-
"rstrip": false,
|
18 |
-
"single_word": false
|
19 |
-
}
|
20 |
}
|
|
|
1 |
{
|
2 |
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "<|im_start|>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"content": "<|im_end|>",
|
12 |
+
"lstrip": false,
|
13 |
+
"normalized": false,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
}
|
17 |
],
|
18 |
+
"bos_token": "<|im_start|>",
|
19 |
+
"eos_token": "<|im_end|>",
|
20 |
+
"pad_token": "<|im_end|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
tokenizer_config.json
CHANGED
@@ -30,13 +30,13 @@
|
|
30 |
"<|im_start|>",
|
31 |
"<|im_end|>"
|
32 |
],
|
33 |
-
"bos_token":
|
34 |
-
"chat_template": "{% for message in messages %}
|
35 |
"clean_up_tokenization_spaces": false,
|
36 |
-
"eos_token": "<|
|
37 |
"errors": "replace",
|
38 |
"model_max_length": 32768,
|
39 |
-
"pad_token": "<|
|
40 |
"split_special_tokens": false,
|
41 |
"tokenizer_class": "Qwen2Tokenizer",
|
42 |
"unk_token": null
|
|
|
30 |
"<|im_start|>",
|
31 |
"<|im_end|>"
|
32 |
],
|
33 |
+
"bos_token": "<|im_start|>",
|
34 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
35 |
"clean_up_tokenization_spaces": false,
|
36 |
+
"eos_token": "<|im_end|>",
|
37 |
"errors": "replace",
|
38 |
"model_max_length": 32768,
|
39 |
+
"pad_token": "<|im_end|>",
|
40 |
"split_special_tokens": false,
|
41 |
"tokenizer_class": "Qwen2Tokenizer",
|
42 |
"unk_token": null
|
train_results.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
{
|
2 |
-
"epoch": 0.
|
3 |
-
"total_flos":
|
4 |
-
"train_loss": 1.
|
5 |
-
"train_runtime":
|
6 |
"train_samples": 207864,
|
7 |
-
"train_samples_per_second": 15.
|
8 |
-
"train_steps_per_second": 0.
|
9 |
}
|
|
|
1 |
{
|
2 |
+
"epoch": 0.9998676022772408,
|
3 |
+
"total_flos": 106218135748608.0,
|
4 |
+
"train_loss": 1.5447227579809852,
|
5 |
+
"train_runtime": 15813.94,
|
6 |
"train_samples": 207864,
|
7 |
+
"train_samples_per_second": 15.283,
|
8 |
+
"train_steps_per_second": 0.119
|
9 |
}
|
trainer_state.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 7032
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:71a42492410252f3c7b6d2b0c63f745b17658742bce5e32808b2a14e95017cdb
|
3 |
size 7032
|