MiniCPM-V-4.7-1B-RKNN3-RK1828 / host /send_vlm_req.cmd
jj90's picture
Add model card, deploy guide, host + conversion scripts
fd11f30 verified
Raw History Blame Contribute Delete
846 Bytes
@echo off
rem =====================================================================
rem Send one request to the rkllm3-server started by rknn\start.cmd.
rem Usage: send_vlm_req.cmd <name> [port]
rem <name> req_<name>.json must exist next to this script
rem [port] default 8899 (matches rknn\start.cmd RK_PORT default)
rem IMPORTANT: keep this file pure ASCII + CRLF.
rem =====================================================================
setlocal
set "BASE=%~dp0"
set "NAME=%~1"
if "%NAME%"=="" set "NAME=orange"
set "PORT=%~2"
if "%PORT%"=="" set "PORT=8899"
curl.exe -s -X POST http://127.0.0.1:%PORT%/v1/chat/completions -H "Content-Type: application/json" --data-binary "@%BASE%req_%NAME%.json" -o "%BASE%resp_%NAME%.json" -w "HTTP=%%{http_code} TIME=%%{time_total}s PORT=%PORT%" --max-time 180
echo.
exit /b 0