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 - Complete Usage Guide
Quick Start
Option 1: Ollama (Easiest)
# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
# Create and run
ollama create sixpert-k2 -f OllamaModelfile
# Chat
ollama run sixpert-k2
Option 2: llama-cpp-python (Python)
pip install llama-cpp-python
python examples/generate.py --prompt "Explain quantum computing in depth"
Option 3: API Server
pip install llama-cpp-python
python examples/api_server.py --model SixpertK2.gguf
Option 4: LM Studio
- Download LM Studio from https://lmstudio.ai
- Import
SixpertK2.gguf - Chat with the Sixpert K2 preset
Chat Format
Sixpert K2 uses the following chat template:
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
What is quantum computing?<|im_end|>
<|im_start|>assistant
Quantum computing uses quantum mechanical phenomena...<|im_end|>
Recommended Settings
| Parameter | Value | Notes |
|---|---|---|
| temperature | 0.6 | Slightly lower for reasoning tasks |
| top_p | 0.85 | Nucleus sampling |
| top_k | 50 | Limit token selection |
| repeat_penalty | 1.08 | Prevent repetition |
| max_tokens | 16384 | Extended output for deep reasoning |
| context_size | 131072 | Full context window |
MoE-Specific Tips
When to Use K2 vs K1
| Task Type | Best Model | Reason |
|---|---|---|
| Fast responses | K1 (Dense) | Predictable latency |
| Deep reasoning | K2 (MoE) | Specialized reasoning experts |
| Long documents | K2 (MoE) | Better long-context handling |
| Code generation | Either | K2 slightly better |
| Math proofs | K2 (MoE) | Math expert specialization |
| Simple Q&A | K1 (Dense) | Faster, sufficient quality |
| Agentic tasks | K2 (MoE) | Better tool orchestration |
| Vision tasks | Either | Both support multimodal |
Long-Context Usage
K2 is optimized for long-context understanding. For documents exceeding 32K tokens:
llm = Llama(
model_path="SixpertK2.gguf",
n_ctx=131072, # Full context window
n_gpu_layers=-1,
)
# Feed entire documents
response = llm.create_chat_completion(
messages=[{
"role": "user",
"content": f"Based on the following document, answer my question:\n\n{full_document}\n\nQuestion: What are the key findings?"
}],
max_tokens=4096,
)
Function Calling
See examples/function_calling.py for a complete agentic implementation.
Vision / Multimodal
See examples/vision_example.py for image analysis examples.
Integration Examples
OpenAI-Compatible Client
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
response = client.chat.completions.create(
model="sixpert-k2",
messages=[{"role": "user", "content": "Prove that sqrt(2) is irrational"}],
temperature=0.6,
max_tokens=4096,
)
print(response.choices[0].message.content)
LangChain Integration
from langchain.llms import LlamaCpp
llm = LlamaCpp(
model_path="SixpertK2.gguf",
temperature=0.6,
n_ctx=131072,
n_gpu_layers=-1,
)
result = llm.invoke("Explain the theory of relativity in detail")
print(result)
AutoGen Integration
from autogen import AssistantAgent
assistant = AssistantAgent(
name="sixpert_k2",
llm_config={"config_list": [{"model": "sixpert-k2", "base_url": "http://localhost:8000/v1", "api_key": "not-needed"}]},
system_message="You are Sixpert K2, a deep reasoning engine.",
)
Performance Tips
- GPU Offloading: Set
n_gpu_layers=-1for full GPU offload (fits in 8GB VRAM) - Temperature: Use 0.3-0.5 for mathematical proofs, 0.6-0.7 for creative tasks
- Context Size: Start with 32768, increase to 131072 for long documents
- Batch Inference: Use the API server for batch processing
- Quantization: Q4_K_M is recommended; Q6_K for higher quality
Troubleshooting
| Issue | Solution |
|---|---|
| Slow generation | Ensure GPU offloading is enabled |
| Out of memory | Reduce context size to 32768 or 8192 |
| Repetitive output | Increase repeat_penalty to 1.1-1.15 |
| Shallow reasoning | Lower temperature to 0.3-0.5 |
| Long response needed | Set max_tokens to 8192 or 16384 |
| Context overflow | Use 4096 context for testing |