Archived
New models. Recursive Flint (39.8B, about 2.5B active) by everplays (#422): `arch/flint`, as an IQ8R container with rotated int8 experts or a four-bit one, with a sink-aware WMMA prefill attention and the fused attention prologue at `rotary_dim` 0. Meta Muse Glimmer 30B by launch80_assets (#423): bf16, an int4 trunk or IQ8R, its windowed vision tower, its DFlash drafter, the ATEM tool dialect and context extension. Ling-3.0-tiny by RikshaDriver (#441): served from its GGUF releases or as IQ8R on `bailing_hybrid`, with six more libr3d kernels. Block FP8, MXFP4 and NVFP4 conversions of the three are not served. IQ8R containers of all three (round to nearest, no calibration) are on Hugging Face under StillDeadcode: flint-iq8r, muse-glimmer-30b-iq8r-dflash and ling-3.0-tiny-iq8r. They were checked for sane answers on two R9700; nothing was benchmarked, and Muse Glimmer's pictures, video and tool calls were not tried. Speech. Breeze-TTS-2 clones a voice from a reference recording and its transcript, with an optional delivery direction, by farcryjohn (#436). The published Breeze container needs converting again with the updated recipe before it can. Tools. A model entry with `diagnose: DIR` runs a fixed workload on the engine instead of serving and writes a report: step times, tokens a step, draft acceptance, TTFT and prefill rates by category, concurrency and prompt length, and with `diagnose-baseline` a token-for-token comparison against an earlier report (docs/DIAGNOSE.md), by Code000 (#418). Scheduler. `mixed-step-target-ms` holds a mixed prefill and decode step to a service time, off by default, by tnhnyzc (#413). `scheduler.stuck-exit` (60s by default, 0 never) ends the process when the device has advanced nothing for that long, so a restart policy brings a hung server back (#409, #415, #428). Fixed. Draft trees with the int8 KV cache, which stopped Gemma 4 31B with DFlash2 on its first request (#454, diagnosed by aelfwyne). The expert loan held at zero by a few leftover cache blocks after long sessions (#455, diagnosed by thekk1). The mapped tier's pages kept in the page cache across a load and a restore, by C_Tamas (#421). Replayed tool calls with blank arguments, and arguments that are not JSON refused naming the call, by dschmitz (#444). The dashboard's card temperature reads the junction sensor, by dschmitz (#453). The VRAM shortfall report says what the KL mode needs, by baKon (#448). The out-of-tree plugin test builds its plugins in parallel and takes its toolchain from the tree. Plugin ABI 40: out-of-tree plugins need to be rebuilt. Thanks to @everplays, @launch80_assets, @RikshaDriver, @farcryjohn, @Code000, @tnhnyzc, @C_Tamas, @dschmitz, @baKon, @aelfwyne and @thekk1.
71 lines
3.4 KiB
C++
71 lines
3.4 KiB
C++
/* Muse Glimmer's reply format: the ATEM channel protocol its chat template renders.
|
|
*
|
|
* The template's generation prompt ends at `<|start|>assistant`, so the model opens its own
|
|
* channels: `<to=self>` reasoning first, then the answer:
|
|
*
|
|
* to=self<|message|> ...reasoning... <|eom|><|start|>assistant to=user<|message|> ...answer...
|
|
*
|
|
* `reasoning_close` carries the whole channel transition, so the answer's own header is consumed
|
|
* with the reasoning block's close and the content begins at the answer's first byte. A reply
|
|
* that skips the reasoning opens on the answer's channel directly (`to=user<|message|> ...`);
|
|
* `content_open` names that header so it is dropped there too.
|
|
*
|
|
* Tool calls are the template's ATEM dialect, emitted as their own assistant turn whose channel
|
|
* names the tool (chat_template.jinja, render_atem):
|
|
*
|
|
* to=self<|message|> ...reasoning... <|eom|><|start|>assistant to=NAME<|message|>
|
|
* <atem:function_calls>
|
|
* <atem:invoke name="NAME">
|
|
* <atem:parameter name="k">value</atem:parameter>
|
|
* </atem:invoke>
|
|
* </atem:function_calls>
|
|
*
|
|
* String parameters are written raw, everything else as JSON (the template's `tojson`); the
|
|
* section opener is the constrained-decoding trigger, and it is also the reasoning break: a call
|
|
* turn's channel header names the tool rather than `user`, so the answer's `reasoning_close`
|
|
* does not match there and the reasoning block runs to the section, swallowing the `<|eom|>` and
|
|
* the header.
|
|
*/
|
|
#pragma once
|
|
#include "rad_builder.h"
|
|
|
|
namespace museglimmer {
|
|
|
|
inline const RadChatFormat* muse_chat_format() {
|
|
static const RadChatFormat f = [] {
|
|
RadChatFormat x{};
|
|
x.struct_size = sizeof(x);
|
|
x.name = "plugin:museglimmer";
|
|
x.reasoning_open = "to=self<|message|>";
|
|
x.reasoning_close = "<|eom|><|start|>assistant to=user<|message|>";
|
|
static const char* const kBreaks[] = {"<atem:function_calls>"};
|
|
x.reasoning_breaks = kBreaks;
|
|
x.n_reasoning_breaks = 1;
|
|
/* The model opens its own channel; the prompt carries none. */
|
|
x.reasoning_in_prompt = RAD_CHAT_THINK_NEVER;
|
|
x.content_open = "to=user<|message|>";
|
|
x.section_open = "<atem:function_calls>";
|
|
x.section_close = "</atem:function_calls>";
|
|
x.call_open = "<atem:invoke ";
|
|
x.name_prefix = "name=\"";
|
|
x.name_suffix = "\">";
|
|
x.call_end = "</atem:invoke>";
|
|
x.arg_prefix = "<atem:parameter name=\"";
|
|
x.arg_name_suffix = "\">";
|
|
x.arg_value_suffix = "</atem:parameter>";
|
|
x.string_value = RAD_CHAT_VALUE_RAW; /* the template writes string arguments raw */
|
|
x.other_value = RAD_CHAT_VALUE_JSON; /* booleans, numbers, arrays, objects as tojson */
|
|
x.value_newlines = 1;
|
|
/* No grammar triggers: the reference deployment (vLLM's --tool-call-parser muse) runs
|
|
* unconstrained and parses whatever the model writes. A trigger arms the lazy tool-call
|
|
* grammar, and with the DFlash drafter the trigger fires mid-verify -- inside drafted
|
|
* text -- at the reasoning-to-call boundary, which spins the sampler and loops the
|
|
* channel header (measured: drafter on = the header repeats 3-4x and the reply stalls;
|
|
* drafter off = one header, clean call). The streaming parser reads natural ATEM as
|
|
* it is. */
|
|
return x;
|
|
}();
|
|
return &f;
|
|
}
|
|
|
|
} /* namespace museglimmer */ |