-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathwin安装说明.txt
50 lines (36 loc) · 1.79 KB
/
win安装说明.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
git clone https://github.com/wordweb/langchain-ChatGLM-and-TigerBot
cd langchain-ChatGLM-and-TigerBot
链接: https://pan.baidu.com/s/11O5wnEJ7B3dkM1cvTdKMAA 提取码: 4g63
下载Python310.zip
解压后确保Python.exe是在这个路径
c:\langchain-ChatGLM-and-TigerBot\Python310\Python.exe
mkdir model
cd model
mkdir TigerBot
到下面的链接中下载所有文件,
https://huggingface.co/TigerResearch/tigerbot-7b-sft/tree/main
放到 c:\langchain-ChatGLM-and-TigerBot\model\TigerBot 目录中
mkdir text2vec-large-chinese
到下面的链接中下载所有文件,
https://huggingface.co/GanymedeNil/text2vec-large-chinese/tree/main
放到 c:\langchain-ChatGLM-and-TigerBot\model\text2vec-large-chinese 目录中
https://download.pytorch.org/whl/torch/
下载torch-2.0.1+cu117-cp310-cp310-win_amd64.whl
放到 c:\langchain-ChatGLM-and-TigerBot 目录中
链接: https://pan.baidu.com/s/19q22PakPG-hxO4MFwyXUQw 提取码: sihp
下载
solved_packageMissInInstalling_mu_visual_cpp_build_tools_2015_update_3_x64_dvd_dfd9a39c.iso
挂在到虚拟光驱以后
执行
VisualCppBuildTools_Full.exe
.\Python310\python.exe -m pip install --requirement requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
.\Python310\python.exe -m pip uninstall torch
.\Python310\python.exe -m pip install torch-2.0.1+cu117-cp310-cp310-win_amd64.whl -i https://pypi.tuna.tsinghua.edu.cn/simple
.\Python310\python.exe -m pip install accelerate -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
.\Python310\python.exe webui.py
或者
.\Python310\python.exe api.py
根据提示,在浏览器中访问
http://localhost:7861 或者 http://localhost:7860
如果提示找不到gpu请到下面链接下载cuda117
https://developer.nvidia.com/cuda-11-7-0-download-archive