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"
Upload scripts/build-prism-llamacpp.sh for Caphlon-2 (4.52 GiB PTQ1_SB, 80.0% GPQA-D)
Browse files
scripts/build-prism-llamacpp.sh
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Caphlon-2 — One-command builder for PrismML llama.cpp + PTQ1_SB (type 144) CUDA/Metal/AVX2/NEON patch
|
| 3 |
+
#
|
| 4 |
+
# Usage:
|
| 5 |
+
# bash scripts/build-prism-llamacpp.sh [build_dir]
|
| 6 |
+
# Environment overrides:
|
| 7 |
+
# CUDA_ARCH=75 (set e.g. 75 for Turing T4, 80 for A100, 86/89 for RTX 30/40; auto-detected on macOS Metal)
|
| 8 |
+
set -euo pipefail
|
| 9 |
+
|
| 10 |
+
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
| 11 |
+
PATCH_FILE="$REPO_ROOT/patches/prismll_ptq1_sb_cuda_metal.patch"
|
| 12 |
+
PRISM_COMMIT="6447906bf96c1a023980d3453fb59daa6af3bb23"
|
| 13 |
+
WORK_DIR="${1:-$REPO_ROOT/build-prism}"
|
| 14 |
+
|
| 15 |
+
if [ ! -f "$PATCH_FILE" ]; then
|
| 16 |
+
echo "error: patch not found at $PATCH_FILE" >&2
|
| 17 |
+
exit 1
|
| 18 |
+
fi
|
| 19 |
+
|
| 20 |
+
mkdir -p "$WORK_DIR"
|
| 21 |
+
SRC_DIR="$WORK_DIR/llsrc"
|
| 22 |
+
BLD_DIR="$WORK_DIR/llbuild"
|
| 23 |
+
|
| 24 |
+
if [ ! -d "$SRC_DIR" ]; then
|
| 25 |
+
echo "== Downloading PrismML-Eng/llama.cpp ($PRISM_COMMIT) =="
|
| 26 |
+
mkdir -p "$SRC_DIR"
|
| 27 |
+
curl -fsSL --retry 5 --http1.1 \
|
| 28 |
+
"https://codeload.github.com/PrismML-Eng/llama.cpp/tar.gz/$PRISM_COMMIT" \
|
| 29 |
+
-o "$WORK_DIR/prism_src.tar.gz"
|
| 30 |
+
tar -xzf "$WORK_DIR/prism_src.tar.gz" -C "$SRC_DIR" --strip-components=1
|
| 31 |
+
git -C "$SRC_DIR" init -q
|
| 32 |
+
git -C "$SRC_DIR" apply "$PATCH_FILE"
|
| 33 |
+
echo "== Applied PTQ1_SB patch: $(shasum -a 256 "$PATCH_FILE" | awk '{print $1}') =="
|
| 34 |
+
fi
|
| 35 |
+
|
| 36 |
+
CMAKE_ARGS=(
|
| 37 |
+
-S "$SRC_DIR"
|
| 38 |
+
-B "$BLD_DIR"
|
| 39 |
+
-DCMAKE_BUILD_TYPE=Release
|
| 40 |
+
-DLLAMA_CURL=OFF
|
| 41 |
+
-DLLAMA_BUILD_UI=OFF
|
| 42 |
+
-DLLAMA_USE_PREBUILT_UI=OFF
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
+
OS_NAME="$(uname -s)"
|
| 46 |
+
if [ "$OS_NAME" = "Darwin" ]; then
|
| 47 |
+
echo "== Configuring for macOS (Apple Metal + ARM64 NEON / Accelerate) =="
|
| 48 |
+
CMAKE_ARGS+=(-DGGML_METAL=ON)
|
| 49 |
+
else
|
| 50 |
+
if command -v nvcc >/dev/null 2>&1 || [ -x /usr/local/cuda/bin/nvcc ]; then
|
| 51 |
+
CUDA_ARCH="${CUDA_ARCH:-75}"
|
| 52 |
+
echo "== Configuring for Linux CUDA (CMAKE_CUDA_ARCHITECTURES=$CUDA_ARCH + AVX2) =="
|
| 53 |
+
CMAKE_ARGS+=(
|
| 54 |
+
-DGGML_CUDA=ON
|
| 55 |
+
-DCMAKE_CUDA_ARCHITECTURES="$CUDA_ARCH"
|
| 56 |
+
-DGGML_AVX2=ON
|
| 57 |
+
)
|
| 58 |
+
if [ -e /usr/lib/x86_64-linux-gnu/libcuda.so.1 ] && [ ! -e /usr/lib/x86_64-linux-gnu/libcuda.so ]; then
|
| 59 |
+
sed -i 's|CUDA::cuda_driver|/usr/lib/x86_64-linux-gnu/libcuda.so.1|g' \
|
| 60 |
+
"$SRC_DIR/ggml/src/ggml-cuda/CMakeLists.txt"
|
| 61 |
+
fi
|
| 62 |
+
else
|
| 63 |
+
echo "== Configuring for CPU (AVX2) =="
|
| 64 |
+
CMAKE_ARGS+=(-DGGML_AVX2=ON)
|
| 65 |
+
fi
|
| 66 |
+
fi
|
| 67 |
+
|
| 68 |
+
cmake "${CMAKE_ARGS[@]}"
|
| 69 |
+
JOBS="$(getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)"
|
| 70 |
+
cmake --build "$BLD_DIR" --target llama-server llama-cli llama-perplexity llama-bench -j "$JOBS"
|
| 71 |
+
|
| 72 |
+
echo "== Build complete: binaries in $BLD_DIR/bin =="
|
| 73 |
+
ls -lh "$BLD_DIR/bin/llama-server" "$BLD_DIR/bin/llama-cli" "$BLD_DIR/bin/llama-bench" "$BLD_DIR/bin/llama-perplexity"
|