From c89395164ed7df378424bb03cb863e8118badd46 Mon Sep 17 00:00:00 2001 From: carboncoo Date: Tue, 19 Nov 2024 11:01:06 +0800 Subject: [PATCH] 1119 --- quick_start_clean/readmes/quick_start.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/quick_start_clean/readmes/quick_start.md b/quick_start_clean/readmes/quick_start.md index 7f824b8..e797b4f 100644 --- a/quick_start_clean/readmes/quick_start.md +++ b/quick_start_clean/readmes/quick_start.md @@ -454,8 +454,20 @@ python convert_hf_fm9g.py \ ## 模型推理 -模型推理列举了两种推理方法:离线批量推理和部署OpenAI API服务推理 + +模型推理目前仅更新了demo脚本 +### demo脚本运行 +下载开源模型后,在FM_9G/chat_model.py中更改路径: +``` python +root = "checkpoint/" +... + +# 输入图像文件路径和文本 +url = 'test.jpg' +prompt = '这幅图描述了什么?' +``` +运行chat_model.py脚本