qwen0.5
#3
by
andyweiren
- opened
- README.md +3 -3
- generation_config.json +0 -1
- tokenizer_config.json +1 -1
README.md
CHANGED
@@ -17,7 +17,7 @@ tags:
|
|
17 |
|
18 |
Qwen1.5 is the beta version of Qwen2, a transformer-based decoder-only language model pretrained on a large amount of data. In comparison with the previous released Qwen, the improvements include:
|
19 |
|
20 |
-
*
|
21 |
* Significant performance improvement in human preference for chat models;
|
22 |
* Multilingual support of both base and chat models;
|
23 |
* Stable support of 32K context length for models of all sizes
|
@@ -27,10 +27,10 @@ For more details, please refer to our [blog post](https://qwenlm.github.io/blog/
|
|
27 |
<br>
|
28 |
|
29 |
## Model Details
|
30 |
-
Qwen1.5 is a language model series including decoder language models of different model sizes. For each size, we release the base language model and the aligned chat model. It is based on the Transformer architecture with SwiGLU activation, attention QKV bias, group query attention, mixture of sliding window attention and full attention, etc. Additionally, we have an improved tokenizer adaptive to multiple natural languages and codes. For the beta version, temporarily we did not include GQA
|
31 |
|
32 |
## Training details
|
33 |
-
We pretrained the models with a large amount of data, and we post-trained the models with both supervised finetuning and direct preference optimization.
|
34 |
|
35 |
## Requirements
|
36 |
The code of Qwen1.5 has been in the latest Hugging face transformers and we advise you to install `transformers>=4.37.0`, or you might encounter the following error:
|
|
|
17 |
|
18 |
Qwen1.5 is the beta version of Qwen2, a transformer-based decoder-only language model pretrained on a large amount of data. In comparison with the previous released Qwen, the improvements include:
|
19 |
|
20 |
+
* 6 model sizes, including 0.5B, 1.8B, 4B, 7B, 14B, and 72B;
|
21 |
* Significant performance improvement in human preference for chat models;
|
22 |
* Multilingual support of both base and chat models;
|
23 |
* Stable support of 32K context length for models of all sizes
|
|
|
27 |
<br>
|
28 |
|
29 |
## Model Details
|
30 |
+
Qwen1.5 is a language model series including decoder language models of different model sizes. For each size, we release the base language model and the aligned chat model. It is based on the Transformer architecture with SwiGLU activation, attention QKV bias, group query attention, mixture of sliding window attention and full attention, etc. Additionally, we have an improved tokenizer adaptive to multiple natural languages and codes. For the beta version, temporarily we did not include GQA and the mixture of SWA and full attention.
|
31 |
|
32 |
## Training details
|
33 |
+
We pretrained the models with a large amount of data, and we post-trained the models with both supervised finetuning and direct preference optimization. However, DPO leads to improvements in human preference evaluation but degradation in benchmark evaluation. In the very near future, we will fix both problems.
|
34 |
|
35 |
## Requirements
|
36 |
The code of Qwen1.5 has been in the latest Hugging face transformers and we advise you to install `transformers>=4.37.0`, or you might encounter the following error:
|
generation_config.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
{
|
2 |
"bos_token_id": 151643,
|
3 |
-
"pad_token_id": 151643,
|
4 |
"do_sample": true,
|
5 |
"eos_token_id": [
|
6 |
151645,
|
|
|
1 |
{
|
2 |
"bos_token_id": 151643,
|
|
|
3 |
"do_sample": true,
|
4 |
"eos_token_id": [
|
5 |
151645,
|
tokenizer_config.json
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
},
|
29 |
"additional_special_tokens": ["<|im_start|>", "<|im_end|>"],
|
30 |
"bos_token": null,
|
31 |
-
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant
|
32 |
"clean_up_tokenization_spaces": false,
|
33 |
"eos_token": "<|im_end|>",
|
34 |
"errors": "replace",
|
|
|
28 |
},
|
29 |
"additional_special_tokens": ["<|im_start|>", "<|im_end|>"],
|
30 |
"bos_token": null,
|
31 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content']}}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '<|im_end|>' + '\n'}}{% endif %}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
32 |
"clean_up_tokenization_spaces": false,
|
33 |
"eos_token": "<|im_end|>",
|
34 |
"errors": "replace",
|