From 873bd8f5b0cc42a0be1b83995b1809010c62b634 Mon Sep 17 00:00:00 2001 From: del-zhenwu Date: Thu, 25 Jan 2024 18:58:48 +0800 Subject: [PATCH] Update README_zh-CN.md --- README_zh-CN.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README_zh-CN.md b/README_zh-CN.md index 2892a1a..5eae997 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -126,7 +126,10 @@ InternLM2 系列模型在本仓库正式发布,具有如下特性: 接下来我们展示使用 [Transformers](#import-from-transformers),[ModelScope](#import-from-modelscope) 和 [Web demo](#dialogue) 进行推理。 对话模型采用了 [chatml 格式](./chat/chat_format.md) 来支持通用对话和智能体应用。 - +为了保障更好的使用效果,在用 [Transformers](#import-from-transformers) 或 [ModelScope](#import-from-modelscope) 进行推理前,请确保安装的 transformers 库版本满足以下要求: +``` +transformers >= 4.34 +``` ### 通过 Transformers 加载 通过以下的代码从 Transformers 加载 InternLM2-7B-Chat 模型 (可修改模型名称替换不同的模型)