Instructions to use Myric/KAT-Coder-V2.5-Dev-MTP-head 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 Myric/KAT-Coder-V2.5-Dev-MTP-head 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 Myric/KAT-Coder-V2.5-Dev-MTP-head # Run inference directly in the terminal: llama cli -hf Myric/KAT-Coder-V2.5-Dev-MTP-head
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Myric/KAT-Coder-V2.5-Dev-MTP-head # Run inference directly in the terminal: llama cli -hf Myric/KAT-Coder-V2.5-Dev-MTP-head
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 Myric/KAT-Coder-V2.5-Dev-MTP-head # Run inference directly in the terminal: ./llama-cli -hf Myric/KAT-Coder-V2.5-Dev-MTP-head
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 Myric/KAT-Coder-V2.5-Dev-MTP-head # Run inference directly in the terminal: ./build/bin/llama-cli -hf Myric/KAT-Coder-V2.5-Dev-MTP-head
Use Docker
docker model run hf.co/Myric/KAT-Coder-V2.5-Dev-MTP-head
- LM Studio
- Jan
- Ollama
How to use Myric/KAT-Coder-V2.5-Dev-MTP-head with Ollama:
ollama run hf.co/Myric/KAT-Coder-V2.5-Dev-MTP-head
- Unsloth Studio
How to use Myric/KAT-Coder-V2.5-Dev-MTP-head 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 Myric/KAT-Coder-V2.5-Dev-MTP-head 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 Myric/KAT-Coder-V2.5-Dev-MTP-head to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Myric/KAT-Coder-V2.5-Dev-MTP-head to start chatting
- Pi
How to use Myric/KAT-Coder-V2.5-Dev-MTP-head with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Myric/KAT-Coder-V2.5-Dev-MTP-head
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": "Myric/KAT-Coder-V2.5-Dev-MTP-head" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use Myric/KAT-Coder-V2.5-Dev-MTP-head with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Myric/KAT-Coder-V2.5-Dev-MTP-head
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 "Myric/KAT-Coder-V2.5-Dev-MTP-head" \ --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"
- Docker Model Runner
How to use Myric/KAT-Coder-V2.5-Dev-MTP-head with Docker Model Runner:
docker model run hf.co/Myric/KAT-Coder-V2.5-Dev-MTP-head
- Lemonade
How to use Myric/KAT-Coder-V2.5-Dev-MTP-head with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Myric/KAT-Coder-V2.5-Dev-MTP-head
Run and chat with the model
lemonade run user.KAT-Coder-V2.5-Dev-MTP-head-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use Myric/KAT-Coder-V2.5-Dev-MTP-head with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Myric/KAT-Coder-V2.5-Dev-MTP-head
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 Myric/KAT-Coder-V2.5-Dev-MTP-head
Run Hermes
hermes
- Atomic Chat
Running on a CPU
I had a user ask if these would run on a CPU and the answer surprised me kind of a lot:
$ CUDA_VISIBLE_DEVICES="" ~/llama.cpp/build/bin/llama-cli --model kat-coder-v2.5-dev/KAT-Coder-V2.5-Dev-MTP-APEX-i-quality.gguf -c 512 -ngl 0 --cpu-moe --no-mmap -fa on --spec-type draft-mtp --spec-draft-n-max 4 --reasoning off --numa distribute
0.00.015.670 E ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected
warning: no usable GPU found, --gpu-layers option will be ignored
warning: one possible reason is that llama.cpp was compiled without GPU support
warning: consult docs/build.md for compilation instructions
Loading model...
ββ ββ
ββ ββ
ββ ββ ββββ ββββββββ ββββ βββββ βββββ βββββ
ββ ββ βββββ ββ ββ ββ βββββ ββ ββ ββ ββ ββ
ββ ββ βββββ ββ ββ ββ βββββ ββ βββββ βββββ βββββ
ββ ββ
ββ ββ
build : b10068-571d0d540
model : kat-coder-v2.5-dev/KAT-Coder-V2.5-Dev-MTP-APEX-i-quality.gguf
ftype : Q4_K - Medium
modalities : text
available commands:
/exit or Ctrl+C stop or exit
/regen regenerate the last response
/clear clear the chat history
/read add a text file
/glob
How would I check the free memory in python?
Checking Free Memory in Python
There are several approaches depending on what level of memory information you need:
1. Using psutil (Most Common)
import psutil
# Total, available, used memory, and free memory
mem = psutil.virtual_memory()
print(f"Total memory: {mem.total / (1024**3):.2f} GB")
print(f"Available memory: {mem.available / (1024**3):.2f} GB")
print(f"Used memory: {mem.used / (1024**3):.2f} GB")
print(f"Free memory: {mem.free / (1024**3):.2f} GB")
print(f"Memory usage %: {mem.percent}%")
Install with: pip install psutil
2. Using resource Module (Linux/macOS Only)
import resource
# In kilobytes
mem_info = resource.getrusage(resource.RUSAGE_SELF)
print(f"Max resident set size (KB): {mem_info.ru_maxrss}")
print(f"Page faults (soft): {mem_info.ru_minflt}")
3. Reading from /proc/meminfo (Linux Only)
def get_memory_info():
with open('/proc/meminfo', 'r') as f:
lines = f.readlines()
mem_info = {}
for line in lines:
key, value = line.split(':')
mem_info[key.strip()] = int(value.strip().split()[0]) # in kB
return {
'total_mb': mem_info['MemTotal'] / 1024,
'free_mb': mem_info['MemFree'] / 1024,
'available_mb': mem_info['MemAvailable'] / 1024,
}
print(get_memory_info())
4. Checking Python-Specific Memory Usage
import sys
import tracemalloc
# Track current Python object memory allocations
tracemalloc.start()
# ... your code ...
current, peak = tracemalloc.get_tr
[ Prompt: 17.0 t/s | Generation: 11.4 t/s ]
>