赞
踩
pip3 install fschat
- git clone https://github.com/lm-sys/FastChat.git
- cd FastChat
- # 不升级pip会报错,下面两种方式二选一
- python3 -m pip install --upgrade pip # 方式一
- pip3 install --upgrade pip # 方式二
-
- # 升级之后运行下面命令进行安装
- pip3 install -e .
- # 下载transformers包
- git clone https://github.com/huggingface/transformers.git
-
- # 进入transformers目录
- cd transformers
-
- # 安装transformers
- pip3 install -e .
上传模型权重——使用阿里云盘上传到数据盘(自己提前下载模型权重并保存到自己的阿里云盘)
- # 显卡有28G显存用此命令
- python3 -m fastchat.serve.cli --model-path /root/autodl-tmp/vicuna-13b
-
- # 显卡不足28G显存用此命令
- python3 -m fastchat.serve.cli --model-path /root/autodl-tmp/vicuna-13b --load-8bit
-
- # /root/autodl-tmp/vicuna-13b 为模型权重路径,可以根据自己的情况替换为自己的路径
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。