基础作业(结营必做)
一、配置 LMDeploy 运行环境
1.1 InternStudio开发机创建conda环境(推荐)
由于环境依赖项存在torch,下载过程可能比较缓慢。InternStudio上提供了快速创建conda环境的方法。打开命令行终端,创建一个名为lmdeploy
的环境:
studio-conda -t lmdeploy -o pytorch-2.1.2
1.2 激活lmdeploy并安装环境
conda activate lmdeploy
二、以命令行方式与 InternLM2-Chat-1.8B 模型对话
lmdeploy chat /root/internlm2-chat-1_8b
三、笔记
查看进程
ps -ef|grep python
杀死进程
kill -9 12533