Archived
merge origin/main: the upstream LoRA-runtime refactor beneath the ref2va port
Merges upstream 1.10.0 (152 commits: the LoRA acquire/runtime refactor, the
form-1 LTX-2 scheduler family, guidance terms + negative prompts, decoder
selection, input_reference, new architectures) into the ref2va port branch.
Resolution rule throughout: keep BOTH feature sets; ABI numbering follows
upstream (RAD_ABI_VERSION 26, RAD_FORMAT_VER 2), with the port's video fields
unioned into RadVideoGenBatch/RadVideoGenDecl and abi_layout_table.h
regenerated from the live table.
Notable reconciliations:
* videos.cpp: the task grammars are disjoint by capability -- keyframe tasks
(i2va/l2va/flash-attn l2va/fl2va) are recognized only when decl.encodes,
so upstream models keep refusing them as unknown tasks; input_reference,
the LoRA tag/field pipeline, and the guidance/negative_prompt rendering
coexist with refs/ref2va; the prompt put() helper hoisted to block scope
for the media branch.
* video_schedule(): upstream's (steps, video_tokens, refine) keeps its
positional slots; the port's shift_video/shift_audio overrides move to the
tail so upstream's schedule tests call unchanged.
* r4d_selftest conv3d cases: the port's sp/st/causal/down/refl geometry and
upstream's tpad/tpre fold into one reference (ft = causal ? 2 : tpad==2 ?
2+tpre : 1); rms_mod rows keep the port's i8/fp8 quant modes alongside
upstream's wadd/norm_once/norm parameters.
* tests/oot_plugins.sh: the per-plugin cmake --install gains a --prefix
staging dir -- plugin .so files still land in the absolute
RAD_PLUGIN_INSTALL_HOME, but libr4d now also installs r4d_selftest to a
relative bin/, which needs no root.
Host ctest: 112/113 (mm_test's webp gap pre-exists this merge); r4d_selftest,
engine_e2e, oot_plugins, abi_layout, all LoRA tests green.
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
commit
a1a75da7e9
415 files changed
+78837
-5310
No files matched your search
@@ -144,6 +144,8 @@ struct FakeChatTemplate : IChatTemplate {
|
||||
if (!tools.empty()) s += "[tools:" + std::to_string(tools.size()) + "]";
|
||||
if (!opt.enable_thinking) s += "[nothink]";
|
||||
for (const auto& kv : opt.template_kwargs) s += "[" + kv.first + "=" + kv.second + "]";
|
||||
if (!default_effort.empty() && !opt.template_kwargs.count("reasoning_effort"))
|
||||
s += "[reasoning_effort=" + default_effort + "]";
|
||||
size_t n_msg = 0;
|
||||
int tool_msgs = 0;
|
||||
for (const auto& m : messages) {
|
||||
@@ -203,6 +205,8 @@ struct FakeChatTemplate : IChatTemplate {
|
||||
std::string refusal;
|
||||
std::string refuse_kwarg;
|
||||
std::vector<std::string> efforts; /* JSON text, as the template context carries them */
|
||||
/* The effort a render naming none is written as, as Qwen3.8's template writes xhigh. */
|
||||
std::string default_effort;
|
||||
/* The reasoning block a render reports. FakeTokenizer makes a one-byte marker one token. */
|
||||
std::string think_open, think_close;
|
||||
bool think_starts_open = false;
|
||||
@@ -632,6 +636,14 @@ struct FakeImageGen : IImageGen {
|
||||
}
|
||||
int64_t queued() const override { return 0; }
|
||||
int64_t running() const override { return 0; }
|
||||
/* The second tokenizer: one id a byte, then 1 (an end token). */
|
||||
int encode_aux(const std::string& text, std::vector<int32_t>* out) const override {
|
||||
if (!inf.aux_tokens) return RAD_E_UNSUPPORTED;
|
||||
out->clear();
|
||||
for (unsigned char c : text) out->push_back(100 + c);
|
||||
out->push_back(1);
|
||||
return RAD_OK;
|
||||
}
|
||||
};
|
||||
|
||||
/* An audio generator that finishes every request on submit: `windows` windows of `per_window`
|
||||
|
||||
Reference in new issue
Block a user