Text Generation
GGUF
sixpert_moe
conversational
reasoning
uncensored
multimodal
vision
function-calling
agentic
long-context
1m-context
cybersecurity
biomedical
trading
finance
coding
open-source
Instructions to use SixpertAI/SixpertK2 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 SixpertAI/SixpertK2 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 SixpertAI/SixpertK2:Q4_K_M # Run inference directly in the terminal: llama cli -hf SixpertAI/SixpertK2:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SixpertAI/SixpertK2:Q4_K_M # Run inference directly in the terminal: llama cli -hf SixpertAI/SixpertK2: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 SixpertAI/SixpertK2:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf SixpertAI/SixpertK2: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 SixpertAI/SixpertK2:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SixpertAI/SixpertK2:Q4_K_M
Use Docker
docker model run hf.co/SixpertAI/SixpertK2:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use SixpertAI/SixpertK2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SixpertAI/SixpertK2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SixpertAI/SixpertK2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SixpertAI/SixpertK2:Q4_K_M
- Ollama
How to use SixpertAI/SixpertK2 with Ollama:
ollama run hf.co/SixpertAI/SixpertK2:Q4_K_M
- Unsloth Studio
How to use SixpertAI/SixpertK2 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 SixpertAI/SixpertK2 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 SixpertAI/SixpertK2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SixpertAI/SixpertK2 to start chatting
- Pi
How to use SixpertAI/SixpertK2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SixpertAI/SixpertK2: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": "SixpertAI/SixpertK2:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use SixpertAI/SixpertK2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SixpertAI/SixpertK2: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 SixpertAI/SixpertK2:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use SixpertAI/SixpertK2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SixpertAI/SixpertK2: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 "SixpertAI/SixpertK2: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"
- Docker Model Runner
How to use SixpertAI/SixpertK2 with Docker Model Runner:
docker model run hf.co/SixpertAI/SixpertK2:Q4_K_M
- Lemonade
How to use SixpertAI/SixpertK2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SixpertAI/SixpertK2:Q4_K_M
Run and chat with the model
lemonade run user.SixpertK2-Q4_K_M
List all available models
lemonade list
| # Sixpert K2 Architecture | |
| ## Overview | |
| Sixpert K2 is a Deep Reasoning Engine built on a Mixture-of-Experts (MoE) transformer architecture. It achieves the parameter count and knowledge capacity of a much larger model while maintaining inference speeds comparable to a ~1.2B dense model by activating only a fraction of its parameters per token. | |
| ## Model Specifications | |
| | Parameter | Value | | |
| |---|---| | |
| | Total Parameters | ~8.9B | | |
| | Active Parameters (per token) | ~1.2B | | |
| | Architecture | MoE Transformer | | |
| | Total Experts | 16 | | |
| | Experts per Token | 2 | | |
| | Hidden Size | 3584 | | |
| | Attention Heads | 28 | | |
| | KV Heads | 4 | | |
| | Layers | 28 | | |
| | Intermediate Size | 14336 | | |
| | Context Length | 131,072 tokens | | |
| | Vocabulary | 151,936 tokens | | |
| | Activation | SiLU (SwiGLU) | | |
| | Normalization | RMSNorm | | |
| | RoPE Base | 1,000,000 | | |
| | Attention Bias | No | | |
| | Tie Embeddings | No | | |
| ## Mixture-of-Experts Design | |
| ### Expert Architecture | |
| Each of the 28 transformer layers contains 16 parallel feed-forward experts. During inference: | |
| 1. A **routing network** (learned linear layer) evaluates the input | |
| 2. The top-2 experts are selected based on routing scores | |
| 3. Only the selected experts process the token | |
| 4. Their outputs are combined using softmax-weighted averaging | |
| ### Efficiency Advantage | |
| | Metric | Dense 8B Model | Sixpert K2 (MoE) | Improvement | | |
| |---|---|---|---| | |
| | Parameters | 8B | 8.9B total | +11% capacity | | |
| | Active per token | 8B | ~1.2B | 6.7x fewer | | |
| | Inference speed | 1.0x | ~4-6x faster | Significant | | |
| | Memory (inference) | 16GB (FP16) | ~5GB (Q4_K_M) | 3.2x less | | |
| | VRAM (GPU) | 16GB+ | 6-8GB | Practical on consumer GPUs | | |
| ### Expert Specialization | |
| The 16 experts in each layer develop specialization during training: | |
| | Expert Group | Specialization | | |
| |---|---| | |
| | Experts 1-4 | Mathematical reasoning and computation | | |
| | Experts 5-8 | Code generation and programming | | |
| | Experts 9-12 | Natural language understanding | | |
| | Experts 13-16 | Multimodal and visual reasoning | | |
| This specialization enables K2 to handle diverse tasks without performance degradation across domains. | |
| ## Grouped Query Attention (GQA) | |
| K2 employs GQA with 28 query heads and 4 key-value heads, providing: | |
| - Efficient long-context processing (131K tokens) | |
| - Reduced KV cache memory footprint | |
| - Fast attention computation even at maximum context length | |
| ## Rotary Position Embeddings | |
| RoPE with base frequency of 1,000,000 enables fine-grained positional discrimination across the full 131K context window. | |
| ## Quantization | |
| The released model uses Q4_K_M quantization via GGUF format: | |
| | Aspect | Detail | | |
| |---|---| | |
| | Format | GGUF | | |
| | Method | Q4_K_M | | |
| | Block Size | 256 | | |
| | Weight Bits | 4 | | |
| | Per-tensor Scale | Yes | | |
| | Per-block Scale | Yes | | |
| ## Training Approach | |
| K2 was trained with a multi-stage pipeline: | |
| 1. **Dense Pre-training**: Base model trained on large-scale diverse corpus | |
| 2. **MoE Expansion**: Upcycling to MoE architecture with expert initialization | |
| 3. **Expert Training**: Specialized training with routing optimization | |
| 4. **SFT**: Supervised fine-tuning on high-quality instruction data | |
| 5. **RLHF/RLAIF**: Preference optimization for alignment | |
| 6. **Agentic Training**: Extended training on tool use and multi-step tasks | |
| ## Hardware Requirements | |
| | Use Case | Minimum | Recommended | | |
| |---|---|---| | |
| | Inference (CPU) | 8GB RAM, 8 threads | 16GB RAM, 16 threads | | |
| | Inference (GPU) | 6GB VRAM (full offload) | 8GB VRAM (full offload) | | |
| | Fine-tuning (LoRA) | 24GB VRAM | 48GB+ VRAM | | |
| | Fine-tuning (full MoE) | 80GB VRAM | 2x A100 80GB | | |
| ## Comparison to Dense Models | |
| Sixpert K2 achieves performance comparable to dense models 4-7x its active parameter count: | |
| | Task | K2 (1.2B active) | Dense Equivalent | | |
| |---|---|---| | |
| | Reasoning | ~7B dense | 4-5x fewer active params | | |
| | Code | ~6B dense | 5x fewer active params | | |
| | Knowledge | ~8B dense | 7x fewer active params | | |
| | Math | ~6B dense | 5x fewer active params | | |