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 Desktop
- 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 @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": "badtheorylabs/BTL-3-Compact" } ] } } }Run Pi
# Start Pi in your project directory: pi
- 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
- Hermes Agent
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
- OpenClaw
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"
Ship thinking-off runtime default
Browse files- SHA256SUMS +5 -5
- runtimes/preview/BTL-3-Compact-linux-arm64-cuda/bin/btl3-server +104 -0
- runtimes/preview/BTL-3-Compact-linux-arm64-cuda/bundle-manifest.json +101 -0
- runtimes/supported/BTL-3-Compact-macos-arm64/bin/btl3-server +8 -2
- runtimes/supported/BTL-3-Compact-macos-arm64/bundle-manifest.json +2 -2
SHA256SUMS
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
87e8ab7ed85be38e270830b157061a99af89fb85f51eb12c411e6dcecf5d88e8 RELEASE_MANIFEST.json
|
| 3 |
7c3d8064baf55779579b48c58fa083e0bda2a639c857b4bde56bab4008d28002 docs/btl-3-compact-gguf-exporter.md
|
| 4 |
d1f83f8a4652b7d07417067e964af864aaebf559bb9b0c76a54a0c357c3ffe86 docs/launch-btl3-compact.md
|
|
@@ -25,8 +25,8 @@ ef85e198bda0c18a42650ea1a576bffdc3f8749d2f8dcec739b9be34efeebb2d licenses/LICEN
|
|
| 25 |
87cfc2262dbf499daff47db1339293198fba61431f623fd7226004d6714d58c8 licenses/THIRD_PARTY_NOTICES.md
|
| 26 |
2ddf9527620a17a2a6739d184a7096c45712092e6589128792ec6254e94dc30c model/BTL-3-Compact-AVQ2.gguf
|
| 27 |
94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d runtimes/preview/BTL-3-Compact-linux-arm64-cuda/LICENSE.llama.cpp
|
| 28 |
-
|
| 29 |
-
|
| 30 |
7761d260387b95fa13b7ec101453abca45ef972d3e6ccc8bcf54251e1ac0470b runtimes/preview/BTL-3-Compact-linux-arm64-cuda/lib/libcublas.so.13
|
| 31 |
3839e12c3b69ed8eb732e5d5f8e749403a582a9d706f779017c785152d9e62f9 runtimes/preview/BTL-3-Compact-linux-arm64-cuda/lib/libcublasLt.so.13
|
| 32 |
7bdba2b5b08cbdc85203c41cc94598adedb1bcfea7cb574ca693ac73599e4e63 runtimes/preview/BTL-3-Compact-linux-arm64-cuda/lib/libcudart.so.13
|
|
@@ -49,8 +49,8 @@ b67f9d10eaa85a500180ddecf6ecdf0e9c100b0bdf4c10e32b0bf657ca50e494 runtimes/previ
|
|
| 49 |
7d5450cb2d142651b8afa315b5f238efc805dad827d91ba367d8516bc9d49e7a runtimes/supported/BTL-3-Compact-macos-arm64/LICENSE.OpenSSL
|
| 50 |
94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d runtimes/supported/BTL-3-Compact-macos-arm64/LICENSE.llama.cpp
|
| 51 |
de4350f194d6f393bd3ea1065b024d7f92fea0a8f2e435f6557dc0c6696b3a74 runtimes/supported/BTL-3-Compact-macos-arm64/bin/btl3-ollama-bridge
|
| 52 |
-
|
| 53 |
-
|
| 54 |
1f6ea0bde7b3d4ea462b047e12905c8b554b111d2808deb33fc3add67b4d0895 runtimes/supported/BTL-3-Compact-macos-arm64/lib/libcrypto.3.dylib
|
| 55 |
a5edff95c1a5f9c6fd3072ea65cb8b75e44fb92bbb1b35901ec43fe62cbc6eff runtimes/supported/BTL-3-Compact-macos-arm64/lib/libggml-base.0.13.1.dylib
|
| 56 |
14c8604076154609c9767a936953f7c2e419099a509e129629467329b5d21aad runtimes/supported/BTL-3-Compact-macos-arm64/lib/libggml-blas.0.13.1.dylib
|
|
|
|
| 1 |
+
3b9154b6872131ef0c75778b06fb45217a4a47ae19f75feb922af6c9b62d1ced README.md
|
| 2 |
87e8ab7ed85be38e270830b157061a99af89fb85f51eb12c411e6dcecf5d88e8 RELEASE_MANIFEST.json
|
| 3 |
7c3d8064baf55779579b48c58fa083e0bda2a639c857b4bde56bab4008d28002 docs/btl-3-compact-gguf-exporter.md
|
| 4 |
d1f83f8a4652b7d07417067e964af864aaebf559bb9b0c76a54a0c357c3ffe86 docs/launch-btl3-compact.md
|
|
|
|
| 25 |
87cfc2262dbf499daff47db1339293198fba61431f623fd7226004d6714d58c8 licenses/THIRD_PARTY_NOTICES.md
|
| 26 |
2ddf9527620a17a2a6739d184a7096c45712092e6589128792ec6254e94dc30c model/BTL-3-Compact-AVQ2.gguf
|
| 27 |
94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d runtimes/preview/BTL-3-Compact-linux-arm64-cuda/LICENSE.llama.cpp
|
| 28 |
+
b6e370b019f80cb605ac78846156233a816aa61d423ff5a7e923fcd7e8670abc runtimes/preview/BTL-3-Compact-linux-arm64-cuda/bin/btl3-server
|
| 29 |
+
0982584bae74781ee188a0a0a626f40ef333d4492c69f0699f6eb4468ae7aff2 runtimes/preview/BTL-3-Compact-linux-arm64-cuda/bundle-manifest.json
|
| 30 |
7761d260387b95fa13b7ec101453abca45ef972d3e6ccc8bcf54251e1ac0470b runtimes/preview/BTL-3-Compact-linux-arm64-cuda/lib/libcublas.so.13
|
| 31 |
3839e12c3b69ed8eb732e5d5f8e749403a582a9d706f779017c785152d9e62f9 runtimes/preview/BTL-3-Compact-linux-arm64-cuda/lib/libcublasLt.so.13
|
| 32 |
7bdba2b5b08cbdc85203c41cc94598adedb1bcfea7cb574ca693ac73599e4e63 runtimes/preview/BTL-3-Compact-linux-arm64-cuda/lib/libcudart.so.13
|
|
|
|
| 49 |
7d5450cb2d142651b8afa315b5f238efc805dad827d91ba367d8516bc9d49e7a runtimes/supported/BTL-3-Compact-macos-arm64/LICENSE.OpenSSL
|
| 50 |
94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d runtimes/supported/BTL-3-Compact-macos-arm64/LICENSE.llama.cpp
|
| 51 |
de4350f194d6f393bd3ea1065b024d7f92fea0a8f2e435f6557dc0c6696b3a74 runtimes/supported/BTL-3-Compact-macos-arm64/bin/btl3-ollama-bridge
|
| 52 |
+
e4dc8efdbeadfc74c27516115b808b3589da1b8b27d0f330498dacd9b1f3d8a9 runtimes/supported/BTL-3-Compact-macos-arm64/bin/btl3-server
|
| 53 |
+
e192aee70a8473f595bb106d0f7b5604fac6c389c08ed00d55f51673fcca3b27 runtimes/supported/BTL-3-Compact-macos-arm64/bundle-manifest.json
|
| 54 |
1f6ea0bde7b3d4ea462b047e12905c8b554b111d2808deb33fc3add67b4d0895 runtimes/supported/BTL-3-Compact-macos-arm64/lib/libcrypto.3.dylib
|
| 55 |
a5edff95c1a5f9c6fd3072ea65cb8b75e44fb92bbb1b35901ec43fe62cbc6eff runtimes/supported/BTL-3-Compact-macos-arm64/lib/libggml-base.0.13.1.dylib
|
| 56 |
14c8604076154609c9767a936953f7c2e419099a509e129629467329b5d21aad runtimes/supported/BTL-3-Compact-macos-arm64/lib/libggml-blas.0.13.1.dylib
|
runtimes/preview/BTL-3-Compact-linux-arm64-cuda/bin/btl3-server
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
bundle_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
| 5 |
+
server="$bundle_root/libexec/llama-server"
|
| 6 |
+
model_name="BTL-3-Compact-AVQ2.gguf"
|
| 7 |
+
|
| 8 |
+
find_model() {
|
| 9 |
+
if [ -n "${BTL3_MODEL:-}" ]; then
|
| 10 |
+
printf '%s\n' "$BTL3_MODEL"
|
| 11 |
+
return
|
| 12 |
+
fi
|
| 13 |
+
for candidate in \
|
| 14 |
+
"$bundle_root/model/$model_name" \
|
| 15 |
+
"$bundle_root/../../artifacts/release/$model_name" \
|
| 16 |
+
"$PWD/$model_name"
|
| 17 |
+
do
|
| 18 |
+
if [ -f "$candidate" ]; then
|
| 19 |
+
printf '%s\n' "$candidate"
|
| 20 |
+
return
|
| 21 |
+
fi
|
| 22 |
+
done
|
| 23 |
+
return 1
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
detect_gpu_memory() {
|
| 27 |
+
if [ -n "${BTL3_GPU_MEMORY_MIB:-}" ]; then
|
| 28 |
+
printf '%s\n' "$BTL3_GPU_MEMORY_MIB"
|
| 29 |
+
return
|
| 30 |
+
fi
|
| 31 |
+
if command -v nvidia-smi >/dev/null 2>&1; then
|
| 32 |
+
value=$(nvidia-smi --query-gpu=memory.total \
|
| 33 |
+
--format=csv,noheader,nounits 2>/dev/null | head -1 | tr -dc '0-9')
|
| 34 |
+
if [ -n "$value" ]; then
|
| 35 |
+
printf '%s\n' "$value"
|
| 36 |
+
return
|
| 37 |
+
fi
|
| 38 |
+
fi
|
| 39 |
+
case "$(uname -m)" in
|
| 40 |
+
aarch64|arm64)
|
| 41 |
+
awk '/MemTotal:/ { printf "%d\n", $2 / 1024 }' /proc/meminfo
|
| 42 |
+
return
|
| 43 |
+
;;
|
| 44 |
+
esac
|
| 45 |
+
return 1
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
choose_context() {
|
| 49 |
+
memory=$1
|
| 50 |
+
if [ "$memory" -ge 96000 ]; then printf '%s\n' 131072
|
| 51 |
+
elif [ "$memory" -ge 48000 ]; then printf '%s\n' 98304
|
| 52 |
+
elif [ "$memory" -ge 28000 ]; then printf '%s\n' 65536
|
| 53 |
+
elif [ "$memory" -ge 20000 ]; then printf '%s\n' 32768
|
| 54 |
+
else printf '%s\n' 16384
|
| 55 |
+
fi
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
model=$(find_model || true)
|
| 59 |
+
if [ -z "$model" ] || [ ! -f "$model" ]; then
|
| 60 |
+
echo "BTL-3 model not found. Set BTL3_MODEL to $model_name." >&2
|
| 61 |
+
exit 2
|
| 62 |
+
fi
|
| 63 |
+
if [ ! -x "$server" ]; then
|
| 64 |
+
echo "Packaged llama-server is missing or not executable: $server" >&2
|
| 65 |
+
exit 2
|
| 66 |
+
fi
|
| 67 |
+
memory_mib=$(detect_gpu_memory || true)
|
| 68 |
+
if [ -z "$memory_mib" ]; then
|
| 69 |
+
echo "NVIDIA GPU memory could not be detected; set BTL3_GPU_MEMORY_MIB." >&2
|
| 70 |
+
exit 2
|
| 71 |
+
fi
|
| 72 |
+
|
| 73 |
+
host=${BTL3_HOST:-127.0.0.1}
|
| 74 |
+
port=${BTL3_PORT:-8080}
|
| 75 |
+
ctx=${BTL3_CTX_SIZE:-$(choose_context "$memory_mib")}
|
| 76 |
+
parallel=${BTL3_PARALLEL:-1}
|
| 77 |
+
aliases=${BTL3_MODEL_ALIASES:-BTL-3}
|
| 78 |
+
gpu_layers=${BTL3_GPU_LAYERS:-99}
|
| 79 |
+
case "${BTL3_ENABLE_THINKING:-false}" in
|
| 80 |
+
1|true|TRUE) chat_template_kwargs='{"enable_thinking":true}' ;;
|
| 81 |
+
*) chat_template_kwargs='{"enable_thinking":false}' ;;
|
| 82 |
+
esac
|
| 83 |
+
export LD_LIBRARY_PATH="$bundle_root/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
| 84 |
+
export GGML_BACKEND_PATH="$bundle_root/lib/libggml-cuda.so"
|
| 85 |
+
case "$(uname -m)" in
|
| 86 |
+
aarch64|arm64) export GGML_CUDA_ENABLE_UNIFIED_MEMORY=1 ;;
|
| 87 |
+
esac
|
| 88 |
+
|
| 89 |
+
set -- \
|
| 90 |
+
--model "$model" --alias "$aliases" --host "$host" --port "$port" \
|
| 91 |
+
--ctx-size "$ctx" --parallel "$parallel" --n-gpu-layers "$gpu_layers" \
|
| 92 |
+
--jinja --reasoning auto --reasoning-format deepseek --cont-batching \
|
| 93 |
+
--chat-template-kwargs "$chat_template_kwargs" \
|
| 94 |
+
--cache-ram 0 --no-warmup --no-ui "$@"
|
| 95 |
+
if [ -n "${BTL3_API_KEY:-}" ]; then
|
| 96 |
+
set -- "$@" --api-key "$BTL3_API_KEY"
|
| 97 |
+
fi
|
| 98 |
+
if [ "${BTL3_PRINT_COMMAND:-0}" = "1" ]; then
|
| 99 |
+
printf 'executable=%s\nmodel=%s\nhost=%s\nport=%s\nctx_size=%s\ngpu_memory_mib=%s\nthinking_enabled=%s\n' \
|
| 100 |
+
"$server" "$model" "$host" "$port" "$ctx" "$memory_mib" \
|
| 101 |
+
"$( [ "$chat_template_kwargs" = '{"enable_thinking":true}' ] && printf true || printf false )"
|
| 102 |
+
exit 0
|
| 103 |
+
fi
|
| 104 |
+
exec "$server" "$@"
|
runtimes/preview/BTL-3-Compact-linux-arm64-cuda/bundle-manifest.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"bundle": "BTL-3 Compact Linux arm64 CUDA (DGX Spark)",
|
| 4 |
+
"target": "linux-arm64",
|
| 5 |
+
"cuda": {
|
| 6 |
+
"toolkit": "13.0.2",
|
| 7 |
+
"architectures": "121-real"
|
| 8 |
+
},
|
| 9 |
+
"status": "cross-compiled; NVIDIA runtime conformance pending",
|
| 10 |
+
"external_model": {
|
| 11 |
+
"filename": "BTL-3-Compact-AVQ2.gguf",
|
| 12 |
+
"bytes": 8392369600,
|
| 13 |
+
"sha256": "2ddf9527620a17a2a6739d184a7096c45712092e6589128792ec6254e94dc30c"
|
| 14 |
+
},
|
| 15 |
+
"files": {
|
| 16 |
+
"LICENSE.llama.cpp": {
|
| 17 |
+
"bytes": 1078,
|
| 18 |
+
"sha256": "94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d"
|
| 19 |
+
},
|
| 20 |
+
"bin/btl3-server": {
|
| 21 |
+
"bytes": 3297,
|
| 22 |
+
"sha256": "b6e370b019f80cb605ac78846156233a816aa61d423ff5a7e923fcd7e8670abc"
|
| 23 |
+
},
|
| 24 |
+
"lib/libcublas.so.13": {
|
| 25 |
+
"bytes": 61918408,
|
| 26 |
+
"sha256": "7761d260387b95fa13b7ec101453abca45ef972d3e6ccc8bcf54251e1ac0470b"
|
| 27 |
+
},
|
| 28 |
+
"lib/libcublasLt.so.13": {
|
| 29 |
+
"bytes": 629929568,
|
| 30 |
+
"sha256": "3839e12c3b69ed8eb732e5d5f8e749403a582a9d706f779017c785152d9e62f9"
|
| 31 |
+
},
|
| 32 |
+
"lib/libcudart.so.13": {
|
| 33 |
+
"bytes": 707752,
|
| 34 |
+
"sha256": "7bdba2b5b08cbdc85203c41cc94598adedb1bcfea7cb574ca693ac73599e4e63"
|
| 35 |
+
},
|
| 36 |
+
"lib/libggml-base.so.0": {
|
| 37 |
+
"bytes": 872704,
|
| 38 |
+
"sha256": "b18971c1a35490194c8aa1666a57494e6324064155017add217f0b20ade657ba"
|
| 39 |
+
},
|
| 40 |
+
"lib/libggml-base.so.0.13.1": {
|
| 41 |
+
"bytes": 872704,
|
| 42 |
+
"sha256": "b18971c1a35490194c8aa1666a57494e6324064155017add217f0b20ade657ba"
|
| 43 |
+
},
|
| 44 |
+
"lib/libggml-cpu.so": {
|
| 45 |
+
"bytes": 1000112,
|
| 46 |
+
"sha256": "b61975da167b511286b5df2d6cc384d3ba9eb78d559927d784352d420a4d59db"
|
| 47 |
+
},
|
| 48 |
+
"lib/libggml-cuda.so": {
|
| 49 |
+
"bytes": 43037040,
|
| 50 |
+
"sha256": "9edb3b2a88fe59fe6d33d9e6a70f8bede4df68b3acfc5e00a63c53e34163985c"
|
| 51 |
+
},
|
| 52 |
+
"lib/libggml.so.0": {
|
| 53 |
+
"bytes": 77824,
|
| 54 |
+
"sha256": "3ab1d08c26865f5ff7ed753818cd84bc1fa9438e633eae7e3a53b633794973f5"
|
| 55 |
+
},
|
| 56 |
+
"lib/libggml.so.0.13.1": {
|
| 57 |
+
"bytes": 77824,
|
| 58 |
+
"sha256": "3ab1d08c26865f5ff7ed753818cd84bc1fa9438e633eae7e3a53b633794973f5"
|
| 59 |
+
},
|
| 60 |
+
"lib/libllama-cli-impl.so": {
|
| 61 |
+
"bytes": 1576888,
|
| 62 |
+
"sha256": "cde7a5d92f37a641b8962fd2a4a516edfadb19a53b426ab392d10995053df7c0"
|
| 63 |
+
},
|
| 64 |
+
"lib/libllama-common.so.0": {
|
| 65 |
+
"bytes": 5074576,
|
| 66 |
+
"sha256": "a154d3ee1da598eb55ff0ecfbdcd6898fa449a1dbac7c2afcf22263eac7abae6"
|
| 67 |
+
},
|
| 68 |
+
"lib/libllama-common.so.0.0.0": {
|
| 69 |
+
"bytes": 5074576,
|
| 70 |
+
"sha256": "a154d3ee1da598eb55ff0ecfbdcd6898fa449a1dbac7c2afcf22263eac7abae6"
|
| 71 |
+
},
|
| 72 |
+
"lib/libllama-server-impl.so": {
|
| 73 |
+
"bytes": 3194872,
|
| 74 |
+
"sha256": "44c74d0f766c9f0fa1bf0482eabf12927b9a5615e18c348c8cd19e3c2c952f25"
|
| 75 |
+
},
|
| 76 |
+
"lib/libllama.so.0": {
|
| 77 |
+
"bytes": 3630056,
|
| 78 |
+
"sha256": "78addbbc0eb03da6208eab469e8e17a989e47f3e3c99674aa3203fd658694021"
|
| 79 |
+
},
|
| 80 |
+
"lib/libllama.so.0.0.0": {
|
| 81 |
+
"bytes": 3630056,
|
| 82 |
+
"sha256": "78addbbc0eb03da6208eab469e8e17a989e47f3e3c99674aa3203fd658694021"
|
| 83 |
+
},
|
| 84 |
+
"lib/libmtmd.so.0": {
|
| 85 |
+
"bytes": 1316176,
|
| 86 |
+
"sha256": "60a791c271d779f4f11321a13dd380424ca20909f530b035ea3d568ab2b87178"
|
| 87 |
+
},
|
| 88 |
+
"lib/libmtmd.so.0.0.0": {
|
| 89 |
+
"bytes": 1316176,
|
| 90 |
+
"sha256": "60a791c271d779f4f11321a13dd380424ca20909f530b035ea3d568ab2b87178"
|
| 91 |
+
},
|
| 92 |
+
"libexec/llama-cli": {
|
| 93 |
+
"bytes": 72448,
|
| 94 |
+
"sha256": "5e1c37e59fb2cd37acd8df0fe87a5e1f7a74a496af4ae278012757d84a1b1939"
|
| 95 |
+
},
|
| 96 |
+
"libexec/llama-server": {
|
| 97 |
+
"bytes": 72456,
|
| 98 |
+
"sha256": "b67f9d10eaa85a500180ddecf6ecdf0e9c100b0bdf4c10e32b0bf657ca50e494"
|
| 99 |
+
}
|
| 100 |
+
}
|
| 101 |
+
}
|
runtimes/supported/BTL-3-Compact-macos-arm64/bin/btl3-server
CHANGED
|
@@ -43,6 +43,10 @@ ctx=${BTL3_CTX_SIZE:-32768}
|
|
| 43 |
parallel=${BTL3_PARALLEL:-1}
|
| 44 |
gpu_layers=${BTL3_GPU_LAYERS:-99}
|
| 45 |
aliases=${BTL3_MODEL_ALIASES:-BTL-3}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
set -- \
|
| 48 |
--model "$model" \
|
|
@@ -55,6 +59,7 @@ set -- \
|
|
| 55 |
--jinja \
|
| 56 |
--reasoning auto \
|
| 57 |
--reasoning-format deepseek \
|
|
|
|
| 58 |
--cont-batching \
|
| 59 |
--cache-ram 0 \
|
| 60 |
--no-mmap \
|
|
@@ -66,8 +71,9 @@ if [ -n "${BTL3_API_KEY:-}" ]; then
|
|
| 66 |
set -- "$@" --api-key "$BTL3_API_KEY"
|
| 67 |
fi
|
| 68 |
if [ "${BTL3_PRINT_COMMAND:-0}" = "1" ]; then
|
| 69 |
-
printf 'executable=%s\nmodel=%s\nhost=%s\nport=%s\nctx_size=%s\n' \
|
| 70 |
-
"$server" "$model" "$host" "$port" "$ctx"
|
|
|
|
| 71 |
exit 0
|
| 72 |
fi
|
| 73 |
exec "$server" "$@"
|
|
|
|
| 43 |
parallel=${BTL3_PARALLEL:-1}
|
| 44 |
gpu_layers=${BTL3_GPU_LAYERS:-99}
|
| 45 |
aliases=${BTL3_MODEL_ALIASES:-BTL-3}
|
| 46 |
+
case "${BTL3_ENABLE_THINKING:-false}" in
|
| 47 |
+
1|true|TRUE) chat_template_kwargs='{"enable_thinking":true}' ;;
|
| 48 |
+
*) chat_template_kwargs='{"enable_thinking":false}' ;;
|
| 49 |
+
esac
|
| 50 |
|
| 51 |
set -- \
|
| 52 |
--model "$model" \
|
|
|
|
| 59 |
--jinja \
|
| 60 |
--reasoning auto \
|
| 61 |
--reasoning-format deepseek \
|
| 62 |
+
--chat-template-kwargs "$chat_template_kwargs" \
|
| 63 |
--cont-batching \
|
| 64 |
--cache-ram 0 \
|
| 65 |
--no-mmap \
|
|
|
|
| 71 |
set -- "$@" --api-key "$BTL3_API_KEY"
|
| 72 |
fi
|
| 73 |
if [ "${BTL3_PRINT_COMMAND:-0}" = "1" ]; then
|
| 74 |
+
printf 'executable=%s\nmodel=%s\nhost=%s\nport=%s\nctx_size=%s\nthinking_enabled=%s\n' \
|
| 75 |
+
"$server" "$model" "$host" "$port" "$ctx" \
|
| 76 |
+
"$( [ "$chat_template_kwargs" = '{"enable_thinking":true}' ] && printf true || printf false )"
|
| 77 |
exit 0
|
| 78 |
fi
|
| 79 |
exec "$server" "$@"
|
runtimes/supported/BTL-3-Compact-macos-arm64/bundle-manifest.json
CHANGED
|
@@ -25,8 +25,8 @@
|
|
| 25 |
"sha256": "de4350f194d6f393bd3ea1065b024d7f92fea0a8f2e435f6557dc0c6696b3a74"
|
| 26 |
},
|
| 27 |
"bin/btl3-server": {
|
| 28 |
-
"bytes":
|
| 29 |
-
"sha256": "
|
| 30 |
},
|
| 31 |
"lib/libcrypto.3.dylib": {
|
| 32 |
"bytes": 4845712,
|
|
|
|
| 25 |
"sha256": "de4350f194d6f393bd3ea1065b024d7f92fea0a8f2e435f6557dc0c6696b3a74"
|
| 26 |
},
|
| 27 |
"bin/btl3-server": {
|
| 28 |
+
"bytes": 2132,
|
| 29 |
+
"sha256": "e4dc8efdbeadfc74c27516115b808b3589da1b8b27d0f330498dacd9b1f3d8a9"
|
| 30 |
},
|
| 31 |
"lib/libcrypto.3.dylib": {
|
| 32 |
"bytes": 4845712,
|