RDK X5 运行 vlm 模型(2)——SmolVLM

简介

本项目是 RDK X5 运行 vlm 模型 项目的延续,目前已经解决了SmolVLM 的部署。值得注意的是,SmolVLM只支持英文

项目组成:

准备工作

配置

使用命令 srpi-config 修改ION memory大小为1.6GB,设置方法参考RDK用户手册配置工具 srpi-config 使用指南Performance Options章节。

运行

在 RDK X5 上运行

./build/bin/llama-smolvlm-bpu-cli -m ./SmolVLM2-500M-Video-Instruct-Q8_0.gguf --mmproj ./vit_model_int16_SmolVLM2_500M_Instruct_X5.bin --image image2.jpg -p "Describe the image in one sentence." --temp 0.5 --threads 8

运行结果: