Repository navigation
v0.10.21
JSON answers to requests with images or video now follow the requested format, Qwen JSON answers keep room for the answer after thinking, cap whitespace outside strings, and follow the JSON grammar when a request names a tool choice but no tools, Bonsai 2 9B JSON answers follow the requested format, tool requests that think on Inkling 2 Mini and Gemma 4 can hold their thought until their first call (opt-in), Qwen 3.6 tool calls read a parameter that admits only null as null, and several new switches are added off by default, among them two Qwen 3.6 tool-call opt-ins. Update with darkbloom update.
Upgrade notes
- JSON answers to requests with images or video, on by default. A request with a JSON
response_format
(json_objectorjson_schema) that also carries images or video was served without the JSON grammar on every
model, so its answer could be prose, a fenced block or JSON that breaks its schema. It now takes the same grammar as
a text request: on Gemma 4 and on the Qwen 3.5 / 3.6 / 3.8 models (and the other Qwen-family JSON-answer models),
the answer is one JSON value of the requested format, with the same end checks. GLM-5.3-Flash keeps its own media
handling. Requests the grammar does not cover (for example with clientstopsequences, or media on a cluster pair)
are served as before. A hardware smoke on a bench Mac, of a development build with the same changes, passed on
Gemma 4 26B and Qwen 3.5 9B: with it on, all 96 image requests per model (json_objectandjson_schema, streamed
and not) returned valid JSON. On Gemma 4 its prompts were answered validly with it off too. It checked that the
answers are valid, not their speed or quality, and the MoE Qwen models (Qwen 3.5 35B, Qwen 3.6 35B) were not part of
it. Its known cost: a request under the grammar does not draft ahead, as on the text path.DARKBLOOM_JSON_ANSWERS_MEDIA=0serves these requests as in 0.10.20. - Qwen JSON answers keep room for the answer after thinking, on by default. A Qwen 3.5, 3.6 or 3.8 request with a
JSONresponse_formatand thinking on could spend all ofmax_tokensthinking and end aslengthwith no JSON at
all. Such a thought now ends once only half the output, 64 to 256 tokens, is left, and the model writes its JSON
answer in that room; withmax_tokens65 or less, the thought ends at its first token. Requests with thinking off
are unchanged.DARKBLOOM_QWEN_JSON_ANSWER_RESERVE=0lets the thought use the whole budget again. - Qwen JSON requests that name a tool choice but no tools follow the grammar, on by default. A Qwen JSON request
that declares no tools but namestool_choiceautoornone, or namestool_choicenone(whose tools are
dropped from the prompt), is now held to the JSON grammar like a request without atool_choice. Before, it was
guided by the prompt only.DARKBLOOM_QWEN_JSON_TOOL_FREE_CHOICES=0keeps such requests prompt-only. - These two passed a hardware smoke on a bench Mac, of a development build with the same changes, on Qwen 3.6 35B and
Qwen 3.8 27B: valid JSON of the requested schema, including a request whose thought was closed early to leave room
for the answer and one Qwen 3.6 image request. It checked that the answers are valid, not their speed or quality, and
Qwen 3.5 35B and Qwen 3.5 9B were not part of it. - Qwen JSON answers no longer fill their budget with blank lines, on by default. A Qwen 3.5, 3.6 or 3.8 answer to a
JSONresponse_formatrequest could keep writing newlines or spaces when the model reached for something the JSON
grammar refuses, such as a code fence before or after the value, until it hitmax_tokens. Whitespace outside
strings now runs at most 64 bytes, as on Gemma 4, and a finished object, array or string is followed by the end of
the answer only.DARKBLOOM_QWEN_JSON_WHITESPACE_CAP=0restores unbounded whitespace. It passed a second hardware
smoke of the same development build on Qwen 3.6 35B and Qwen 3.8 27B, after the first was too noisy to decide: valid
JSON of the requested schema, no whitespace run over 64 bytes, a string value of 65 spaces kept whole, and decode
speed within the smoke's 10 % bound of it off. The smoke did not show the cap stopping a runaway answer. - Qwen JSON answers on images use the same defaults (cap and reserve on); the image row passed.
- Bonsai 2 9B JSON answers follow the requested format, on by default. A Bonsai 2 9B request with a JSON
response_formatwas guided by the prompt only. These answers are now held to the JSON grammar, as the Bonsai 2
27B's already are, on a single Mac and when thinking is off (the default). While such an answer is decoding, the
requests that share its decode step do not use speculative decoding.DARKBLOOM_BONSAI9B_JSON_ANSWERS=0restores
prompt-only answers. It passed a hardware smoke of the same development build on the 9B as served on a third
pre-stated run, after the first two could not confirm the drafting setup, with drafting inactive by configuration
(no draft model configured or staged): valid JSON of the requested schema and decode speed
within the smoke's 10 % bound of it off. It checked validity and speed, not answer quality. - Inkling 2 Mini tool requests can hold a shown thought until their first call (opt-in, off by default). With
DARKBLOOM_INKLING_TOOL_REASONING_HOLD=1(ortrue,yes,on), an Inkling 2 Minitool_choiceautorequest
that declares tools and shows its reasoning holds its thought until its first call or answer byte, then sends it in
one piece just before the call or answer. A call that breaks the request's declaration is then refused with nothing
sent, and Darkbloom can retry the request on another Mac. The thought still goes out 4 seconds before the request's
first-content deadline, or 8 seconds after the stream starts, whichever is sooner. Only requests from the
coordinator hold; requests with logprobs, with reasoning withheld, or with a forced or no tool choice are unchanged.
It is off because holding delays the first visible chunk of those requests (the bench measurement is in the
changelog). Unset, the thought streams at once, as in 0.10.20. - Gemma 4 tool requests that think can hold their thought until their first call (opt-in, off by default). With
DARKBLOOM_GEMMA_TOOL_REASONING_HOLD=1(oron,true,yes), a Gemma 4tool_choiceautorequest that
declares tools holds its thought until the first byte past it, then sends it in one piece just before the call or
answer, so a call that breaks the tool's declared schema is refused with nothing sent and Darkbloom retries the
request on another Mac. The same 4-second / 8-second limits apply, and a response that opens no thought is not held.
Only requests from the coordinator hold; requests with logprobs or with a forced or no tool choice are unchanged. It
is off because a held thought delays the response's first byte until the thought ends; it has not been measured on
Gemma 4. - Qwen 3.6 tool calls read a parameter that admits only null as null, on by default for Qwen 3.6. A parameter
that admits onlynullthroughenum: [null](directly or through a local$ref), or an OpenAIstrictnullable
enum, kept a model'snullas the text"null"on Qwen 3.6's XML tool calls, so the returned call broke the
caller's schema, or astrictcall was refused. Such a parameter now reads as null onqwen3.6-35b-a3band
qwen3.6-35b-a3b-vl-mtp-mxfp8; other models are not measured and stay off unless the switch is set. Measured on a
signed development build, on Qwen 3.6 35B: 341 paired tool-call requests, schema violations 8 with it off and 0 with
it on.DARKBLOOM_TOOL_ARGUMENT_NULLS=0turns it off for Qwen 3.6 too;=1
turns it on for every model. - The opt-in early answer: Nemotron Super keeps the old order. Under
DARKBLOOM_PREFIX_CACHE_SSD_TERMINAL_BEFORE_PUBLICATION=1(still off by default), Nemotron Super now keeps the old
order too, as seeded requests and engines on the native tracked profile (GLM-5.3-Flash, MiMo) do, and when an
answered request has not retired 60 s after its answer, one warning is logged with the number of such requests and
the oldest one's age. The architecture document says this order applies "without the variable" where it should say
"when the variable is not affirmative"; that wording is fixed in the next release. - New and off by default: a Gemma 4
autotool call refused by its check can be served once more on the same Mac
as arequiredcall (DARKBLOOM_GEMMA_AUTO_CALL_RETRY); the tool-call check can assert string argument formats
(DARKBLOOM_TOOL_ARGUMENT_FORMATS); Gemma 4 image preparation can run on its own GPU stream
(DARKBLOOM_GEMMA_MEDIA_PREP_STREAM); Inkling 2 Mini can render a system message sent mid-conversation as a user
turn (DARKBLOOM_INKLING_LATER_SYSTEM_AS_USER); decode can submit its graph a few layers at a time
(DARKBLOOM_GEMMA_LAYER_SUBMITfor Gemma 4 on an M5 Ultra,DARKBLOOM_CBV2_LAYER_SUBMIT=Nfor every model); Qwen
3.5 and 3.6 MTP can draft for several requests at once (DARKBLOOM_QWEN_MTP_MAX_BATCH); and Gemma 4 decode on M5
Macs can use checked fused kernels that keep the output bits (DARKBLOOM_GEMMA4_FUSED_NORMS). Two more tool-call
switches are off unless set: Qwen 3.6 35B strict tool calls can take a typed null for a direct
string-or-null choice the parser has verified (DARKBLOOM_QWEN36_STRICT_NULLABLE_CHOICE=1); and with started-call
leniency off (DARKBLOOM_STRICT_CALLS_AS_GENERATED=0), a text-only streaming caller that declares a strict function
receives each Qwen 3.6 35B call after validation, and a refused call sends no tool name or arguments. Their
switch-on paths were not measured on a signed build before release. Unset, each behaves as in 0.10.20. The Gemma 4
auto-call retry stays off because its A/B was inconclusive (no refusals in the test
set).
Gemma 4's early layer submission stays off because its A/B had no verdict; the process-wide form is not measured. - SDK fixes: the SDK's Gemma 4 tool-call parser keeps declared object keys (keys with commas included) and
arguments inside nested nullable containers; its Qwen XML parser reads parameters through local schema references
and keeps integer values of maps declared with integeradditionalProperties; and Gemma 4 text checkpoints restore
on the same prefill boundaries as a cold prefill. Gemma 4 speculative decoding was checked on signed development
builds with every switch unset: decode speed matched the previous build at each SDK step (within 0.5 %), and on the
final build drafts were proposed and accepted in both compared builds. - Pairs: both Macs of a pair must run the same version; a pair on 0.10.20 updates itself.
darkbloom update --rollbackputs back 0.10.20.
For operators: the switches
Set the variable before darkbloom start, then restart; the installed service keeps it.
| Variable | Default | What it does |
|---|---|---|
DARKBLOOM_JSON_ANSWERS_MEDIA=0 |
on | JSON answers to requests with images or video are served without the grammar, as in 0.10.20 |
DARKBLOOM_QWEN_JSON_ANSWER_RESERVE=0 |
on | A Qwen JSON answer's thought may use the whole max_tokens, as in 0.10.20 |
DARKBLOOM_QWEN_JSON_TOOL_FREE_CHOICES=0 |
on | Qwen JSON requests that name a tool choice but no tools are guided by the prompt only, as in 0.10.20 |
DARKBLOOM_QWEN_JSON_WHITESPACE_CAP=0 |
on | Whitespace outside strings in Qwen JSON answers is not capped, as in 0.10.20 |
DARKBLOOM_BONSAI9B_JSON_ANSWERS=0 |
on | Bonsai 2 9B JSON answers are guided by the prompt only, as in 0.10.20 |
DARKBLOOM_INKLING_TOOL_REASONING_HOLD=1 |
off | Turns the Inkling 2 Mini tool-request reasoning hold on |
DARKBLOOM_GEMMA_TOOL_REASONING_HOLD=1 |
off | Turns the Gemma 4 tool-request reasoning hold on |
DARKBLOOM_TOOL_ARGUMENT_NULLS=0 |
on for Qwen 3.6 | Qwen 3.6 tool calls keep a null-only parameter's null as text, as in 0.10.20 (=1 turns it on for every model) |
DARKBLOOM_PREFIX_CACHE_SSD_TERMINAL_BEFORE_PUBLICATION=1 |
off | Ends a response once its answer is complete, before its SSD checkpoint is written (not on Nemotron Super) |
DARKBLOOM_GEMMA_AUTO_CALL_RETRY=1 |
off | Serves a refused Gemma 4 auto tool call once more on the same Mac, as a required call |
DARKBLOOM_TOOL_ARGUMENT_FORMATS=1 |
off | The tool-call check also asserts string argument formats (date-time, date, time, email, uuid, ipv4, uri) |
DARKBLOOM_GEMMA_MEDIA_PREP_STREAM=1 |
off | Gemma 4 image and video preparation runs on its own GPU stream |
DARKBLOOM_INKLING_LATER_SYSTEM_AS_USER=1 |
off | Inkling 2 Mini renders a system message sent mid-conversation as a user turn |
DARKBLOOM_GEMMA_LAYER_SUBMIT=1 |
off | Gemma 4 26B decode on an M5 Ultra submits its graph a few layers at a time |
DARKBLOOM_CBV2_LAYER_SUBMIT=N |
off | Every model's decode submits its graph every N attention layers (DARKBLOOM_CBV2_LAYER_SUBMIT_PREFILL=1 also with prompt work) |
DARKBLOOM_QWEN_MTP_MAX_BATCH=2 (up to 8) |
off | That many Qwen 3.5 / 3.6 requests draft and verify together |
DARKBLOOM_GEMMA4_FUSED_NORMS=1 |
off | Gemma 4 decode on M5 Macs uses checked fused kernels that keep the output bits |
DARKBLOOM_QWEN36_STRICT_NULLABLE_CHOICE=1 |
off | Qwen 3.6 35B strict tool calls take a typed null for a verified direct string-or-null choice |
DARKBLOOM_STRICT_CALLS_AS_GENERATED=0 |
on | With it off, Qwen 3.6 35B strict calls stream to text-only callers only after validation |
The full technical changelog is in CHANGELOG.md.
Provider v0.10.21 (Swift CLI)
Source: ef79022
Build and SDK qualification: https://github.com/Layr-Labs/d-inference/actions/runs/47273368954
Signing: https://github.com/Layr-Labs/d-inference/actions/runs/47273368954
Binary SHA-256: b7a9c41e039485bb5b02f4acab7596cefb7922d09fc26fedab3281f6a63ff009
CodeDirectory SHA-256: 4178898b38992ea692380fef0a27f8fc0a9c1fd70e2a59771f571faa113204c8
Bundle SHA-256: 8182b9ae2612cb44af453f969efaddf6ebd40f2bca856295191b3706d9023451
Metallib SHA-256: 5b97893cc20e6e9651edf3284d970488af9a9bdd64820231e95fee760eec70ac
Signed and notarized: yes
macOS deployment target: 14.0 (build, tests and signed runtime smoke: macOS 27)
Install
curl -fsSL https://api.darkbloom.dev/install.sh | bashFull Changelog: v0.10.20...v0.10.21