GGUF
magistral
mistral
finetune
roleplay
chat
wings-of-fire
reasoning
thinking
nsfw
Not-For-All-Audiences
conversational
Instructions to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF", filename="Magistral-2509-36B-Animus-V12.1-Redux-IQ4_NL.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with Ollama:
ollama run hf.co/Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
- Unsloth Studio
How to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF to start chatting
- Pi
How to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with Docker Model Runner:
docker model run hf.co/Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
- Lemonade
How to use Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Darkhn-Quants-2/Magistral-2509-36B-Animus-V12.1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Magistral-2509-36B-Animus-V12.1-GGUF-Q4_K_M
List all available models
lemonade list
| {#- Copyright 2025-present the Unsloth team. All rights reserved. #} | |
| {#- Licensed under the Apache License, Version 2.0 (the "License") #} | |
| {#- Edits made by Unsloth #} | |
| {%- set default_system_message = 'First draft your thinking process (inner monologue) until you arrive at a response. Format your response using Markdown, and use LaTeX for any mathematical equations. Write both your thoughts and the response in the same language as the input.\n\nYour thinking process must follow the template below:[THINK]Your thoughts or/and draft, like working through an exercise on scratch paper. Be as casual and as long as you want until you are confident to generate the response. Use the same language as the input.[/THINK]Here, provide a self-contained response.' %} | |
| {{- bos_token }} | |
| {#- Extract system message if present -#} | |
| {%- if messages[0]['role'] == 'system' %} | |
| {%- if messages[0]['content'] is string %} | |
| {%- set raw_system_message = messages[0]['content'] %} | |
| {%- else %} | |
| {%- set raw_system_message = messages[0]['content'][0]['text'] %} | |
| {%- endif %} | |
| {%- set loop_messages = messages[1:] %} | |
| {%- else %} | |
| {%- set raw_system_message = "" %} | |
| {%- set loop_messages = messages %} | |
| {%- endif %} | |
| {#- Detect THINK flag by searching for exact phrase "/think" -#} | |
| {%- if "/think" in raw_system_message %} | |
| {%- set THINK = True %} | |
| {%- else %} | |
| {%- set THINK = False %} | |
| {%- endif %} | |
| {#- Apply logic depending on THINK flag -#} | |
| {%- if THINK %} | |
| {%- if raw_system_message|length > 0 %} | |
| {%- set system_message = default_system_message + "\n\n" + raw_system_message %} | |
| {%- else %} | |
| {%- set system_message = default_system_message %} | |
| {%- endif %} | |
| {{- '[SYSTEM_PROMPT]' + system_message + '[/SYSTEM_PROMPT]' }} | |
| {%- else %} | |
| {%- if raw_system_message|length > 0 %} | |
| {{- '[SYSTEM_PROMPT]' + raw_system_message + '[/SYSTEM_PROMPT]' }} | |
| {%- endif %} | |
| {%- endif %} | |
| {#- Tool description appended ONLY to last user message. Edits made by Unsloth #} | |
| {%- set tools_description = "" %} | |
| {%- set has_tools = false %} | |
| {%- if tools is defined and tools is not none and tools|length > 0 %} | |
| {%- set has_tools = true %} | |
| {%- set tools_description = "[AVAILABLE_TOOLS]" + (tools | tojson) + "[/AVAILABLE_TOOLS]" %} | |
| {{- tools_description }} | |
| {%- endif %} | |
| {%- for message in loop_messages %} | |
| {%- if message['role'] == 'user' %} | |
| {%- if message['content'] is string %} | |
| {{- '[INST]' + message['content'] + '[/INST]' }} | |
| {%- else %} | |
| {{- '[INST]' }} | |
| {%- for block in message['content'] %} | |
| {%- if block['type'] == 'text' %} | |
| {%- if block['text'] is defined %} | |
| {{- block['text'] }} | |
| {%- else %} | |
| {{- block['content'] }} | |
| {%- endif %} | |
| {%- elif block['type'] in ['image', 'image_url'] %} | |
| {{- '[IMG]' }} | |
| {%- else %} | |
| {{- raise_exception('Only text and image blocks are supported in message content!') }} | |
| {%- endif %} | |
| {%- endfor %} | |
| {{- '[/INST]' }} | |
| {%- endif %} | |
| {%- elif message['role'] == 'system' %} | |
| {%- if message['content'] is string %} | |
| {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }} | |
| {%- else %} | |
| {{- '[SYSTEM_PROMPT]' + message['content'][0]['text'] + '[/SYSTEM_PROMPT]' }} | |
| {%- endif %} | |
| {%- elif message['role'] == 'assistant' %} | |
| {%- if message['content'] is string %} | |
| {{- message['content'] }} | |
| {%- elif message['content'] is iterable %} | |
| {{- message['content'][0]['text'] }} | |
| {%- endif %} | |
| {%- if message['tool_calls'] is defined and message['tool_calls'] is not none %} | |
| {%- for tool in message['tool_calls'] %} | |
| {%- set arguments = tool['function']['arguments'] %} | |
| {%- if arguments is not string %} | |
| {%- set arguments = arguments|tojson %} | |
| {%- endif %} | |
| {{- "[TOOL_CALLS]" + tool['function']['name'] + "[ARGS]" + arguments }} | |
| {%- endfor %} | |
| {%- endif %} | |
| {{- eos_token }} | |
| {%- elif message["role"] == "tool_results" or message["role"] == "tool" %} | |
| {%- if message.content is defined and message.content.content is defined %} | |
| {%- set content = message.content.content %} | |
| {%- else %} | |
| {%- set content = message.content %} | |
| {%- endif %} | |
| {{- "[TOOL_RESULTS]" + content|string + "[/TOOL_RESULTS]" }} | |
| {%- else %} | |
| {{- raise_exception('Only user, system, assistant and tool roles are supported') }} | |
| {%- endif %} | |
| {%- endfor %} | |
| {#- Licensed under the Apache License, Version 2.0 (the "License") #} |