相关文章推荐
爱搭讪的猴子  ·  startup不是内部或外部命令解决办法 - 掘金·  2 年前    · 
耍酷的红烧肉  ·  c语言pkcs12导出公钥pem,从pem格 ...·  3 年前    · 
打酱油的野马  ·  Fay数字人开源项目在mac ...·  3 年前    · 
紧张的红金鱼  ·  C++开源序列化库:FStruct - 掘金·  3 年前    · 
Code  ›  利用text-generation-webui快速搭建chatGLM2/LLAMA2大模型运行环境开发者社区
https
https://cloud.tencent.com/developer/article/2314265
英姿勃勃的酱牛肉
2 年前
菩提树下的杨过

利用text-generation-webui快速搭建chatGLM2/LLAMA2大模型运行环境

前往小程序,Get 更优 阅读体验!
立即前往
腾讯云
开发者社区
文档 建议反馈 控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
发布
首页
学习
活动
专区
工具
TVP 最新优惠活动
返回腾讯云官网
菩提树下的杨过
首页
学习
活动
专区
工具
TVP 最新优惠活动
返回腾讯云官网
社区首页 > 专栏 > 利用text-generation-webui快速搭建chatGLM2/LLAMA2大模型运行环境

利用text-generation-webui快速搭建chatGLM2/LLAMA2大模型运行环境

作者头像
菩提树下的杨过
发布 于 2023-08-20 08:12:59
5.3K 0
发布 于 2023-08-20 08:12:59
举报
文章被收录于专栏: 菩提树下的杨过 菩提树下的杨过

text-generation-webui 是一个基于Gradio的LLM Web UI开源项目,可以利用其快速搭建各种文本生成的大模型环境。

一、安装

text-generation-webui的readme其实已写得相当详细了,这里就不再重复,只说1个可能存在的坑:

安装 peft 安装卡住

requirements.txt 中有一些依赖项,需要访问github网站,国内经常会打不开,看看这个文件的内容:

代码语言: javascript
复制
aiofiles==23.1.0
fastapi==0.95.2
gradio_client==0.2.5
gradio==3.33.1
accelerate==0.21.0
colorama
datasets
einops
markdown
numpy
pandas
Pillow>=9.5.0
pyyaml
requests
safetensors==0.3.1
scipy
sentencepiece
tensorboard
wandb
git+https://github.com/huggingface/peft@4b371b489b9850fd583f204cdf8b5471e098d4e4
git+https://github.com/huggingface/transformers@baf1daa58eb2960248fd9f7c3af0ed245b8ce4af
bitsandbytes==0.41.1; platform_system != "Windows"
https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl; platform_system == "Windows"
https://github.com/PanQiWei/AutoGPTQ/releases/download/v0.4.1/auto_gptq-0.4.1+cu117-cp310-cp310-win_amd64.whl; platform_system == "Windows"
https://github.com/PanQiWei/AutoGPTQ/releases/download/v0.4.1/auto_gptq-0.4.1+cu117-cp310-cp310-linux_x86_64.whl; platform_system == "Linux" and platform_machine == "x86_64"
https://github.com/jllllll/exllama/releases/download/0.0.10/exllama-0.0.10+cu117-cp310-cp310-win_amd64.whl; platform_system == "Windows"
https://github.com/jllllll/exllama/releases/download/0.0.10/exllama-0.0.10+cu117-cp310-cp310-linux_x86_64.whl; platform_system == "Linux" and platform_machine == "x86_64"
# llama-cpp-python without GPU support
llama-cpp-python==0.1.78; platform_system != "Windows"
https://github.com/abetlen/llama-cpp-python/releases/download/v0.1.78/llama_cpp_python-0.1.78-cp310-cp310-win_amd64.whl; platform_system == "Windows"
# llama-cpp-python with CUDA support
https://github.com/jllllll/llama-cpp-python-cuBLAS-wheels/releases/download/textgen-webui/llama_cpp_python_cuda-0.1.78+cu117-cp310-cp310-win_amd64.whl; platform_system == "Windows"
https://github.com/jllllll/llama-cpp-python-cuBLAS-wheels/releases/download/textgen-webui/llama_cpp_python_cuda-0.1.78+cu117-cp310-cp310-linux_x86_64.whl; platform_system == "Linux" and platform_machine == "x86_64"
# GPTQ-for-LLaMa
https://github.com/jllllll/GPTQ-for-LLaMa-CUDA/releases/download/0.1.0/gptq_for_llama-0.1.0+cu117-cp310-cp310-win_amd64.whl; platform_system == "Windows"
 
推荐文章
爱搭讪的猴子  ·  startup不是内部或外部命令解决办法 - 掘金
2 年前
耍酷的红烧肉  ·  c语言pkcs12导出公钥pem,从pem格式的私钥中提取公钥_weixin_39649965的博客-CSDN博客
3 年前
打酱油的野马  ·  Fay数字人开源项目在mac 上的安装办法_fay 数字人_郭泽斌之心的博客-CSDN博客
3 年前
紧张的红金鱼  ·  C++开源序列化库:FStruct - 掘金
3 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号