Vision and Language Model(画像と自然言語を組み合わせたモデル)に画像の説明をさせるサンプルコード
初回実行時
$ make setup
2 回目以降
$ docker-compose up -d

画像は https://huggingface.co/rinna/bilingual-gpt-neox-4b-minigpt4/resolve/main/sample.jpg より

https://github.com/abetlen/llama-cpp-python?tab=readme-ov-file#multi-modal-models にあるようにいくつかのモデルから好みのものを選択して使うことができる。
ページ上部のモデル一覧から使用したいモデルを選択して実行することができる。
※13B 以上のモデルは GPU 利用を推奨
9 commits
2 commits
Python
88.0%
Shell
5.8%
Dockerfile
5.5%
Vision and Language Model(画像と自然言語を組み合わせたモデル)に画像の説明をさせるサンプルコード
初回実行時
$ make setup
2 回目以降
$ docker-compose up -d

画像は https://huggingface.co/rinna/bilingual-gpt-neox-4b-minigpt4/resolve/main/sample.jpg より

https://github.com/abetlen/llama-cpp-python?tab=readme-ov-file#multi-modal-models にあるようにいくつかのモデルから好みのものを選択して使うことができる。
ページ上部のモデル一覧から使用したいモデルを選択して実行することができる。
※13B 以上のモデルは GPU 利用を推奨
9 commits
2 commits
Python
88.0%
Shell
5.8%
Dockerfile
5.5%