大模型学习之书生·浦语大模型2——趣味Demo
发布时间:2024年01月07日
Demo效果

目录

大模型及InternLM模型介绍


- Lagent是智能体框架
- 浦语·灵笔是视觉·语言大模型
InterLM-Chat-7B智能对话Demo

- InterLM-7B
- 70亿参数
- 数万亿token进行训练
- 支持8K token

Lagent智能体工具调用Demo


浦语·灵笔图文创作理解Demo


通用环境配置




- 模型下载
- huggface
- openXlab
- modelscope
实践
智能对话Demo
1 创建开发机

2 进入开发机并创建环境及安装依赖

3 模型下载

4 代码准备

5 终端运行

- 新建
cli_demo.py
- bash切换到虚拟环境后再运行

6 web demo运行
-
先配置本地端口

-
将rsa-key填到开发机配置那块

-
然后再在终端运行


Lagent智能体调用Demo
1 环境安装
与上一个demo类似

2 模型下载
与之前的类似
3 Lagent安装

使用源码安装
4 修改代码

5 demo运行


浦语·灵笔图文理解创作Demo
1 环境安装


2 创建虚拟环境

3 模型下载

4 代码准备

5 终端运行

6 配置端口
7 运行demo

- 自动写文章
- 自动配图并插图


- 可以替换图片或者增加图片
- 可以将文章进行保存,markdown的格式
- 最上面是一些参数配置

多模态对话,问图片里的内容相关。

参考
文章来源:https://blog.csdn.net/uncle_ll/article/details/135440530
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!