InternLM-chat-1.8B智能对话
internlm/internlm2-7b模型下载
from huggingface_hub import snapshot_download
# repo_id是huggingface上用于模型标识的id,allow_patterns通过正则匹配实现选择性地下载repo中的文件
snapshot_download(repo_id="internlm/internlm2-7b", allow_patterns="*.json", local_dir="/root/demo/model")
另外,浦语·灵笔相关的图文创作和视觉问答以及lagent工具调用参考我书生·浦语第一期的学习笔记