Text Generation
GGUF
English
Turkish
caphlon
caphlon-2
qwen3.8
qwen3_5
bonsai
ternary
ptq1_sb
hadamard
llama.cpp
ollama
lightweight-llm
27b
gpqa
iti
conversational
Instructions to use ssuasd/Caphlon-2 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 ssuasd/Caphlon-2 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 ssuasd/Caphlon-2 # Run inference directly in the terminal: llama cli -hf ssuasd/Caphlon-2
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ssuasd/Caphlon-2 # Run inference directly in the terminal: llama cli -hf ssuasd/Caphlon-2
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 ssuasd/Caphlon-2 # Run inference directly in the terminal: ./build/bin/llama cli -hf ssuasd/Caphlon-2
Use Docker
docker model run hf.co/ssuasd/Caphlon-2
- Llama new
- LM Studio
- Jan
- vLLM
How to use ssuasd/Caphlon-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ssuasd/Caphlon-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ssuasd/Caphlon-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ssuasd/Caphlon-2
- Ollama
How to use ssuasd/Caphlon-2 with Ollama:
ollama run hf.co/ssuasd/Caphlon-2
- Unsloth Desktop
- Pi
How to use ssuasd/Caphlon-2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ssuasd/Caphlon-2
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ssuasd/Caphlon-2" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ssuasd/Caphlon-2 with Docker Model Runner:
docker model run hf.co/ssuasd/Caphlon-2
- Lemonade
How to use ssuasd/Caphlon-2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ssuasd/Caphlon-2
Run and chat with the model
lemonade run user.Caphlon-2-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use ssuasd/Caphlon-2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ssuasd/Caphlon-2
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:9931/v1 hermes config set model.default ssuasd/Caphlon-2
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ssuasd/Caphlon-2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ssuasd/Caphlon-2
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:9931/v1 \ --custom-model-id "ssuasd/Caphlon-2" \ --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"
File size: 1,994 Bytes
4d74021 0960aa1 4d74021 0960aa1 4d74021 0960aa1 4d74021 0960aa1 4d74021 0960aa1 4d74021 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #!/usr/bin/env bash
# Caphlon-2 (4.52 GiB PTQ1_SB) — Zero-miss Context OS & Flash-Attention llama-server launcher
#
# Usage: ./scripts/run.sh /path/to/Caphlon-2-27B-PTQ1_SB.gguf [context] [slots]
# Requires: PrismML llama.cpp built with patches/prismll_ptq1_sb_cuda_metal.patch
# (run `bash scripts/build-prism-llamacpp.sh` first).
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
MODEL="${1:?usage: run.sh <Caphlon-2-27B-PTQ1_SB.gguf> [ctx] [slots]}"
CTX="${2:-32768}"
SLOTS="${3:-1}"
PORT="${PORT:-8080}"
SERVER_BIN="${LLAMA_SERVER:-$REPO_ROOT/build-prism/llbuild/bin/llama-server}"
if ! command -v "$SERVER_BIN" >/dev/null 2>&1 && [[ ! -x "$SERVER_BIN" ]]; then
SERVER_BIN="llama-server"
fi
if [[ ! -f "$MODEL" ]]; then
echo "model not found: $MODEL" >&2
exit 1
fi
# q8_0 KV cache is verified lossless on Caphlon-2 (EN PPL 7.8585 vs f16 7.8556; TR PPL 6.8789 vs 6.8824)
KV_TYPE="${KV_TYPE:-q8_0}"
# Optional anti-hesitation logit-bias from metadata/Caphlon-2-27B-PTQ1_SB.meta.json
LB_FLAGS=()
META_JSON="$REPO_ROOT/metadata/Caphlon-2-27B-PTQ1_SB.meta.json"
if [[ "${ANTI_HESITATION:-1}" == "1" ]] && [[ -f "$META_JSON" ]] && command -v python3 >/dev/null 2>&1; then
LB_STR="$(python3 -c '
import json, sys
with open(sys.argv[1], encoding="utf-8") as fh:
d = json.load(fh)
pairs = []
for e in d.get("tereddut_bias", []):
b = float(e["bias"])
pairs.append(str(e["yeni_id"]) + (f"+{b:g}" if b >= 0 else f"{b:g}"))
print(",".join(pairs))
' "$META_JSON")"
if [[ -n "$LB_STR" ]]; then
for pair in ${LB_STR//,/ }; do
LB_FLAGS+=(--logit-bias "$pair")
done
fi
fi
exec "$SERVER_BIN" \
-m "$MODEL" \
-ngl "${NGL:-99}" \
-c "$CTX" \
-np "$SLOTS" \
-b 2048 -ub 512 \
-fa on \
-ctk "$KV_TYPE" -ctv "$KV_TYPE" \
--cache-ram 0 \
--ctx-checkpoints 32 \
-cms 128 \
--no-context-shift \
--jinja \
--reasoning-format deepseek \
"${LB_FLAGS[@]}" \
--host "${HOST:-127.0.0.1}" \
--port "$PORT"
|