Skip to content

Commit 8f85a41

Browse files
committed
add triton and streamlit to requirements
1 parent 088f5b6 commit 8f85a41

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ conda activate moss
143143
pip install -r requirements.txt
144144
```
145145

146-
4. (可选) 4/8-bit 量化环境
147-
148-
```bash
149-
pip install triton
150-
```
151-
152146
其中`torch``transformers`版本不建议低于推荐版本。
153147

154148
目前triton仅支持Linux及WSL,暂不支持Windows及Mac OS,请等待后续更新。
@@ -365,7 +359,7 @@ Search("黑暗荣耀 主演") =>
365359

366360
**Streamlit**
367361

368-
我们提供了一个基于[Streamlit](https://streamlit.io/)实现的网页Demo,您可以通过`pip install streamlit`来安装Streamlit,并运行本仓库中的[moss_web_demo_streamlit.py](https://github.com/OpenLMLab/MOSS/blob/main/moss_web_demo_streamlit.py)来打开网页Demo:
362+
我们提供了一个基于[Streamlit](https://streamlit.io/)实现的网页Demo,您可以运行本仓库中的[moss_web_demo_streamlit.py](https://github.com/OpenLMLab/MOSS/blob/main/moss_web_demo_streamlit.py)来打开网页Demo:
369363

370364
```bash
371365
streamlit run moss_web_demo_streamlit.py --server.port 8888
@@ -383,7 +377,7 @@ streamlit run moss_web_demo_streamlit.py --server.port 8888 -- --model_name fnlp
383377

384378
**Gradio**
385379

386-
感谢[Pull Request](https://github.com/OpenLMLab/MOSS/pull/25)提供的基于Gradio的网页Demo,您可以在安装Gradio后运行本仓库的[moss_web_demo_gradio.py](https://github.com/OpenLMLab/MOSS/blob/main/moss_web_demo_gradio.py)
380+
感谢[Pull Request](https://github.com/OpenLMLab/MOSS/pull/25)提供的基于[Gradio](https://gradio.app/)的网页Demo,您可以运行本仓库中的[moss_web_demo_gradio.py](https://github.com/OpenLMLab/MOSS/blob/main/moss_web_demo_gradio.py)
387381

388382
```bash
389383
python moss_web_demo_gradio.py

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ datasets
55
accelerate
66
matplotlib
77
huggingface_hub
8+
triton
9+
streamlit
810
gradio
911
mdtex2html

0 commit comments

Comments
 (0)