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
@@ -1,8 +1,8 @@
|
||||
/* abi_layout_table.h -- every abi/ struct's size and field offsets at RAD_ABI_VERSION 24 and
|
||||
/* abi_layout_table.h -- every abi/ struct's size and field offsets at RAD_ABI_VERSION 26 and
|
||||
* RAD_FORMAT_VER 2, as { type, field, offset, size } rows ("" is the struct itself). A snapshot
|
||||
* of the headers on x86-64 Linux, which abi_layout_test.cpp holds the layout to; regenerate it
|
||||
* from the test's printout only together with a version bump. */
|
||||
{ "RadArchProbe", "", 0, 72 },
|
||||
{ "RadArchProbe", "", 0, 80 },
|
||||
{ "RadArchProbe", "draft_depth", 0, 4 },
|
||||
{ "RadArchProbe", "draft_depth_fixed", 4, 4 },
|
||||
{ "RadArchProbe", "shape_probe_ok", 8, 4 },
|
||||
@@ -13,6 +13,8 @@
|
||||
{ "RadArchProbe", "gen_audio", 48, 4 },
|
||||
{ "RadArchProbe", "gen_ctx", 56, 8 },
|
||||
{ "RadArchProbe", "gen_video", 64, 4 },
|
||||
{ "RadArchProbe", "kv_quant_ok", 68, 4 },
|
||||
{ "RadArchProbe", "chain_pays", 72, 4 },
|
||||
{ "RadArgs", "", 0, 64 },
|
||||
{ "RadArgs", "t", 0, 8 },
|
||||
{ "RadArgs", "n_t", 8, 4 },
|
||||
@@ -79,7 +81,7 @@
|
||||
{ "RadBufDecl", "domain", 60, 4 },
|
||||
{ "RadBufDecl", "derive", 64, 8 },
|
||||
{ "RadBufDecl", "kv", 72, 4 },
|
||||
{ "RadBuildCtx", "", 0, 104 },
|
||||
{ "RadBuildCtx", "", 0, 120 },
|
||||
{ "RadBuildCtx", "rank", 0, 4 },
|
||||
{ "RadBuildCtx", "world_size", 4, 4 },
|
||||
{ "RadBuildCtx", "max_tok", 8, 8 },
|
||||
@@ -96,6 +98,8 @@
|
||||
{ "RadBuildCtx", "max_out_rows", 80, 8 },
|
||||
{ "RadBuildCtx", "max_audio_frames", 88, 8 },
|
||||
{ "RadBuildCtx", "max_mixed_tok", 96, 8 },
|
||||
{ "RadBuildCtx", "kv_quant", 104, 4 },
|
||||
{ "RadBuildCtx", "cvec", 112, 8 },
|
||||
{ "RadAudioGenBatch", "", 0, 264 },
|
||||
{ "RadAudioGenBatch", "n_lane", 0, 8 },
|
||||
{ "RadAudioGenBatch", "lane", 8, 8 },
|
||||
@@ -164,6 +168,11 @@
|
||||
{ "RadAudioGenDecl", "first_frame", 204, 4 },
|
||||
{ "RadAudioGenDecl", "voc_chunk", 208, 8 },
|
||||
{ "RadAudioGenDecl", "voc_context", 216, 8 },
|
||||
{ "RadControlVector", "", 0, 32 },
|
||||
{ "RadControlVector", "dir", 0, 8 },
|
||||
{ "RadControlVector", "scales", 8, 8 },
|
||||
{ "RadControlVector", "n_embd", 16, 8 },
|
||||
{ "RadControlVector", "n_layers", 24, 8 },
|
||||
{ "RadAudioFormat", "", 0, 72 },
|
||||
{ "RadAudioFormat", "struct_size", 0, 4 },
|
||||
{ "RadAudioFormat", "audio_open", 8, 8 },
|
||||
@@ -313,7 +322,7 @@
|
||||
{ "RadFuseStep", "n_p", 584, 4 },
|
||||
{ "RadFuseStep", "from", 588, 32 },
|
||||
{ "RadFuseStep", "n_from", 620, 4 },
|
||||
{ "RadGenBatch", "", 0, 224 },
|
||||
{ "RadGenBatch", "", 0, 408 },
|
||||
{ "RadGenBatch", "rows", 0, 8 },
|
||||
{ "RadGenBatch", "src", 8, 8 },
|
||||
{ "RadGenBatch", "rope", 16, 8 },
|
||||
@@ -344,7 +353,31 @@
|
||||
{ "RadGenBatch", "dec_height", 212, 4 },
|
||||
{ "RadGenBatch", "dec_width", 216, 4 },
|
||||
{ "RadGenBatch", "dec_preview", 220, 4 },
|
||||
{ "RadGeneratorDecl", "", 0, 248 },
|
||||
{ "RadGenBatch", "branch", 224, 4 },
|
||||
{ "RadGenBatch", "n_pad", 228, 4 },
|
||||
{ "RadGenBatch", "valid_cu", 232, 8 },
|
||||
{ "RadGenBatch", "n_img", 240, 8 },
|
||||
{ "RadGenBatch", "img_cu", 248, 8 },
|
||||
{ "RadGenBatch", "img_rows", 256, 8 },
|
||||
{ "RadGenBatch", "mode_cu", 264, 8 },
|
||||
{ "RadGenBatch", "rope_f", 272, 8 },
|
||||
{ "RadGenBatch", "mode_rows", 280, 8 },
|
||||
{ "RadGenBatch", "mode_src", 288, 8 },
|
||||
{ "RadGenBatch", "mode_ccu", 296, 8 },
|
||||
{ "RadGenBatch", "n_mode_h", 304, 8 },
|
||||
{ "RadGenBatch", "mode_rope_f", 312, 8 },
|
||||
{ "RadGenBatch", "n_aux", 320, 8 },
|
||||
{ "RadGenBatch", "aux_ids", 328, 8 },
|
||||
{ "RadGenBatch", "aux_cu", 336, 8 },
|
||||
{ "RadGenBatch", "sigma_prev", 344, 8 },
|
||||
{ "RadGenBatch", "timestep", 352, 8 },
|
||||
{ "RadGenBatch", "sampler", 360, 8 },
|
||||
{ "RadGenBatch", "step", 368, 8 },
|
||||
{ "RadGenBatch", "size_px", 376, 8 },
|
||||
{ "RadGenBatch", "entry_h", 384, 8 },
|
||||
{ "RadGenBatch", "tokens_h", 392, 8 },
|
||||
{ "RadGenBatch", "cond_opts", 400, 4 },
|
||||
{ "RadGeneratorDecl", "", 0, 376 },
|
||||
{ "RadGeneratorDecl", "name", 0, 8 },
|
||||
{ "RadGeneratorDecl", "layout", 8, 4 },
|
||||
{ "RadGeneratorDecl", "tmpl_text", 16, 8 },
|
||||
@@ -377,6 +410,29 @@
|
||||
{ "RadGeneratorDecl", "default_cfg", 224, 8 },
|
||||
{ "RadGeneratorDecl", "max_lanes", 232, 8 },
|
||||
{ "RadGeneratorDecl", "image_out", 240, 4 },
|
||||
{ "RadGeneratorDecl", "cond_rows", 248, 8 },
|
||||
{ "RadGeneratorDecl", "rope_hw_scale", 256, 8 },
|
||||
{ "RadGeneratorDecl", "rope_text_l", 264, 4 },
|
||||
{ "RadGeneratorDecl", "pad_multiple", 268, 4 },
|
||||
{ "RadGeneratorDecl", "pad_token", 272, 4 },
|
||||
{ "RadGeneratorDecl", "cfg_original", 276, 4 },
|
||||
{ "RadGeneratorDecl", "default_negative", 280, 8 },
|
||||
{ "RadGeneratorDecl", "ref_shrink_only", 288, 4 },
|
||||
{ "RadGeneratorDecl", "aux_max_tokens", 296, 8 },
|
||||
{ "RadGeneratorDecl", "sigma_grid", 304, 4 },
|
||||
{ "RadGeneratorDecl", "min_tokens", 308, 4 },
|
||||
{ "RadGeneratorDecl", "aux_tokens", 312, 4 },
|
||||
{ "RadGeneratorDecl", "beta_start", 320, 8 },
|
||||
{ "RadGeneratorDecl", "beta_end", 328, 8 },
|
||||
{ "RadGeneratorDecl", "train_steps", 336, 4 },
|
||||
{ "RadGeneratorDecl", "beta_schedule", 340, 4 },
|
||||
{ "RadGeneratorDecl", "zero_snr", 344, 4 },
|
||||
{ "RadGeneratorDecl", "samplers", 348, 4 },
|
||||
{ "RadGeneratorDecl", "default_sampler", 352, 4 },
|
||||
{ "RadGeneratorDecl", "default_scheduler", 356, 4 },
|
||||
{ "RadGeneratorDecl", "chunk_tokens", 360, 4 },
|
||||
{ "RadGeneratorDecl", "chunk_bos", 364, 4 },
|
||||
{ "RadGeneratorDecl", "chunk_eos", 368, 4 },
|
||||
{ "RadKVGroupBatch", "", 0, 72 },
|
||||
{ "RadKVGroupBatch", "group", 0, 4 },
|
||||
{ "RadKVGroupBatch", "slot_mapping", 8, 8 },
|
||||
@@ -588,7 +644,7 @@
|
||||
{ "RadTunable", "n_values", 16, 4 },
|
||||
{ "RadTunable", "deflt", 24, 8 },
|
||||
{ "RadTunable", "doc", 32, 8 },
|
||||
{ "RadVideoGenBatch", "", 0, 280 },
|
||||
{ "RadVideoGenBatch", "", 0, 320 },
|
||||
{ "RadVideoGenBatch", "lane", 0, 4 },
|
||||
{ "RadVideoGenBatch", "geom", 4, 24 },
|
||||
{ "RadVideoGenBatch", "geom_d", 32, 8 },
|
||||
@@ -623,7 +679,13 @@
|
||||
{ "RadVideoGenBatch", "ref_tab", 256, 8 },
|
||||
{ "RadVideoGenBatch", "mod_cu", 264, 8 },
|
||||
{ "RadVideoGenBatch", "sampler", 272, 4 },
|
||||
{ "RadVideoGenDecl", "", 0, 784 },
|
||||
{ "RadVideoGenBatch", "n_neg", 276, 4 },
|
||||
{ "RadVideoGenBatch", "guidance_h", 280, 8 },
|
||||
{ "RadVideoGenBatch", "image", 288, 8 },
|
||||
{ "RadVideoGenBatch", "has_image", 296, 4 },
|
||||
{ "RadVideoGenBatch", "guidance", 304, 8 },
|
||||
{ "RadVideoGenBatch", "decoder", 312, 4 },
|
||||
{ "RadVideoGenDecl", "", 0, 1008 },
|
||||
{ "RadVideoGenDecl", "name", 0, 8 },
|
||||
{ "RadVideoGenDecl", "tmpl", 8, 8 },
|
||||
{ "RadVideoGenDecl", "max_text", 16, 8 },
|
||||
@@ -725,6 +787,30 @@
|
||||
{ "RadVideoGenDecl", "dbg_vd_n_bytes", 760, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_pix", 768, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_pix_bytes", 776, 8 },
|
||||
{ "RadVideoGenDecl", "sched_kind", 784, 4 },
|
||||
{ "RadVideoGenDecl", "dyn_shift", 788, 4 },
|
||||
{ "RadVideoGenDecl", "base_shift", 792, 8 },
|
||||
{ "RadVideoGenDecl", "max_shift", 800, 8 },
|
||||
{ "RadVideoGenDecl", "base_seq", 808, 8 },
|
||||
{ "RadVideoGenDecl", "max_seq", 816, 8 },
|
||||
{ "RadVideoGenDecl", "shift_terminal", 824, 8 },
|
||||
{ "RadVideoGenDecl", "n_refine_rungs", 832, 4 },
|
||||
{ "RadVideoGenDecl", "refine_rungs", 840, 8 },
|
||||
{ "RadVideoGenDecl", "step_text_rows", 848, 8 },
|
||||
{ "RadVideoGenDecl", "guidance", 856, 4 },
|
||||
{ "RadVideoGenDecl", "guidance_default", 864, 64 },
|
||||
{ "RadVideoGenDecl", "default_negative", 928, 8 },
|
||||
{ "RadVideoGenDecl", "image_cond", 936, 4 },
|
||||
{ "RadVideoGenDecl", "image_crf", 940, 4 },
|
||||
{ "RadVideoGenDecl", "text_left_pad", 944, 8 },
|
||||
{ "RadVideoGenDecl", "audio_streams", 952, 4 },
|
||||
{ "RadVideoGenDecl", "upscale_exact", 956, 4 },
|
||||
{ "RadVideoGenDecl", "duration_out", 960, 4 },
|
||||
{ "RadVideoGenDecl", "duration_min", 968, 8 },
|
||||
{ "RadVideoGenDecl", "duration_max", 976, 8 },
|
||||
{ "RadVideoGenDecl", "duration_dtype", 984, 4 },
|
||||
{ "RadVideoGenDecl", "decoders", 992, 8 },
|
||||
{ "RadVideoGenDecl", "decoder_max_area", 1000, 8 },
|
||||
{ "RadVideoGeom", "", 0, 24 },
|
||||
{ "RadVideoGeom", "n_text", 0, 4 },
|
||||
{ "RadVideoGeom", "frames", 4, 4 },
|
||||
|
||||
Reference in new issue
Block a user