Text Generation
GGUF
llama.cpp
agent
coding
reasoning
tool-use
function-calling
quantized
cuda
metal
conversational
Instructions to use badtheorylabs/BTL-3-Compact 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 badtheorylabs/BTL-3-Compact 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 badtheorylabs/BTL-3-Compact # Run inference directly in the terminal: llama cli -hf badtheorylabs/BTL-3-Compact
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf badtheorylabs/BTL-3-Compact # Run inference directly in the terminal: llama cli -hf badtheorylabs/BTL-3-Compact
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 badtheorylabs/BTL-3-Compact # Run inference directly in the terminal: ./llama-cli -hf badtheorylabs/BTL-3-Compact
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 badtheorylabs/BTL-3-Compact # Run inference directly in the terminal: ./build/bin/llama-cli -hf badtheorylabs/BTL-3-Compact
Use Docker
docker model run hf.co/badtheorylabs/BTL-3-Compact
- LM Studio
- Jan
- vLLM
How to use badtheorylabs/BTL-3-Compact with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "badtheorylabs/BTL-3-Compact" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "badtheorylabs/BTL-3-Compact", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/badtheorylabs/BTL-3-Compact
- Ollama
How to use badtheorylabs/BTL-3-Compact with Ollama:
ollama run hf.co/badtheorylabs/BTL-3-Compact
- Unsloth Studio
How to use badtheorylabs/BTL-3-Compact 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 badtheorylabs/BTL-3-Compact 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 badtheorylabs/BTL-3-Compact to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for badtheorylabs/BTL-3-Compact to start chatting
- Pi
How to use badtheorylabs/BTL-3-Compact with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf badtheorylabs/BTL-3-Compact
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": "badtheorylabs/BTL-3-Compact" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use badtheorylabs/BTL-3-Compact with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf badtheorylabs/BTL-3-Compact
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 badtheorylabs/BTL-3-Compact
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use badtheorylabs/BTL-3-Compact with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf badtheorylabs/BTL-3-Compact
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 "badtheorylabs/BTL-3-Compact" \ --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 badtheorylabs/BTL-3-Compact with Docker Model Runner:
docker model run hf.co/badtheorylabs/BTL-3-Compact
- Lemonade
How to use badtheorylabs/BTL-3-Compact with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull badtheorylabs/BTL-3-Compact
Run and chat with the model
lemonade run user.BTL-3-Compact-{{QUANT_TAG}}List all available models
lemonade list
| { | |
| "name": "btl3-native-lmstudio", | |
| "version": "0.1.0", | |
| "lockfileVersion": 3, | |
| "requires": true, | |
| "packages": { | |
| "": { | |
| "name": "btl3-native-lmstudio", | |
| "version": "0.1.0", | |
| "dependencies": { | |
| "@lmstudio/sdk": "1.5.0", | |
| "openai": "6.48.0" | |
| }, | |
| "devDependencies": { | |
| "@types/node": "24.0.0", | |
| "typescript": "5.9.3" | |
| } | |
| }, | |
| "node_modules/@lmstudio/lms-isomorphic": { | |
| "version": "0.4.6", | |
| "resolved": "https://registry.npmjs.org/@lmstudio/lms-isomorphic/-/lms-isomorphic-0.4.6.tgz", | |
| "integrity": "sha512-v0LIjXKnDe3Ff3XZO5eQjlVxTjleUHXaom14MV7QU9bvwaoo3l5p71+xJ3mmSaqZq370CQ6pTKCn1Bb7Jf+VwQ==", | |
| "license": "Apache-2.0", | |
| "dependencies": { | |
| "ws": "^8.16.0" | |
| } | |
| }, | |
| "node_modules/@lmstudio/sdk": { | |
| "version": "1.5.0", | |
| "resolved": "https://registry.npmjs.org/@lmstudio/sdk/-/sdk-1.5.0.tgz", | |
| "integrity": "sha512-fdY12x4hb14PEjYijh7YeCqT1ZDY5Ok6VR4l4+E/dI+F6NW8oB+P83Sxed5vqE4XgTzbgyPuSR2ZbMNxxF+6jA==", | |
| "license": "Apache-2.0", | |
| "dependencies": { | |
| "@lmstudio/lms-isomorphic": "^0.4.6", | |
| "chalk": "^4.1.2", | |
| "jsonschema": "^1.5.0", | |
| "zod": "^3.22.4", | |
| "zod-to-json-schema": "^3.22.5" | |
| } | |
| }, | |
| "node_modules/@types/node": { | |
| "version": "24.0.0", | |
| "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.0.tgz", | |
| "integrity": "sha512-yZQa2zm87aRVcqDyH5+4Hv9KYgSdgwX1rFnGvpbzMaC7YAljmhBET93TPiTd3ObwTL+gSpIzPKg5BqVxdCvxKg==", | |
| "dev": true, | |
| "license": "MIT", | |
| "dependencies": { | |
| "undici-types": "~7.8.0" | |
| } | |
| }, | |
| "node_modules/ansi-styles": { | |
| "version": "4.3.0", | |
| "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", | |
| "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", | |
| "license": "MIT", | |
| "dependencies": { | |
| "color-convert": "^2.0.1" | |
| }, | |
| "engines": { | |
| "node": ">=8" | |
| }, | |
| "funding": { | |
| "url": "https://github.com/chalk/ansi-styles?sponsor=1" | |
| } | |
| }, | |
| "node_modules/chalk": { | |
| "version": "4.1.2", | |
| "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", | |
| "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", | |
| "license": "MIT", | |
| "dependencies": { | |
| "ansi-styles": "^4.1.0", | |
| "supports-color": "^7.1.0" | |
| }, | |
| "engines": { | |
| "node": ">=10" | |
| }, | |
| "funding": { | |
| "url": "https://github.com/chalk/chalk?sponsor=1" | |
| } | |
| }, | |
| "node_modules/color-convert": { | |
| "version": "2.0.1", | |
| "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", | |
| "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", | |
| "license": "MIT", | |
| "dependencies": { | |
| "color-name": "~1.1.4" | |
| }, | |
| "engines": { | |
| "node": ">=7.0.0" | |
| } | |
| }, | |
| "node_modules/color-name": { | |
| "version": "1.1.4", | |
| "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", | |
| "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", | |
| "license": "MIT" | |
| }, | |
| "node_modules/has-flag": { | |
| "version": "4.0.0", | |
| "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", | |
| "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", | |
| "license": "MIT", | |
| "engines": { | |
| "node": ">=8" | |
| } | |
| }, | |
| "node_modules/jsonschema": { | |
| "version": "1.5.0", | |
| "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.5.0.tgz", | |
| "integrity": "sha512-K+A9hhqbn0f3pJX17Q/7H6yQfD/5OXgdrR5UE12gMXCiN9D5Xq2o5mddV2QEcX/bjla99ASsAAQUyMCCRWAEhw==", | |
| "license": "MIT", | |
| "engines": { | |
| "node": "*" | |
| } | |
| }, | |
| "node_modules/openai": { | |
| "version": "6.48.0", | |
| "resolved": "https://registry.npmjs.org/openai/-/openai-6.48.0.tgz", | |
| "integrity": "sha512-KhVp+FyV50QrXNextvL9hIU5l6ox5HYuKQjGVk7lIqprgJol90+dQXWONV6S1lRWsKA1bXjrow8RsUT14M1hNA==", | |
| "license": "Apache-2.0", | |
| "peerDependencies": { | |
| "@aws-sdk/credential-provider-node": ">=3.972.0 <4", | |
| "@smithy/hash-node": ">=4.3.0 <5", | |
| "@smithy/signature-v4": ">=5.4.0 <6", | |
| "ws": "^8.18.0", | |
| "zod": "^3.25 || ^4.0" | |
| }, | |
| "peerDependenciesMeta": { | |
| "@aws-sdk/credential-provider-node": { | |
| "optional": true | |
| }, | |
| "@smithy/hash-node": { | |
| "optional": true | |
| }, | |
| "@smithy/signature-v4": { | |
| "optional": true | |
| }, | |
| "ws": { | |
| "optional": true | |
| }, | |
| "zod": { | |
| "optional": true | |
| } | |
| } | |
| }, | |
| "node_modules/supports-color": { | |
| "version": "7.2.0", | |
| "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", | |
| "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", | |
| "license": "MIT", | |
| "dependencies": { | |
| "has-flag": "^4.0.0" | |
| }, | |
| "engines": { | |
| "node": ">=8" | |
| } | |
| }, | |
| "node_modules/typescript": { | |
| "version": "5.9.3", | |
| "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", | |
| "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", | |
| "dev": true, | |
| "license": "Apache-2.0", | |
| "bin": { | |
| "tsc": "bin/tsc", | |
| "tsserver": "bin/tsserver" | |
| }, | |
| "engines": { | |
| "node": ">=14.17" | |
| } | |
| }, | |
| "node_modules/undici-types": { | |
| "version": "7.8.0", | |
| "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", | |
| "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", | |
| "dev": true, | |
| "license": "MIT" | |
| }, | |
| "node_modules/ws": { | |
| "version": "8.21.1", | |
| "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.1.tgz", | |
| "integrity": "sha512-+0NTnW77fFN/DjQi6k/Sq/Yvk4Sgajw7urW8V+asjXnRgDs9gyGkdb7EzgfhA4goXsRIZKE28fzIXBHEzhuiWw==", | |
| "license": "MIT", | |
| "engines": { | |
| "node": ">=10.0.0" | |
| }, | |
| "peerDependencies": { | |
| "bufferutil": "^4.0.1", | |
| "utf-8-validate": ">=5.0.2" | |
| }, | |
| "peerDependenciesMeta": { | |
| "bufferutil": { | |
| "optional": true | |
| }, | |
| "utf-8-validate": { | |
| "optional": true | |
| } | |
| } | |
| }, | |
| "node_modules/zod": { | |
| "version": "3.25.76", | |
| "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", | |
| "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", | |
| "license": "MIT", | |
| "funding": { | |
| "url": "https://github.com/sponsors/colinhacks" | |
| } | |
| }, | |
| "node_modules/zod-to-json-schema": { | |
| "version": "3.25.2", | |
| "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", | |
| "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", | |
| "license": "ISC", | |
| "peerDependencies": { | |
| "zod": "^3.25.28 || ^4" | |
| } | |
| } | |
| } | |
| } | |