Go to file
2025-06-22 15:06:23 +08:00
app bugfix 2025-05-23 06:51:08 +00:00
conf first commit 2025-05-22 13:12:13 +00:00
files first commit 2025-05-22 13:12:13 +00:00
logs first commit 2025-05-22 13:12:13 +00:00
wwwroot bugfix 2025-05-23 06:51:08 +00:00
fvlm.service bugfix 2025-06-22 15:06:23 +08:00
README.md bugfix 2025-05-22 13:25:53 +00:00
requirements.txt bugfix 2025-06-22 15:06:23 +08:00
start.sh bugfix 2025-06-22 15:06:23 +08:00
stop.sh bugfix 2025-06-22 15:06:23 +08:00

A FastVLM webserver

fastvlm is apple released a open source multiple modal llm, it can input image, promt and generate text

Create virtual environment

python3 -m venv ~/fastvlm.env
source ~/fastvlm/bin/activate

Installation

git clone https://github.com/apple/ml-fastvlm.git
cd ml-fastvlm
pip install -U .
git clone https://git.kaiyuancloud.cn/yumoqing/fvlm.git
pip install git+https://git.kaiyuancloud.cn/yumoqing/apppublic.git
pip install git+https://git.kaiyuancloud.cn/yumoqing/sqlor.git
pip install git+https://git.kaiyuancloud.cn/yumoqing/ahserver.git

start web server

cd fvlm
python app/fastvlm.py

the server will bind on port 9994

Usage

curl http://localhost:9994/v1/generate \
	-F "prompt=描述这张图片" \
	-F "image_path=@path_to_image"