Instructions to use Daizee/X-Ray_Alpha-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Daizee/X-Ray_Alpha-mlx-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download Daizee/X-Ray_Alpha-mlx-4bit --local-dir X-Ray_Alpha-mlx-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download chat_template.jinja from Daizee/X-Ray_Alpha-mlx-4bit: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/Daizee/X-Ray_Alpha-mlx-4bit/resolve/main/chat_template.jinja
- Command line
-
hf download hf://Daizee/X-Ray_Alpha-mlx-4bit/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/Daizee/X-Ray_Alpha-mlx-4bit/resolve/main/chat_template.jinja
1.18 kB
| {{ bos_token }} | |
| {%- set loop_messages = messages -%} | |
| {%- for message in loop_messages -%} | |
| {%- if message['role'] == 'system' -%} | |
| {%- set role = 'user' -%} | |
| {%- elif message['role'] == 'assistant' -%} | |
| {%- set role = 'model' -%} | |
| {%- else -%} | |
| {%- set role = message['role'] -%} | |
| {%- endif -%} | |
| {%- if (role == 'user') != (loop.index0 % 2 == 0) -%} | |
| {{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }} | |
| {%- endif -%} | |
| {{ '<start_of_turn>' + role + '\n' }} | |
| {%- if message['content'] is string -%} | |
| {{ message['content'] | trim }} | |
| {%- elif message['content'] is iterable -%} | |
| {%- for item in message['content'] -%} | |
| {%- if item['type'] == 'image' -%} | |
| {{ '<start_of_image>' }} | |
| {%- elif item['type'] == 'text' -%} | |
| {{ item['text'] | trim }} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {%- else -%} | |
| {{ raise_exception("Invalid content type") }} | |
| {%- endif -%} | |
| {{ '<end_of_turn>\n' }} | |
| {%- endfor -%} | |
| {%- if add_generation_prompt -%} | |
| {{'<start_of_turn>model\n'}} | |
| {%- endif -%} | |