pull/746/head
zhulin1 2024-06-18 16:09:34 +08:00
parent 7a221d8fc7
commit 985273772f
5 changed files with 9 additions and 9 deletions

View File

@ -138,7 +138,7 @@ The release of InternLM2 series contains two model sizes: 7B and 20B. 7B models
- Python >= 3.8
- PyTorch >= 1.12.0 (2.0.0 and above are recommended)
- Transformers >= 4.34
- Transformers >= 4.38
## Usages
@ -147,7 +147,7 @@ The chat models adopt [chatml format](./chat/chat_format.md) to support both cha
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
transformers >= 4.38
```
### Import from Transformers
@ -202,7 +202,7 @@ You can interact with the InternLM Chat 7B model through a frontend interface by
```bash
pip install streamlit
pip install transformers>=4.34
pip install transformers>=4.38
streamlit run ./chat/web_demo.py
```

View File

@ -135,7 +135,7 @@ InternLM2 系列模型在本仓库正式发布,具有如下特性:
- Python >= 3.8
- PyTorch >= 1.12.0 (推荐 2.0.0 和更高版本)
- Transformers >= 4.34
- Transformers >= 4.38
## 使用案例
@ -144,7 +144,7 @@ InternLM2 系列模型在本仓库正式发布,具有如下特性:
为了保障更好的使用效果,在用 [Transformers](#import-from-transformers) 或 [ModelScope](#import-from-modelscope) 进行推理前,请确保安装的 transformers 库版本满足以下要求:
```
transformers >= 4.34
transformers >= 4.38
```
### 通过 Transformers 加载
@ -198,7 +198,7 @@ print(response)
```bash
pip install streamlit
pip install transformers>=4.34
pip install transformers>=4.38
streamlit run ./chat/web_demo.py
```

View File

@ -52,7 +52,7 @@ You can interact with the InternLM Chat 7B model through a frontend interface by
```bash
pip install streamlit
pip install transformers>=4.34
pip install transformers>=4.38
streamlit run ./chat/web_demo.py
```

View File

@ -46,6 +46,6 @@ print(response)
```bash
pip install streamlit
pip install transformers>=4.34
pip install transformers>=4.38
streamlit run ./web_demo.py
```

View File

@ -1,3 +1,3 @@
sentencepiece
streamlit
transformers>=4.34
transformers>=4.38