Skip to content

Commit

Permalink
[Fix] Fix ChatGLM3 template (#225)
Browse files Browse the repository at this point in the history
* Update templates.py

* Update version.py

* Update README.md

* Update README_zh-CN.md

* Update version.py
  • Loading branch information
LZHgrla authored Nov 16, 2023
1 parent 7b42f0a commit 5431ff9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ English | [简体中文](README_zh-CN.md)

## 🎉 News

- **\[2023/10\]** Support [ChatGLM3-6B](https://huggingface.co/THUDM/chatglm3-6b) model!
- **\[2023/11\]** Support [ChatGLM3-6B](https://huggingface.co/THUDM/chatglm3-6b) model!
- **\[2023/10\]** Support [MSAgent-Bench](https://modelscope.cn/datasets/damo/MSAgent-Bench) dataset, and the fine-tuned LLMs can be applied by [Lagent](https://github.com/InternLM/lagent)!
- **\[2023/10\]** Optimize the data processing to accommodate `system` context. More information can be found on [Docs](docs/en/user_guides/dataset_format.md)!
- **\[2023/09\]** Support [InternLM-20B](https://huggingface.co/internlm) models!
Expand Down
2 changes: 1 addition & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## 🎉 更新

- **\[2023/10\]** 支持 [ChatGLM3-6B](https://huggingface.co/THUDM/chatglm3-6b) 模型!
- **\[2023/11\]** 支持 [ChatGLM3-6B](https://huggingface.co/THUDM/chatglm3-6b) 模型!
- **\[2023/10\]** 支持 [MSAgent-Bench](https://modelscope.cn/datasets/damo/MSAgent-Bench) 数据集,并且微调所得大语言模型可应用至 [Lagent](https://github.com/InternLM/lagent) 框架!
- **\[2023/10\]** 优化数据处理逻辑以兼容 `system` 字段,相关细节请查阅[文档](docs/zh_cn/user_guides/dataset_format.md)
- **\[2023/09\]** 支持 [InternLM-20B](https://huggingface.co/internlm) 系列模型!
Expand Down
2 changes: 1 addition & 1 deletion xtuner/utils/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
INSTRUCTION='\n\n[Round {round}]\n\n问:{input}\n\n答:'),
chatglm3=dict(
SYSTEM='<|system|>\n{system}',
INSTRUCTION='<|user|>\n{input}<|assistant|>'),
INSTRUCTION='<|user|>\n{input}<|assistant|>\n'),
qwen_chat=dict(
SYSTEM=('\n<|im_start|>system\n{system}<|im_end|>'),
INSTRUCTION=(
Expand Down

0 comments on commit 5431ff9

Please sign in to comment.