From eedc0b9aea71efd41e397b501dc10133a2408b13 Mon Sep 17 00:00:00 2001 From: del-zhenwu Date: Thu, 25 Jan 2024 19:14:05 +0800 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b002e0..67e5611 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,10 @@ The release of InternLM2 series contains two model sizes: 7B and 20B. 7B models We briefly show the usages with [Transformers](#import-from-transformers), [ModelScope](#import-from-modelscope), and [Web demos](#dialogue). The chat models adopt [chatml format](./chat/chat_format.md) to support both chat and agent applications. - +To ensure a better usage effect, please make sure that the installed transformers library version meets the following requirements before performing inference with [Transformers](#import-from-transformers) or [ModelScope](#import-from-modelscope): +``` +transformers >= 4.34 +``` ### Import from Transformers To load the InternLM2-7B-Chat model using Transformers, use the following code: