Text Generation
GGUF
apex
custom-quantization
unsloth-studio
Mixture of Experts
coding
agentic
code
llama.cpp
qwen35moe
quantized
quantization
imatrix
conversational
Instructions to use IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-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 IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-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 IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF # Run inference directly in the terminal: llama cli -hf IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF # Run inference directly in the terminal: llama cli -hf IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
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 IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF # Run inference directly in the terminal: ./build/bin/llama cli -hf IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
Use Docker
docker model run hf.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
- Llama new
- LM Studio
- Jan
- vLLM
How to use IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-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": "IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
- Ollama
How to use IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF with Ollama:
ollama run hf.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
- Unsloth Desktop
- Pi
How to use IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
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": "IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF with Docker Model Runner:
docker model run hf.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
- Lemonade
How to use IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
Run and chat with the model
lemonade run user.KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-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 IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
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 IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF
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 "IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2-GGUF" \ --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"
docs: add warning clarifying APEX-I-MiniPlus (all versions) vs generic community APEX-I-Mini
Browse files
README.md
CHANGED
|
@@ -48,6 +48,12 @@ quantized_by: IsValorum
|
|
| 48 |
> π To explore or download the **V2.1** edition of KAT-Coder-V2.5-Dev optimized for system RAM streaming, visit:
|
| 49 |
> **[IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF](https://huggingface.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF)**
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
---
|
| 52 |
|
| 53 |
## <a id="quick-navigation"></a>β‘ Quick Navigation Index
|
|
@@ -146,57 +152,3 @@ When running with full GPU offload (`-ngl 99`), KAT-Coder's fine-grained MoE arc
|
|
| 146 |
| **NVIDIA RTX 4080 / 5070 (16GB)** | Partial offload (approx. 30 layers) | **35 β 45+ tok/s** | **800 β 1,200+ tok/s** | High-efficiency local coding assistant |
|
| 147 |
| **Consumer Laptop (4GB GPU + 32GB RAM)**| Hybrid Offload | **20 β 24+ tok/s** | **300 β 450+ tok/s** | Smooth streaming from system DDR4/DDR5 RAM |
|
| 148 |
|
| 149 |
-
> [!NOTE]
|
| 150 |
-
> ### π¬ Empirical Testbed Architecture & Desktop/Server Scaling
|
| 151 |
-
> - **Empirical Benchmark Hardware:** The hybrid offload and system RAM streaming figures documented above were measured on a consumer laptop powered by an **Intel 12th Gen Alder Lake architecture featuring a hybrid design of Performance Cores (P-Cores) and Efficient Cores (E-Cores)** paired with dual-channel system RAM and constrained laptop power/thermal envelopes.
|
| 152 |
-
> - **Thread Scheduling & E-Core Contention:** In hybrid architectures like Alder Lake, OS thread scheduling across background E-Cores and lower single-core mobile power limits introduce memory bandwidth and thread synchronization overhead during CPU dequantization.
|
| 153 |
-
> - **Dramatic Scaling on Higher-End Processors:** When running on desktop or server processors (such as modern AMD Ryzen 7000 / 9000 Zen 4/5 series or high-TDP Intel desktop platforms with dedicated performance cores, large L3 caches, and high-bandwidth dual- or quad-channel DDR5 running at 6000+ MT/s), **streaming generation speeds and prefill throughput will scale dramatically higher**, substantially exceeding these measured mobile numbers.
|
| 154 |
-
|
| 155 |
-
---
|
| 156 |
-
|
| 157 |
-
<a id="speed-vs-precision"></a>
|
| 158 |
-
## βοΈ The Speed vs. Precision Trade-off
|
| 159 |
-
|
| 160 |
-
Why does KAT-Coder settle at 20β24 tok/s on DDR4 laptops while crude flat MoE quants reach 23β26 tok/s?
|
| 161 |
-
- **The Dequantization Cost:** Non-linear `IQ` codebooks require table lookups during CPU dequantization, compared to single-cycle AVX2 instructions used by linear `Q_K` blocks.
|
| 162 |
-
- **Why It Is Essential for KAT-Coder:** In a 256 micro-expert model, linear blocks cause router drift and degrade narrow experts. By trading approx. 2 tok/s on CPU memory, KAT-Coder retains **flawless syntax, intact indentation logic, and zero code hallucination**.
|
| 163 |
-
|
| 164 |
-
---
|
| 165 |
-
|
| 166 |
-
<a id="tensor-map"></a>
|
| 167 |
-
## π οΈ Surgical Tensor Quantization Map
|
| 168 |
-
|
| 169 |
-
| Tensor Pattern | Layer Scope | Quant Type | BPW | Engineering Rationale |
|
| 170 |
-
| :--- | :--- | :--- | :--- | :--- |
|
| 171 |
-
| **`output.weight`** | Vocabulary Head | **`Q6_K`** | 6.56 | Uncompromised 6-bit precision across 248k tokens for exact syntax & operators |
|
| 172 |
-
| **`token_embd.weight`** | Embedding | **`High-Prec`** | High | Preserves semantic token embeddings without imatrix distortion |
|
| 173 |
-
| **`ffn_gate_inp.weight`** | Expert Routers | **`F32`** | 32.0 | Uncompressed full-precision routers preventing micro-expert misrouting |
|
| 174 |
-
| **`attn_gate.weight`** | Attention Gates | **`Q8_0`** | 8.50 | High-precision 8-bit gating for attention routing dynamics |
|
| 175 |
-
| **`ffn_*_shexp`** | Shared Experts | **`IQ4_NL`** | 4.50 | 4-bit non-linear codebook for the 100% active shared foundational expert |
|
| 176 |
-
| **`ffn_down/up/gate`** | Edges (0β9, 30β39) | **`IQ3_S`** | 3.44 | Armored boundary layers protecting prompt ingest and final code generation |
|
| 177 |
-
| **`ffn_down/up/gate`** | Core (10β29) | **`IQ3_XXS`** | 3.06 | Deep compression (272 MiB β 98 MiB per block) calibrated via code imatrix |
|
| 178 |
-
| **`attn_qkv`, `attn_output`** | Attention Projections| **`IQ3_S` / `Q6_K`** | Multi | High-fidelity attention heads preventing contextual cross-talk |
|
| 179 |
-
| **Norms & Biases** | All Layers | **`F32`** | 32.0 | Absolute numerical stability across deep 40-layer computation |
|
| 180 |
-
|
| 181 |
-
---
|
| 182 |
-
|
| 183 |
-
<a id="recommended-setup"></a>
|
| 184 |
-
## π Recommended Configuration & Setup
|
| 185 |
-
|
| 186 |
-
### Unsloth Studio:
|
| 187 |
-
1. Load **`KAT-Coder-V2.5-Dev.APEX-I-MiniPlus-V2.gguf`**.
|
| 188 |
-
2. Configure KV Cache Dtype to **`q8_0`** and Context Checkpoints to **`1`**.
|
| 189 |
-
3. Set GPU Offload to **100%** (`-ngl 99`) on 24GB GPUs, or allocate 30β34 layers on 16GB GPUs.
|
| 190 |
-
4. Expand context up to **128k β 256k** for full repository inspection.
|
| 191 |
-
|
| 192 |
-
### llama.cpp CLI:
|
| 193 |
-
```bash
|
| 194 |
-
llama-cli -m KAT-Coder-V2.5-Dev.APEX-I-MiniPlus-V2.gguf \
|
| 195 |
-
-ngl 99 \
|
| 196 |
-
-c 32768
|
| 197 |
-
```
|
| 198 |
-
|
| 199 |
-
### LM Studio / Ollama:
|
| 200 |
-
1. Import the `.gguf` file into your local library.
|
| 201 |
-
2. Maximize GPU acceleration to offload all layers.
|
| 202 |
-
3. Configure template with Qwen 2.5 / 3.5 chat format.
|
|
|
|
| 48 |
> π To explore or download the **V2.1** edition of KAT-Coder-V2.5-Dev optimized for system RAM streaming, visit:
|
| 49 |
> **[IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF](https://huggingface.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF)**
|
| 50 |
|
| 51 |
+
> [!WARNING]
|
| 52 |
+
> ### β οΈ DO NOT CONFUSE APEX-I-MINIPLUS WITH GENERIC COMMUNITY APEX-I-MINI!
|
| 53 |
+
> **Regardless of release version (whether V1, V2, or V2.1), NEVER confuse handcrafted APEX-I-MiniPlus builds with generic community APEX-I-Mini releases:**
|
| 54 |
+
> - **Generic Community APEX-I-Mini:** Uniformly compresses all core MoE experts down to aggressive 2-bit `IQ2_S` (dropping below the critical quality floor), leaves the sensitive token output head unarmored at 3-bit `Q3_K_M`, and compresses attention projections down to `Q3_K`. In deep reasoning models, this triggers severe perplexity spikes, syntax errors, and broken code brackets.
|
| 55 |
+
> - **Handcrafted APEX-I-MiniPlus (All Editions by IsValorum):** Every single MiniPlus releaseβfrom V1 and V2 to V2.1βis a custom tensor-by-tensor architecture that preserves uncompressed `F32` router gates, armors the token output head in high-precision `Q6_K`, safeguards attention gates in `Q8_0`, and keeps core reasoning experts at or above calibrated 3-bit (`IQ3_XXS`/`IQ3_S`). Even our earlier builds vastly outperform generic community APEX recipes and flat 3-bit quants.
|
| 56 |
+
|
| 57 |
---
|
| 58 |
|
| 59 |
## <a id="quick-navigation"></a>β‘ Quick Navigation Index
|
|
|
|
| 152 |
| **NVIDIA RTX 4080 / 5070 (16GB)** | Partial offload (approx. 30 layers) | **35 β 45+ tok/s** | **800 β 1,200+ tok/s** | High-efficiency local coding assistant |
|
| 153 |
| **Consumer Laptop (4GB GPU + 32GB RAM)**| Hybrid Offload | **20 β 24+ tok/s** | **300 β 450+ tok/s** | Smooth streaming from system DDR4/DDR5 RAM |
|
| 154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|