This commit is contained in:
yumoqing 2025-05-22 13:23:37 +00:00
parent 593a8ae4be
commit 281c676056

View File

@ -2,6 +2,29 @@
[fastvlm](https://github.com/apple/ml-fastvlm) is apple released a open source [fastvlm](https://github.com/apple/ml-fastvlm) is apple released a open source
multiple modal llm, it can input image, promt and generate text 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
```
## Usage ## Usage
``` ```
curl https://{domain}/v1/generate \ curl https://{domain}/v1/generate \