AI
分享
书生浦语大模型实战笔记(二)
输入“/”快速插入内容
书生浦语
大模型
实战笔记(二)
飞书用户8530
2024年1月7日修改
InternLM-Chat-7B 智能对话 Demo
1.运行cli_demo.py
代码块
Shell
python /root/code/InternLM/cli_demo.py
2.运行web_demo.py
代码块
Shell
bash
conda activate internlm-demo # 首次进入 vscode 会默认是 base 环境,所以首先切换环境
cd /root/code/InternLM
streamlit run web_demo.py --server.address 127.0.0.1 --server.port 6006
Lagent
智能体
工具调用 Demo
代码块
Shell
streamlit run /root/code/lagent/examples/react_web_demo.py --server.address 127.0.0.1 --server.port 6006
浦语·灵笔图文理解创作 Demo
代码块
Shell
cd /root/code/InternLM-XComposer
python examples/web_demo.py \
--folder /root/model/Shanghai_AI_Laboratory/internlm-xcomposer-7b \
--num_gpus 1 \
--port 6006