相关文章推荐
刀枪不入的生姜  ·  Microsoft Ajax CDN 上的 ...·  1 月前    · 
刚毅的灭火器  ·  GIT permission denied ...·  1 月前    · 
慈祥的针织衫  ·  C#/.NET/.NET ...·  3 周前    · 
威武的烤面包  ·  在 Ubuntu 上安装 ...·  6 天前    · 
独立的灭火器  ·  多智能体强化学习smac环境配置(Linux ...·  5 天前    · 
重情义的炒粉  ·  真气修行者的穿梭门_百度百科·  11 月前    · 
睿智的打火机  ·  苏联版超人!?《超人:红色之子》动画电影制作 ...·  1 年前    · 
曾深爱过的烤红薯  ·  Eigen::Tensor和Eigen::M ...·  1 年前    · 
性感的香蕉  ·  404 Not Found·  1 年前    · 
飞翔的投影仪  ·  北京地铁:12月24日起,10号线三元桥站封 ...·  1 年前    · 
Code  ›  利用text-generation-webui快速搭建chatGLM2/LLAMA2大模型运行环境开发者社区
https
https://cloud.tencent.com/developer/article/2314265
英姿勃勃的酱牛肉
1 年前
菩提树下的杨过

利用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"
 
推荐文章
刀枪不入的生姜  ·  Microsoft Ajax CDN 上的 jQuery UI 1.10.0 | Microsoft Learn
1 月前
刚毅的灭火器  ·  GIT permission denied publickey-阿里云
1 月前
慈祥的针织衫  ·  C#/.NET/.NET Core优秀项目和框架2023年12月简报-阿里云开发者社区
3 周前
威武的烤面包  ·  在 Ubuntu 上安装 PowerShell - PowerShell | Microsoft Learn
6 天前
独立的灭火器  ·  多智能体强化学习smac环境配置(Linux)_安装多智能强化学习环境pymarl报错
5 天前
重情义的炒粉  ·  真气修行者的穿梭门_百度百科
11 月前
睿智的打火机  ·  苏联版超人!?《超人:红色之子》动画电影制作中!_新浪游戏_手机新浪网
1 年前
曾深爱过的烤红薯  ·  Eigen::Tensor和Eigen::Matrix性能比较-腾讯云开发者社区-腾讯云
1 年前
性感的香蕉  ·  404 Not Found
1 年前
飞翔的投影仪  ·  北京地铁:12月24日起,10号线三元桥站封站,停止与机场线换乘_北晚在线
1 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号