Instructions to use abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF 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 abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF 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 abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf abenzerps/K2-Horizon-MoVA-36B-A4B-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 abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf abenzerps/K2-Horizon-MoVA-36B-A4B-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 abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
- Ollama
How to use abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF with Ollama:
ollama run hf.co/abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF with Docker Model Runner:
docker model run hf.co/abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
- Lemonade
How to use abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.K2-Horizon-MoVA-36B-A4B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf abenzerps/K2-Horizon-MoVA-36B-A4B-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 abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "abenzerps/K2-Horizon-MoVA-36B-A4B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
no llama.cpp
There is currently no llama.cpp that supports this model and no fork in repo.
Thanks for pointing this out. You are correct that standard upstream llama.cpp does not currently include K2-Horizon support. These GGUF files were built and tested with the publicly available MBZUAI-IFM llama.cpp fork, using its K2Horizon branch. The fork is separate from this model repository, which contains the GGUF artifacts and metadata only. As a result, an unmodified upstream llama.cpp build will not load these files at this time. I will update this note when upstream support becomes available.
I cloned that fork and branch (commit 35999d101cf2233fc54f09c3c8d599da7303ce02), but I get an error when trying to load the q4_k_m. Here is what I use to build:
cmake -B build -DGGML_CUDA=ON
cmake --build ./build --config Release -j --target llama-cli llama-mtmd-cli llama-server llama-gguf-split
Here is what I get for an error. Any ideas? Thanks!
0.01.628.951 I srv load_model: loading model 'D:\nn\models\llm\abenzerps\K2-Horizon-MoVA-36B-A4B-GGUF\K2-Horizon-MoVA-36B-A4B-Q4_K_M.gguf'
Failed to process regex: '(?:'[sS]|'[tT]|'[rR][eE]|'[vV][eE]|'[mM]|'[lL][lL]|'[dD])|[^\r\n\p{L}\p{N}]?(?:\p{L}|\p{M}|\u200C|\u200D)+|\p{N}{1,3}| ?[^\s\p{L}\p{N}]+[\r\n]|\s[\r\n]+|\s+(?!\S)|\s+'
Regex error: regex_error(error_escape): The expression contained an invalid escaped character, or a trailing escape.
0.02.541.994 E llama_model_load: error loading model: error loading model vocabulary: Failed to process regex
0.02.542.005 E llama_model_load_from_file_impl: failed to load model
0.02.542.056 E common_fit_params: encountered an error while trying to fit params to free device memory: failed to load model
Failed to process regex: '(?:'[sS]|'[tT]|'[rR][eE]|'[vV][eE]|'[mM]|'[lL][lL]|'[dD])|[^\r\n\p{L}\p{N}]?(?:\p{L}|\p{M}|\u200C|\u200D)+|\p{N}{1,3}| ?[^\s\p{L}\p{N}]+[\r\n]|\s[\r\n]+|\s+(?!\S)|\s+'
Regex error: regex_error(error_escape): The expression contained an invalid escaped character, or a trailing escape.
0.03.070.782 E llama_model_load: error loading model: error loading model vocabulary: Failed to process regex
0.03.070.794 E llama_model_load_from_file_impl: failed to load model
0.03.070.797 E cmn common_init_: failed to load model 'D:\nn\models\llm\abenzerps\K2-Horizon-MoVA-36B-A4B-GGUF\K2-Horizon-MoVA-36B-A4B-Q4_K_M.gguf'
0.03.070.799 E srv load_model: failed to load model, 'D:\nn\models\llm\abenzerps\K2-Horizon-MoVA-36B-A4B-GGUF\K2-Horizon-MoVA-36B-A4B-Q4_K_M.gguf'
0.03.070.814 I srv operator (): operator (): cleaning up before exit...
0.03.072.842 E
I cloned that fork and branch (commit 35999d101cf2233fc54f09c3c8d599da7303ce02), but I get an error when trying to load the q4_k_m. Here is what I use to build:
cmake -B build -DGGML_CUDA=ON
cmake --build ./build --config Release -j --target llama-cli llama-mtmd-cli llama-server llama-gguf-splitHere is what I get for an error. Any ideas? Thanks!
0.01.628.951 I srv load_model: loading model 'D:\nn\models\llm\abenzerps\K2-Horizon-MoVA-36B-A4B-GGUF\K2-Horizon-MoVA-36B-A4B-Q4_K_M.gguf'
Failed to process regex: '(?:'[sS]|'[tT]|'[rR][eE]|'[vV][eE]|'[mM]|'[lL][lL]|'[dD])|[^\r\n\p{L}\p{N}]?(?:\p{L}|\p{M}|\u200C|\u200D)+|\p{N}{1,3}| ?[^\s\p{L}\p{N}]+[\r\n]|\s[\r\n]+|\s+(?!\S)|\s+'
Regex error: regex_error(error_escape): The expression contained an invalid escaped character, or a trailing escape.
0.02.541.994 E llama_model_load: error loading model: error loading model vocabulary: Failed to process regex
0.02.542.005 E llama_model_load_from_file_impl: failed to load model
0.02.542.056 E common_fit_params: encountered an error while trying to fit params to free device memory: failed to load model
Failed to process regex: '(?:'[sS]|'[tT]|'[rR][eE]|'[vV][eE]|'[mM]|'[lL][lL]|'[dD])|[^\r\n\p{L}\p{N}]?(?:\p{L}|\p{M}|\u200C|\u200D)+|\p{N}{1,3}| ?[^\s\p{L}\p{N}]+[\r\n]|\s[\r\n]+|\s+(?!\S)|\s+'
Regex error: regex_error(error_escape): The expression contained an invalid escaped character, or a trailing escape.
0.03.070.782 E llama_model_load: error loading model: error loading model vocabulary: Failed to process regex
0.03.070.794 E llama_model_load_from_file_impl: failed to load model
0.03.070.797 E cmn common_init_: failed to load model 'D:\nn\models\llm\abenzerps\K2-Horizon-MoVA-36B-A4B-GGUF\K2-Horizon-MoVA-36B-A4B-Q4_K_M.gguf'
0.03.070.799 E srv load_model: failed to load model, 'D:\nn\models\llm\abenzerps\K2-Horizon-MoVA-36B-A4B-GGUF\K2-Horizon-MoVA-36B-A4B-Q4_K_M.gguf'
0.03.070.814 I srv operator (): operator (): cleaning up before exit...
0.03.072.842 E
Your build command is fine, and the GGUF file is not the problem.
The error happens while loading the tokenizer, before the model weights are loaded. On native Windows, this fork falls back to the system regex parser, which cannot process the model’s Unicode tokenizer pattern.
For now, the reliable workaround is to build and run the same fork under WSL2 with CUDA enabled:
git clone --branch model/K2Horizon https://github.com/MBZUAI-IFM/llama.cpp
cd llama.cpp
git checkout 35999d101cf2233fc54f09c3c8d599da7303ce02
cmake -B build -DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build -j --target llama-cli llama-server
Then load the existing GGUF through its WSL path, such as /mnt/d/.... I tested this exact commit and Q4_K_M GGUF successfully on Linux/GCC.
A proper native Windows fix requires an update to the fork’s K2-Horizon tokenizer support.
and no fork in repo
ahem
https://github.com/MBZUAI-IFM/llama.cpp/tree/model/K2Horizon
official gglm repo I mean and I must admin that it is well hidden, I have then reviewed original model card and discussion and didn't find info about it...