ChatGLM2-6B的部署步骤_A3

ChatGLM2-6B 下载地址

一、VisualGLM-6B环境安装

1、硬件配置

操作系统:Ubuntu_64(ubuntu22.04.3)

GPU:4050

显存:16G

2、配置环境

建议最好自己新建一个conda环境

复制代码
conda create -n chatglm2 python==3.8

pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple 

二、本地加载chatglm2-6b-int4模型

打开pycharm运行

web_demo.py

复制代码
python web_demo.py

运行成功:

或终端运行:

复制代码
streamlit run web_demo21.py

pip install gradio==3.40.0

cpolar http xxxx

端口

/anaconda3/envs/chatglm2/lib/python3.8/site-packages/gradio$

networking.py

相关推荐
Guheyunyi2 分钟前
监测预警系统重塑隧道安全新范式
大数据·运维·人工智能·科技·安全
懒羊羊大王呀10 分钟前
Ubuntu20.04中 Redis 的安装和配置
linux·redis
鳄鱼杆13 分钟前
服务器 | Centos 9 系统中,如何部署SpringBoot后端项目?
服务器·spring boot·centos
杰哥技术分享28 分钟前
在 CentOS 上安装 Docker 和 Docker Compose 并配置使用国内镜像源
linux·docker·centos
知更鸟呆呆32 分钟前
【Linux操作系统】基础开发工具(yum、vim、gcc/g++)
linux·运维·vim
xiangyong5833 分钟前
ubuntu系统文件误删(/lib/x86_64-linux-gnu/libc.so.6)修复方案 [成功解决]
linux·ubuntu·gnu
Gold Steps.1 小时前
Docker容器部署elasticsearch8.*与Kibana8.*版本使用filebeat采集日志
运维·docker·云原生·es
weixin_461259411 小时前
[C]C语言日志系统宏技巧解析
java·服务器·c语言
m0_637146931 小时前
C语言基础面试问答
运维·服务器
t198751282 小时前
Linux 上的 Tomcat 端口占用排查
linux·tomcat·firefox