Instructions to use mlx-community/siglip2-base-patch16-224-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/siglip2-base-patch16-224-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/siglip2-base-patch16-224-8bit --local-dir siglip2-base-patch16-224-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download chat_template.jinja from mlx-community/siglip2-base-patch16-224-8bit: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/mlx-community/siglip2-base-patch16-224-8bit/resolve/4a63797c99f31b0dcf12acacc1dbb82d364af377/chat_template.jinja
- Command line
-
hf download hf://mlx-community/siglip2-base-patch16-224-8bit@4a63797c99f31b0dcf12acacc1dbb82d364af377/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/mlx-community/siglip2-base-patch16-224-8bit/resolve/4a63797c99f31b0dcf12acacc1dbb82d364af377/chat_template.jinja
591 Bytes
| {{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + ' | |
| ' + message['content'] | trim + '<end_of_turn> | |
| ' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model | |
| '}}{% endif %} |