Text Generation
GGUF
sixpert
conversational
reasoning
uncensored
multimodal
vision
function-calling
agentic
long-context
trading
finance
coding
open-source
imatrix
Instructions to use SixpertAI/SixpertK1 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/SixpertK1 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/SixpertK1:Q4_K_M # Run inference directly in the terminal: llama cli -hf SixpertAI/SixpertK1: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/SixpertK1:Q4_K_M # Run inference directly in the terminal: llama cli -hf SixpertAI/SixpertK1: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/SixpertK1:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf SixpertAI/SixpertK1: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/SixpertK1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SixpertAI/SixpertK1:Q4_K_M
Use Docker
docker model run hf.co/SixpertAI/SixpertK1:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use SixpertAI/SixpertK1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SixpertAI/SixpertK1" # 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/SixpertK1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SixpertAI/SixpertK1:Q4_K_M
- Ollama
How to use SixpertAI/SixpertK1 with Ollama:
ollama run hf.co/SixpertAI/SixpertK1:Q4_K_M
- Unsloth Studio
How to use SixpertAI/SixpertK1 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/SixpertK1 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/SixpertK1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SixpertAI/SixpertK1 to start chatting
- Pi
How to use SixpertAI/SixpertK1 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SixpertAI/SixpertK1: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/SixpertK1:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use SixpertAI/SixpertK1 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/SixpertK1: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/SixpertK1:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use SixpertAI/SixpertK1 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SixpertAI/SixpertK1: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/SixpertK1: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/SixpertK1 with Docker Model Runner:
docker model run hf.co/SixpertAI/SixpertK1:Q4_K_M
- Lemonade
How to use SixpertAI/SixpertK1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SixpertAI/SixpertK1:Q4_K_M
Run and chat with the model
lemonade run user.SixpertK1-Q4_K_M
List all available models
lemonade list
Upload docs/usage_guide.md with huggingface_hub
Browse files- docs/usage_guide.md +166 -0
docs/usage_guide.md
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sixpert K1 - Complete Usage Guide
|
| 2 |
+
|
| 3 |
+
## Quick Start
|
| 4 |
+
|
| 5 |
+
### Option 1: Ollama (Easiest)
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
# Install Ollama
|
| 9 |
+
curl -fsSL https://ollama.com/install.sh | sh
|
| 10 |
+
|
| 11 |
+
# Download and import the model
|
| 12 |
+
ollama create sixpert-k1 -f OllamaModelfile
|
| 13 |
+
|
| 14 |
+
# Or if GGUF is in Ollama library:
|
| 15 |
+
# ollama run sixpert-k1
|
| 16 |
+
|
| 17 |
+
# Chat
|
| 18 |
+
ollama run sixpert-k1
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
### Option 2: llama-cpp-python (Python)
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
pip install llama-cpp-python
|
| 25 |
+
python examples/generate.py --prompt "Hello, who are you?"
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
### Option 3: API Server
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
pip install llama-cpp-python
|
| 32 |
+
python examples/api_server.py --model SixpertK1.gguf
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
### Option 4: LM Studio
|
| 36 |
+
|
| 37 |
+
1. Download LM Studio from https://lmstudio.ai
|
| 38 |
+
2. Import `SixpertK1.gguf`
|
| 39 |
+
3. Start chatting with the Sixpert K1 preset
|
| 40 |
+
|
| 41 |
+
## Chat Format
|
| 42 |
+
|
| 43 |
+
Sixpert K1 uses the following chat template:
|
| 44 |
+
|
| 45 |
+
```
|
| 46 |
+
<|im_start|>system
|
| 47 |
+
You are a helpful assistant.<|im_end|>
|
| 48 |
+
<|im_start|>user
|
| 49 |
+
What is quantum computing?<|im_end|>
|
| 50 |
+
<|im_start|>assistant
|
| 51 |
+
Quantum computing uses quantum mechanical phenomena...<|im_end|>
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## Recommended Settings
|
| 55 |
+
|
| 56 |
+
| Parameter | Value | Notes |
|
| 57 |
+
|---|---|---|
|
| 58 |
+
| temperature | 0.7 | Good balance of creativity and accuracy |
|
| 59 |
+
| top_p | 0.8 | Nucleus sampling |
|
| 60 |
+
| top_k | 40 | Limit token selection |
|
| 61 |
+
| repeat_penalty | 1.05 | Prevent repetition |
|
| 62 |
+
| max_tokens | 8192 | Max output length |
|
| 63 |
+
| context_size | 131072 | Full context window |
|
| 64 |
+
|
| 65 |
+
## Function Calling
|
| 66 |
+
|
| 67 |
+
Sixpert K1 supports native function calling. See `examples/function_calling.py` for a complete implementation.
|
| 68 |
+
|
| 69 |
+
### Tool Format
|
| 70 |
+
|
| 71 |
+
```json
|
| 72 |
+
{
|
| 73 |
+
"type": "function",
|
| 74 |
+
"function": {
|
| 75 |
+
"name": "search",
|
| 76 |
+
"description": "Search for information",
|
| 77 |
+
"parameters": {
|
| 78 |
+
"type": "object",
|
| 79 |
+
"properties": {
|
| 80 |
+
"query": {"type": "string"}
|
| 81 |
+
},
|
| 82 |
+
"required": ["query"]
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
## Vision / Multimodal
|
| 89 |
+
|
| 90 |
+
Sixpert K1 can understand images. See `examples/vision_example.py` for implementation details.
|
| 91 |
+
|
| 92 |
+
```python
|
| 93 |
+
response = llm.create_chat_completion(
|
| 94 |
+
messages=[{
|
| 95 |
+
"role": "user",
|
| 96 |
+
"content": [
|
| 97 |
+
{"type": "text", "text": "Describe this image"},
|
| 98 |
+
{"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}},
|
| 99 |
+
]
|
| 100 |
+
}]
|
| 101 |
+
)
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
## Integration Examples
|
| 105 |
+
|
| 106 |
+
### OpenAI-Compatible Client
|
| 107 |
+
|
| 108 |
+
```python
|
| 109 |
+
from openai import OpenAI
|
| 110 |
+
|
| 111 |
+
client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
|
| 112 |
+
|
| 113 |
+
response = client.chat.completions.create(
|
| 114 |
+
model="sixpert-k1",
|
| 115 |
+
messages=[{"role": "user", "content": "Explain recursion"}],
|
| 116 |
+
temperature=0.7,
|
| 117 |
+
)
|
| 118 |
+
print(response.choices[0].message.content)
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
### LangChain Integration
|
| 122 |
+
|
| 123 |
+
```python
|
| 124 |
+
from langchain.llms import LlamaCpp
|
| 125 |
+
|
| 126 |
+
llm = LlamaCpp(
|
| 127 |
+
model_path="SixpertK1.gguf",
|
| 128 |
+
temperature=0.7,
|
| 129 |
+
n_ctx=131072,
|
| 130 |
+
n_gpu_layers=-1,
|
| 131 |
+
)
|
| 132 |
+
|
| 133 |
+
result = llm.invoke("What is machine learning?")
|
| 134 |
+
print(result)
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
### CrewAI Agent
|
| 138 |
+
|
| 139 |
+
```python
|
| 140 |
+
from crewai import Agent, Task, Crew
|
| 141 |
+
|
| 142 |
+
agent = Agent(
|
| 143 |
+
role="Research Analyst",
|
| 144 |
+
backstory="You are Sixpert K1, a precision logic engine",
|
| 145 |
+
goal="Provide accurate, detailed analysis",
|
| 146 |
+
llm=LlamaCpp(model_path="SixpertK1.gguf", temperature=0.7),
|
| 147 |
+
allow_delegation=False,
|
| 148 |
+
)
|
| 149 |
+
```
|
| 150 |
+
|
| 151 |
+
## Performance Tips
|
| 152 |
+
|
| 153 |
+
1. **GPU Offloading**: Set `n_gpu_layers=-1` to offload all layers to GPU
|
| 154 |
+
2. **Context Pruning**: Use smaller context windows (8192-32768) for faster inference
|
| 155 |
+
3. **Batch Processing**: Use the API server for batch inference
|
| 156 |
+
4. **Quantization**: Q4_K_M is the sweet spot; upgrade to Q6_K if quality matters more
|
| 157 |
+
|
| 158 |
+
## Troubleshooting
|
| 159 |
+
|
| 160 |
+
| Issue | Solution |
|
| 161 |
+
|---|---|
|
| 162 |
+
| Out of memory | Reduce context size or use CPU-only inference |
|
| 163 |
+
| Slow generation | Enable GPU offloading (`n_gpu_layers=-1`) |
|
| 164 |
+
| Repetitive output | Increase `repeat_penalty` to 1.1-1.2 |
|
| 165 |
+
| Hallucinations | Lower temperature to 0.3-0.5 |
|
| 166 |
+
| Context overflow | Use 4096 context for testing, 131072 for production |
|