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
+22
-6
@@ -70,7 +70,17 @@ int avx_par_force(int threads);
|
||||
#define AVX_OP_LIST(X) \
|
||||
/* ---- elementwise and norms */ \
|
||||
X(rmsnorm) X(rmsnorm_p) X(rmsnorm_add) X(hc_enter) \
|
||||
X(hc_read) X(hc_write) X(mtp_enter) X(layernorm) \
|
||||
X(hc_read) X(hc_write) X(hc_project) X(mtp_enter) \
|
||||
X(layernorm) X(mhc_pre) X(mhc_post) X(mhc_contract) \
|
||||
X(kda_update) X(mhc_pre_partial) X(mhc_pre_finish) \
|
||||
X(swiglu_clamped) \
|
||||
X(router_sigmoid_topk) \
|
||||
X(dsa_pool) \
|
||||
X(dsa_query) \
|
||||
X(gemm_nt_f32) \
|
||||
X(mla_project) \
|
||||
X(dsa_score) \
|
||||
X(mla_attn) \
|
||||
X(add) X(grid_embed) X(grid_embed_aa) X(causal_conv1d) \
|
||||
X(mul) X(silu_mul) X(gelu_mul) X(gelu) \
|
||||
X(silu) X(sigmoid) X(logit_softcap) X(gather_rows) \
|
||||
@@ -84,14 +94,14 @@ int avx_par_force(int threads);
|
||||
/* ---- quantisation and rotation */ \
|
||||
X(quant_act_i8) X(quant_act_i8g) X(had_quant_act_i8) X(quant_act_fp8) \
|
||||
X(had_quant_act_fp8) X(gram_accum) X(rmsnorm_had_quant_i8) X(gated_had_quant_i8) \
|
||||
X(dequant) X(quant_cols_fp8) \
|
||||
X(dequant) X(quant_cols_fp8) X(had_quant_act_i8g) \
|
||||
X(rmsnorm_quant_fp8) X(gated_quant_fp8) X(givens_rotate) X(givens_dense_quant) \
|
||||
/* ---- gemm and the vocabulary edges */ \
|
||||
X(gemm_nt) X(gemm_nt_bias) X(gemm_nt_q) X(gemm_nt_q_bias) \
|
||||
X(gemm_nt_q_gated) X(embed_lookup) X(embed_lookup_q) X(logits_gemm) \
|
||||
X(lora_shrink) X(lora_expand) \
|
||||
X(lora_shrink) X(lora_expand) X(lora_expand_mm) \
|
||||
/* ---- attention */ \
|
||||
X(attn_paged) X(attn_dense) X(kv_store) X(rope) \
|
||||
X(attn_paged) X(attn_dense) X(attn_cross) X(attn_na3d) X(table_add) X(mix_rows) X(chan_stats) X(kv_store) X(rope) \
|
||||
X(rope_table) X(qk_norm_rope) X(qsa_block_key) X(attn_local_rel) \
|
||||
X(qsa_score) X(qsa_select) X(qsa_tail_store) X(qsa_work) \
|
||||
/* ---- mixture of experts */ \
|
||||
@@ -108,19 +118,25 @@ int avx_par_force(int threads);
|
||||
X(gather_rows2) X(lane_gather) X(lane_store) X(randn_lanes) \
|
||||
X(flow_euler) X(chan_affine) X(conv2d_nhwc) X(l2norm_chan) \
|
||||
X(d2s_add) X(s2d_avg_add) X(to_rgba8) X(gelu_tanh) \
|
||||
X(scatter_add_rows) X(attn_prefix_self) \
|
||||
X(scatter_add_rows) X(attn_prefix_self) X(kd_input) X(kd_step) \
|
||||
X(gelu_quick) X(im2col_nhwc) \
|
||||
/* ---- video generation */ \
|
||||
X(rms_mod) X(rms_mod_quant_fp8) X(flow_x0_step) X(patch_unfold) \
|
||||
X(flow_res_multistep) \
|
||||
X(vtile_gather) X(vtile_stitch) X(grid_pos3) X(vsa_select) \
|
||||
X(attn_vsa) X(conv3d_ndhwc) X(group_norm) X(tconv_dw) \
|
||||
X(resize_bilinear) X(patch_fold) X(flow_renoise) \
|
||||
/* ---- LTX-2 */ \
|
||||
X(rope_split) X(head_gate) X(ltx_guide) X(pixel_norm) \
|
||||
X(d2s3d) X(s2d3d) X(pix_patch) X(patch_pix8) \
|
||||
X(stft_logmel) X(bwe_up) X(tile_grid) X(tile_crop) \
|
||||
X(tile_stitch) X(vol_index) \
|
||||
/* ---- audio generation */ \
|
||||
X(conv1d) X(conv_t1d) X(snake) X(cfg_topk_sample) \
|
||||
X(rvq_embed) X(frame_mix_store) X(end_status) X(frame_store) \
|
||||
X(resample_nearest) X(fourier_embed) X(win_input) X(win_prep) \
|
||||
X(win_finish) X(chan_split) X(interleave2) X(iota) \
|
||||
X(cu_repeat) X(snake_aa) \
|
||||
X(cu_repeat) X(snake_aa) X(int_affine) \
|
||||
/* ---- sampling, and the drafter's token walk */ \
|
||||
X(sample_penalties) X(sample_dry) X(sample_temp) X(sample_topk) \
|
||||
X(sample_topp) X(sample_minp) X(sample_typical) X(sample_xtc) \
|
||||
|
||||
Reference in new issue
Block a user