详情见tutorial/helloworld/hello_world.md at main · InternLM/tutorial (github.com)
1、环境配置
配置SSH、启动开发机、vscode远程连接
本地环境克隆:
bash # 请每次使用 jupyter lab 打开终端时务必先执行 bash 命令进入 bash 中 bash /root/share/install_conda_env_internlm_base.sh internlm-demo # 执行该脚本文件来安装项目实验环境
模型下载:
mkdir -p /root/model/Shanghai_AI_Laboratory
cp -r /root/share/temp/model_repos/internlm-chat-7b /root/model/Shanghai_AI_Laboratory
2、使用 InternLM2-Chat-1.8B
模型生成 300 字的小故事
cli.py实现terminal显示
3、使用 Lagent
运行 InternLM2-Chat-7B
模型
streamlit实现web显示
报错: Warning: Permanently added '[ssh.intern-ai.org.cn]:40644,[8.130.47.207]:40644' (ECDSA) to the list of known hosts.