Skip to content

Commit 2be4ed3

Browse files
committed
add startup command
1 parent 215b215 commit 2be4ed3

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,18 @@ The project's startup scripts are divided into flask4modelcache.py and flask4mod
4040
- Python version: 3.8 and above
4141
- Package Installation
4242
```shell
43-
pip install requirements.txt
43+
pip install -r requirements.txt
4444
```
4545
### Service Startup
4646
#### Demo Service Startup
4747
1. Download the embedding model bin file from the following address: [https://huggingface.co/shibing624/text2vec-base-chinese/tree/main](https://huggingface.co/shibing624/text2vec-base-chinese/tree/main). Place the downloaded bin file in the model/text2vec-base-chinese folder.
4848
2. Start the backend service using the flask4modelcache_dome.py script.
49+
```shell
50+
cd CodeFuse-ModelCache
51+
```
52+
```shell
53+
python flask4modelcache_demo.py
54+
```
4955

5056
#### Normal Service Startup
5157
Before starting the service, the following environment configurations should be performed:

README_CN.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,21 @@ Codefuse-ModelCache 是一个开源的大模型语义缓存系统,通过缓存
3737
- flask4modelcache_demo.py 为快速测试服务,内嵌了sqlite和faiss,用户无需关心数据库相关事宜。
3838
- flask4modelcache.py 为正常服务,需用户具备mysql和milvus等数据库服务。
3939
### 环境依赖
40-
4140
- python版本: 3.8及以上
4241
- 依赖包安装:
4342
```shell
44-
pip install requirements.txt
43+
pip install -r requirements.txt
4544
```
4645
### 服务启动
4746
#### Demo服务启动
4847
- 离线模型bin文件下载, 参考地址:[https://huggingface.co/shibing624/text2vec-base-chinese/tree/main](https://huggingface.co/shibing624/text2vec-base-chinese/tree/main),并将下载的bin文件,放到 model/text2vec-base-chinese 文件夹中。
49-
- 执行flask4modelcache_demo.py脚本即可启动。
48+
- 执行flask4modelcache_demo.py启动服务。
49+
```shell
50+
cd CodeFuse-ModelCache
51+
```
52+
```shell
53+
python flask4modelcache_demo.py
54+
```
5055

5156
#### 正常服务启动
5257
在启动服务前,应该进行如下环境配置:

0 commit comments

Comments
 (0)