Downloads · 30 days
70
10% of all-time downloads
tokimoa/llm-jp-4-vl-9b-beta-mlx-bf16
llm-jp-4-vl-9b-beta-mlx-bf16 is a image-text-to-text model from tokimoa. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
LLM勉強会(llm-jp)の llm-jp-4-vl-9b-beta(日英対応9B VLM。InternVL型グルー×SigLIP×llm-jp-4-8bの構成)のMLX bf16変換版です。
Downloads · 30 days
70
10% of all-time downloads
All-time downloads
674
Public
Parameters
9B
18.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.1 GB · 100%
From the Hugging Face model README
LLM勉強会(llm-jp)の llm-jp-4-vl-9b-beta(日英対応9B VLM。InternVL型グルー×SigLIP×llm-jp-4-8bの構成)のMLX bf16変換版です。
当方で移植したMLX実装は**mlx-vlm本体にマージ済み(0.6.8で標準対応)**です(llmjpvl/ディレクトリ)。mlx-vlm 0.6.8以降ではそのまま使えます。
transformers公式実装(bf16・MPS)とgreedy出力が文字列レベルで完全一致することを確認した、移植の基準となる版です。通常利用には高速・省メモリな 8bit(bf16と全問一致)か 4bit を推奨します。
mlx-vlm 0.6.8以降なら追加手順は不要です(この移植実装は#1738で本体にマージされ、0.6.8に収録されました。0.6.8での動作を実測確認済み):
pip install mlx-vlm
<details><summary>0.6.7以前を使う場合(旧手順)</summary>
repo同梱のllmjpvl/をmlx_vlm/models/へコピーしてください(詳細は旧版カード参照)。
from mlx_vlm import load, generate
model, processor = load("tokimoa/llm-jp-4-vl-9b-beta-mlx-bf16", trust_remote_code=True)
text = processor.apply_chat_template(
[{"role": "user", "content": "<image>この請求書の合計金額はいくらですか?"}],
tokenize=False, add_generation_prompt=True,
)
out = generate(model, processor, text, image=["invoice.png"], max_tokens=256, temperature=0.0)
print(out.text)
llm-jp/llm-jp-4-vl-9b-beta(公式BF16、commit 783c4a9)llmjpvl(このrepoに同梱)mlx-vlm 0.6.7 convert(量子化なし・bf16)Apache-2.0(元モデルに準拠)