Instructions to use Interchained/imagine-v13 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Interchained/imagine-v13 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Interchained/imagine-v13:Q4_K_M # Run inference directly in the terminal: llama cli -hf Interchained/imagine-v13:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Interchained/imagine-v13:Q4_K_M # Run inference directly in the terminal: llama cli -hf Interchained/imagine-v13:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Interchained/imagine-v13:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Interchained/imagine-v13:Q4_K_M
Use Docker
docker model run hf.co/Interchained/imagine-v13:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use Interchained/imagine-v13 with Ollama:
ollama run hf.co/Interchained/imagine-v13:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Interchained/imagine-v13 with Docker Model Runner:
docker model run hf.co/Interchained/imagine-v13:Q4_K_M
- Lemonade
How to use Interchained/imagine-v13 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Interchained/imagine-v13:Q4_K_M
Run and chat with the model
lemonade run user.imagine-v13-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download chat_template.jinja from Interchained/imagine-v13: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/Interchained/imagine-v13/resolve/main/chat_template.jinja
- Command line
-
hf download hf://Interchained/imagine-v13/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/Interchained/imagine-v13/resolve/main/chat_template.jinja
1.04 kB
| {% if not add_generation_prompt is defined %} | |
| {% set add_generation_prompt = false %} | |
| {% endif %} | |
| {%- set ns = namespace(found=false) -%} | |
| {%- for message in messages -%} | |
| {%- if message['role'] == 'system' -%} | |
| {%- set ns.found = true -%} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {{bos_token}}{%- if not ns.found -%} | |
| {{'You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer\n'}} | |
| {%- endif %} | |
| {%- for message in messages %} | |
| {%- if message['role'] == 'system' %} | |
| {{ message['content'] }} | |
| {%- else %} | |
| {%- if message['role'] == 'user' %} | |
| {{'### Instruction:\n' + message['content'] + '\n'}} | |
| {%- else %} | |
| {{'### Response:\n' + message['content'] + '\n<|EOT|>\n'}} | |
| {%- endif %} | |
| {%- endif %} | |
| {%- endfor %} | |
| {% if add_generation_prompt %} | |
| {{'### Response:'}} | |
| {% endif %} |