Archived
radiance 2.1.0
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.
This commit is contained in:
1 parent
ddcb9c69bb
commit
2a2b756371
166 files changed
+20749
-327
No files matched your search
@@ -311,6 +311,60 @@ TEST(a_cloning_model_takes_references_as_clips_and_transcripts_in_its_prompt) {
|
||||
}
|
||||
|
||||
/* ================================================================== the response */
|
||||
TEST(breeze_cloning_uses_one_reference_and_direction_is_opt_in) {
|
||||
if (!mm::decoder_available()) { SKIP("audio decoder unavailable"); return; }
|
||||
Speech s;
|
||||
auto& info = s.gen.inf;
|
||||
info.max_prompt = 512;
|
||||
info.tmpl_plain = "<bos>[S0]{input}";
|
||||
info.tmpl = "<bos>[S0]<ins_bos>{instructions}<ins_eos>{input}";
|
||||
info.neg_tmpl = info.tmpl_plain;
|
||||
info.tmpl_ref = "{references}<bos>[S0]{input}";
|
||||
info.ref_item = "<bos>[S0]{text}{audio}<|audio_eos|>";
|
||||
info.ref_rate = 24000;
|
||||
info.ref_hop = 1920;
|
||||
info.ref_max_samples = 240000;
|
||||
info.ref_max = 1;
|
||||
info.branches = 2;
|
||||
info.default_steps = 0;
|
||||
const std::string wav = wav_of(std::vector<int16_t>(2000, 1000), 24000);
|
||||
const std::string audio = base64_encode((const uint8_t*)wav.data(), wav.size());
|
||||
const json ref = {{"audio", audio}, {"text", "reference words"}};
|
||||
json body = {{"input", "new words"}, {"references", json::array({ref})}, {"guidance_scale", 1}};
|
||||
CHECK_EQ(s.post(body).status, 200);
|
||||
const auto& q = s.last();
|
||||
CHECK_EQ(q.ref_audio.size(), (size_t)3840);
|
||||
CHECK_EQ(q.ref_cu.size(), (size_t)2);
|
||||
CHECK_EQ(std::count_if(q.ref_frame.begin(), q.ref_frame.end(), [](int v) { return v >= 0; }), 2);
|
||||
CHECK_EQ(q.ref_frame.size(), q.tokens.size());
|
||||
CHECK_EQ(q.cfg, 1.0f);
|
||||
body["guidance_scale"] = 4;
|
||||
CHECK_EQ(s.refused(body), std::string("guidance_scale"));
|
||||
body["guidance_scale"] = 1;
|
||||
body["instructions"] = "a different voice";
|
||||
CHECK_EQ(s.refused(body), std::string("instructions"));
|
||||
info.tmpl_ref_instruct = "{references}<bos>[S0]<ins_bos>{instructions}<ins_eos>{input}";
|
||||
info.neg_tmpl_ref = info.tmpl_ref;
|
||||
body["guidance_scale"] = 4;
|
||||
CHECK_EQ(s.post(body).status, 200);
|
||||
const auto& directed = s.last();
|
||||
CHECK_EQ(directed.cfg, 4.0f);
|
||||
CHECK_EQ(directed.neg_ref_frame.size(), directed.neg_tokens.size());
|
||||
CHECK_EQ(std::count(directed.ref_frame.begin(), directed.ref_frame.end(), 0), 1);
|
||||
CHECK_EQ(std::count(directed.neg_ref_frame.begin(), directed.neg_ref_frame.end(), 0), 1);
|
||||
CHECK(directed.tokens.size() > directed.neg_tokens.size());
|
||||
const auto text_of = [](const std::vector<int32_t>& ids) {
|
||||
std::string text; for (int32_t i : ids) if (i) text.push_back((char)i); return text;
|
||||
};
|
||||
CHECK(has(text_of(directed.tokens), "<ins_bos>a different voice<ins_eos>new words"));
|
||||
CHECK(!has(text_of(directed.neg_tokens), "a different voice"));
|
||||
CHECK(has(text_of(directed.neg_tokens), "reference words"));
|
||||
body.erase("instructions");
|
||||
body["references"].push_back(ref);
|
||||
CHECK_EQ(s.refused(body), std::string("references"));
|
||||
body["references"] = json::array({{{"audio", audio}, {"text", " "}}});
|
||||
CHECK_EQ(s.refused(body), std::string("references[0].text"));
|
||||
}
|
||||
|
||||
/* The whole piece: the windows in order whatever order they were played in, as a WAV whose header
|
||||
* states the rate, channels and length, or as the same samples raw. */
|
||||
|
||||
Reference in new issue
Block a user