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
+11
-3
@@ -113,8 +113,15 @@ int Ctx::prepare() {
|
||||
RAD_TRY(bind_routing());
|
||||
RAD_TRY(bind_profiling());
|
||||
/* Recorded passes need a recording backend, and are off whenever every issue must be seen:
|
||||
* per-op profile, oracle. */
|
||||
tape_on_ = record_passes_ && tape_supported() && !profiling_ && !oracle_;
|
||||
* per-op profile, oracle, and a calibration tap. A `gram_accum` sums across passes while its
|
||||
* plugin counts the rows it has summed in step and writes the Grams once a token target is
|
||||
* reached; a played pass reissues the accumulation without calling step, so the files would
|
||||
* hold more rows than their header says and be written late. */
|
||||
const bool taps = std::any_of(program_->ops.begin(), program_->ops.end(),
|
||||
[](const OpInfo& o) { return o.op == "gram_accum"; });
|
||||
tape_on_ = record_passes_ && tape_supported() && !profiling_ && !oracle_ && !taps;
|
||||
if (taps && record_passes_ && tape_supported() && rank_ == 0)
|
||||
RAD_INFO("recorded passes: off, the program accumulates calibration Grams (gram_accum)");
|
||||
return RAD_OK;
|
||||
}
|
||||
|
||||
@@ -264,7 +271,7 @@ int Ctx::bind_weights() {
|
||||
Program& P = *program_;
|
||||
w_tmpl_.assign(P.weights.size(), RadTensor{});
|
||||
w_bits_.assign(P.weights.size(), 0);
|
||||
waited_gen_.assign(P.weights.size(), UINT32_MAX);
|
||||
for (auto& g : waited_gen_) g.assign(P.weights.size(), UINT32_MAX);
|
||||
w_direct_.assign(P.weights.size(), 0);
|
||||
|
||||
for (size_t i = 1; i < P.weights.size(); ++i) {
|
||||
@@ -457,6 +464,7 @@ int Ctx::check_domain_layout(rad_op h, int domain, std::string* why) const {
|
||||
const int st = ki->layout ? ki->layout(ip.args.p, ip.args.n_p, opd, &w.enc, w.sel, t,
|
||||
w.n_sel, &L)
|
||||
: RAD_E_UNSUPPORTED;
|
||||
if (st == RAD_LAYOUT_ANY) continue; /* reads the bytes as they lie (rad_abi.h) */
|
||||
const std::string tag = st == RAD_OK ? (L.tag && *L.tag ? L.tag : ki->name)
|
||||
: std::string();
|
||||
if (st >= 0 || st == RAD_E_UNSUPPORTED) {
|
||||
|
||||
Reference in new issue
Block a user