LLM inference server for the Luna Protocol ecosystem.
Wraps llama.cpp (llama-server) to serve GGUF models via an OpenAI-compatible HTTP API.
- llama-server (C++) -- model inference engine
- PM2 -- process management & auto-restart
Start a small (fast) or large (deep) instance:
npm install
./start.sh small # Luna 1.5B on :3124 (GENERIC)
./start.sh large # Hermes-8B on :3125 (SEMANTIC)Both can run simultaneously.
Environment variables (prefixed KRYSTAL_* or legacy LLM_*):
| Variable | Small default | Large default | Description |
|---|---|---|---|
KRYSTAL_MODEL_PATH |
Luna-Protocol-1.5B...gguf | Discord-Hermes-3-3B.Q8_0.gguf | Path to GGUF model |
KRYSTAL_PORT |
3124 |
3125 |
Server port |
KRYSTAL_CPU_AFFINITY |
0 |
0,1 |
CPU core affinity |
KRYSTAL_N_THREADS |
auto |
auto |
Thread count |
KRYSTAL_N_CTX |
8192 |
8192 |
Context size |
KRYSTAL_N_SLOTS |
1 |
1 |
Slot count |
Download a GGUF model:
npm run download-model- sapphire -- LLM gateway (classification + routing)
- pixieglow -- Matrix bot
- jade -- Discord bot
- protocol-luna -- Documentation & state-machine diagrams