diff --git a/README.md b/README.md index c8a04db..a1290ce 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,29 @@ [fastvlm](https://github.com/apple/ml-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 +``` + ## Usage ``` curl https://{domain}/v1/generate \