Image-Text-to-Text
MLX
Safetensors
prism_hadamard_qwen35
gbx-lm
gbx
ternary
speculative-decoding
cuda
metal
agent
terminal-bench
conversational
Instructions to use GreenBitAI/Terza-27B-Agent-gbx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use GreenBitAI/Terza-27B-Agent-gbx with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("GreenBitAI/Terza-27B-Agent-gbx") config = load_config("GreenBitAI/Terza-27B-Agent-gbx") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use GreenBitAI/Terza-27B-Agent-gbx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "GreenBitAI/Terza-27B-Agent-gbx"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "GreenBitAI/Terza-27B-Agent-gbx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use GreenBitAI/Terza-27B-Agent-gbx with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "GreenBitAI/Terza-27B-Agent-gbx"
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 GreenBitAI/Terza-27B-Agent-gbx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use GreenBitAI/Terza-27B-Agent-gbx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "GreenBitAI/Terza-27B-Agent-gbx"
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 "GreenBitAI/Terza-27B-Agent-gbx" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Card: public, measured draft-head speed, thinking on, gbx-lm v0.8.4 or later
Browse files
README.md
CHANGED
|
@@ -49,10 +49,16 @@ have not been re-measured in gbx-lm.
|
|
| 49 |
|
| 50 |
The format and the size are those of
|
| 51 |
[GreenBitAI/Ternary-Bonsai-2-27B-gbx](https://huggingface.co/GreenBitAI/Ternary-Bonsai-2-27B-gbx),
|
| 52 |
-
so
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
## Requirements
|
| 58 |
|
|
@@ -75,8 +81,8 @@ unchanged; its acceptance rate with this model has not been measured yet, so the
|
|
| 75 |
|
| 76 |
The model and its draft head take about **10 GB** of memory, plus the conversation's cache.
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
|
| 81 |
## Install
|
| 82 |
|
|
@@ -112,7 +118,20 @@ GBX_QWEN35_MTP=on gbx_lm --model GreenBitAI/Terza-27B-Agent-gbx
|
|
| 112 |
|
| 113 |
That serves an OpenAI-compatible API on port 11688, its default. The weights download on
|
| 114 |
first use into `~/.libra/cache/models`; set `HF_HOME` to put them elsewhere. Leave out
|
| 115 |
-
`GBX_QWEN35_MTP=on` to run without the draft head.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
```bash
|
| 118 |
curl http://127.0.0.1:11688/v1/chat/completions \
|
|
|
|
| 49 |
|
| 50 |
The format and the size are those of
|
| 51 |
[GreenBitAI/Ternary-Bonsai-2-27B-gbx](https://huggingface.co/GreenBitAI/Ternary-Bonsai-2-27B-gbx),
|
| 52 |
+
and so is the draft head in `mtp/`: it accepts as many of its proposals with this model as with
|
| 53 |
+
Bonsai 2, so the speed-up is the same. Decode speed in tokens/s on a Mac Studio (M2 Ultra),
|
| 54 |
+
greedy, 2,048 tokens generated:
|
| 55 |
+
|
| 56 |
+
| | code | maths | chat | prose | after a 33k-token prompt |
|
| 57 |
+
|---|---|---|---|---|---|
|
| 58 |
+
| without the draft head | 62 | 62 | 62 | 62 | 47 |
|
| 59 |
+
| `GBX_QWEN35_MTP=on` | **103** | **103** | **79** | **110** | **74** |
|
| 60 |
+
|
| 61 |
+
See the base card for prompt processing, memory and the DGX Spark.
|
| 62 |
|
| 63 |
## Requirements
|
| 64 |
|
|
|
|
| 81 |
|
| 82 |
The model and its draft head take about **10 GB** of memory, plus the conversation's cache.
|
| 83 |
|
| 84 |
+
It needs **gbx-lm v0.8.4 or later**, which keeps an agent's session cache across turns when the
|
| 85 |
+
client sends the model's reasoning back.
|
| 86 |
|
| 87 |
## Install
|
| 88 |
|
|
|
|
| 118 |
|
| 119 |
That serves an OpenAI-compatible API on port 11688, its default. The weights download on
|
| 120 |
first use into `~/.libra/cache/models`; set `HF_HOME` to put them elsewhere. Leave out
|
| 121 |
+
`GBX_QWEN35_MTP=on` to run without the draft head. A request that does not set its own
|
| 122 |
+
sampling gets the model's generation config (temperature 1.0, top-p 0.95, top-k 20), as in the
|
| 123 |
+
evaluation above.
|
| 124 |
+
|
| 125 |
+
**Thinking.** The scores above are with thinking on, which gbx-lm leaves off unless asked. For
|
| 126 |
+
agent work, turn it on for every request from the server side:
|
| 127 |
+
|
| 128 |
+
```bash
|
| 129 |
+
GBX_QWEN35_MTP=on GBX_ENABLE_THINKING=1 GBX_REASONING_EFFORT=medium gbx_lm --model GreenBitAI/Terza-27B-Agent-gbx
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
or per request with `"enable_thinking": true`. `reasoning_effort` takes `low`, `medium` or
|
| 133 |
+
`xhigh`, the template's default. On the hardest tasks the model can think for tens of thousands
|
| 134 |
+
of tokens before acting; `medium`, used above, or `low` keeps that shorter.
|
| 135 |
|
| 136 |
```bash
|
| 137 |
curl http://127.0.0.1:11688/v1/chat/completions \
|