diff --git a/README.md b/README.md index 47ebe43..a512c69 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ChatGLM-6B 是一个开源的、支持中英双语的对话语言模型,基于 [General Language Model (GLM)](https://github.com/THUDM/GLM) 架构,具有 62 亿参数。结合模型量化技术,用户可以在消费级的显卡上进行本地部署(INT4 量化级别下最低只需 6GB 显存)。ChatGLM-6B 使用了和 ChatGPT 相似的技术,针对中文问答和对话进行了优化。经过约 1T 标识符的中英双语训练,辅以监督微调、反馈自助、人类反馈强化学习等技术的加持,62 亿参数的 ChatGLM-6B 已经能生成相当符合人类偏好的回答。更多信息请参考我们的[博客](https://chatglm.cn/blog)。 -同时,我们基于千亿基座的[ ChatGLM 模型](https://chatglm.cn)正在邀请制内测,后续将逐步扩大内测范围,欢迎申请加入内测。 +同时,我们基于千亿基座的[ChatGLM 模型](https://chatglm.cn)正在邀请制内测,后续将逐步扩大内测范围,欢迎申请加入内测。 ## 硬件需求 @@ -91,6 +91,32 @@ model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).ha 模型量化会带来一定的性能损失,经过测试,ChatGLM-6B 在 4-bit 量化下仍然能够进行自然流畅的生成,使用 [GPT-Q](https://arxiv.org/abs/2210.17323) 等量化方案可以进一步压缩量化精度/提升相同量化精度下的模型性能,我们期待开源社区为本项目提供对应 Pull Request。 +
ChatGLM-6B示例 + +![](examples/self-introduction.png) + +![](examples/blog-outline.png) + +![](examples/ad-writing.png) + +![](examples/ad-writing-2.png) + +![](examples/comments-writing.png) + +![](examples/email-writing-1.png) + +![](examples/email-writing-2.png) + +![](examples/information-extraction.png) + +![](examples/role-play.png) + +![](examples/sport.png) + +![](examples/tour-guide.png) + +
+ ## 协议 本仓库的代码依照 [Apache-2.0](LICENSE) 协议开源,ChatGLM-6B 模型的权重的使用则需要遵循 [Model License](MODEL_LICENSE)。 diff --git a/examples/.DS_Store b/examples/.DS_Store new file mode 100644 index 0000000..4967222 Binary files /dev/null and b/examples/.DS_Store differ diff --git a/examples/ad-writing-2.png b/examples/ad-writing-2.png new file mode 100644 index 0000000..4a97060 Binary files /dev/null and b/examples/ad-writing-2.png differ diff --git a/examples/ad-writing.png b/examples/ad-writing.png new file mode 100644 index 0000000..5c51744 Binary files /dev/null and b/examples/ad-writing.png differ diff --git a/examples/blog-outline.png b/examples/blog-outline.png new file mode 100644 index 0000000..c26a1a9 Binary files /dev/null and b/examples/blog-outline.png differ diff --git a/examples/comments-writing.png b/examples/comments-writing.png new file mode 100644 index 0000000..3c92af6 Binary files /dev/null and b/examples/comments-writing.png differ diff --git a/examples/email-writing-1.png b/examples/email-writing-1.png new file mode 100644 index 0000000..2015edc Binary files /dev/null and b/examples/email-writing-1.png differ diff --git a/examples/email-writing-2.png b/examples/email-writing-2.png new file mode 100644 index 0000000..d6abc5e Binary files /dev/null and b/examples/email-writing-2.png differ diff --git a/examples/information-extraction.png b/examples/information-extraction.png new file mode 100644 index 0000000..8c866df Binary files /dev/null and b/examples/information-extraction.png differ diff --git a/examples/role-play.png b/examples/role-play.png new file mode 100644 index 0000000..5338c97 Binary files /dev/null and b/examples/role-play.png differ diff --git a/examples/self-introduction.png b/examples/self-introduction.png new file mode 100644 index 0000000..d0d372c Binary files /dev/null and b/examples/self-introduction.png differ diff --git a/examples/sport.png b/examples/sport.png new file mode 100644 index 0000000..a900b7b Binary files /dev/null and b/examples/sport.png differ diff --git a/examples/tour-guide.png b/examples/tour-guide.png new file mode 100644 index 0000000..6265f3f Binary files /dev/null and b/examples/tour-guide.png differ