yanghaojin commited on
Commit
69c0804
·
verified ·
1 Parent(s): 8eba22c

Card: public, measured draft-head speed, thinking on, gbx-lm v0.8.4 or later

Browse files
Files changed (1) hide show
  1. README.md +26 -7
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 decode and prompt-processing speed and memory without the draft head are the same as
53
- there -- see its card for the measurements. The draft head in `mtp/` is that repository's,
54
- unchanged; its acceptance rate with this model has not been measured yet, so the speed-up with
55
- `GBX_QWEN35_MTP=on` may differ from the base card's.
 
 
 
 
 
 
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
- This repository is private: the machine that downloads it needs Hugging Face credentials
79
- with read access to it.
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 \