Instructions to use kacaforyah/Opti-27B 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 kacaforyah/Opti-27B 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 kacaforyah/Opti-27B:F16 # Run inference directly in the terminal: llama cli -hf kacaforyah/Opti-27B:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kacaforyah/Opti-27B:F16 # Run inference directly in the terminal: llama cli -hf kacaforyah/Opti-27B:F16
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 kacaforyah/Opti-27B:F16 # Run inference directly in the terminal: ./llama-cli -hf kacaforyah/Opti-27B:F16
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 kacaforyah/Opti-27B:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf kacaforyah/Opti-27B:F16
Use Docker
docker model run hf.co/kacaforyah/Opti-27B:F16
- LM Studio
- Jan
- vLLM
How to use kacaforyah/Opti-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kacaforyah/Opti-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kacaforyah/Opti-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/kacaforyah/Opti-27B:F16
- Ollama
How to use kacaforyah/Opti-27B with Ollama:
ollama run hf.co/kacaforyah/Opti-27B:F16
- Unsloth Desktop
- Pi
How to use kacaforyah/Opti-27B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kacaforyah/Opti-27B:F16
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "kacaforyah/Opti-27B:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kacaforyah/Opti-27B with Docker Model Runner:
docker model run hf.co/kacaforyah/Opti-27B:F16
- Lemonade
How to use kacaforyah/Opti-27B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kacaforyah/Opti-27B:F16
Run and chat with the model
lemonade run user.Opti-27B-F16
List all available models
lemonade list
- Hermes Agent
How to use kacaforyah/Opti-27B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kacaforyah/Opti-27B:F16
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 kacaforyah/Opti-27B:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kacaforyah/Opti-27B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kacaforyah/Opti-27B:F16
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 "kacaforyah/Opti-27B:F16" \ --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"
Been doing this a long time and It takes a lot to impress me
So keep a cheaper approximation of the machinery, then learn a compact way to repair what comes out of it.
My bet is progressive activation-residual distillation: freeze the low-bit backbone and train per-block gated, causal-convolution bottleneck correctors on the progressively corrected student’s own hidden-state trajectories to mMinimize deviation from FP16 teacher activations?
Changes to llama.cpp impressive. Good work.
Thanks, that means something coming from someone who's been at this a while.
The runtime side is all in the patch, so you've read the architecture right off the source. The training side is the part I'm keeping to myself for now, so I'll neither confirm nor correct the guess, and I'd rather not play warmer/colder with it!
What I can say is that the file and the runtime are there to be measured: KL to the FP16 logits and Q4_K_M's MMLU-Pro on the same scorer land on the card today. What are you working on? If there's a model or a deployment you'd want this on, that conversation I'm happy to have.
LOL fair enough, and I just noticed the patent pending, so I won’t push.
For this kind of work I came at it from the opposite side: no teacher, no retraining, no corrective network. Transform the frozen tensors into a representation where the error you’d otherwise have to learn largely disappears.
I got annoyed by Bonsai’s ternary buzzword-heavy launch about six weeks ago, said “hold my beer,” and about six hours later, mostly from my phone, had the same Qwen 27B family at 1.055× reference perplexity directly from the original tensors. Mine is still at a larger whole-model byte budget than Opti, though, so you’ve got me cleanly on the published size/quality point right now.
What caught my attention is that we’re apparently asking the same deeper question from opposite directions: how little of the original representation do you actually need to preserve to retain the useful computation?
And, genuinely, the way you approached it shows a mind that solves problems with thought and care. That’s usually the mark of someone doing the work for the right reasons, and it makes you easy to cheer for.
As for what I work on beyond quantization: creatively shit-disturbing cognition and theory of mind, machine memory and associative recall, attention and awareness, consequence modelling, high-dimensional geometry and algebraic algorithm optimization, quantum-compute simulation and compression, distributed/GPU compute and novel networking protocols, cognitive architectures, and whatever other interesting problem wanders close enough for me to poke it with a stick.
So, you know. Normal hobbies still quieter than trains. Cheaper than Warhammer. About as addictive as MTG? 🤷♂️