Archived
build: a LoRA-declined fused GEMM owns no weight and is not a reference-kernel op
Found on Qwen3.8-27B fp8: the 64 declined gemm_nt_q_gated folds tripped the reference-kernel gate, and as unresolved readers of gate_up they would have told the planner the weight cannot live on the card.
This commit is contained in:
1 parent
63e6d01394
commit
be4ebdc3af
3 files changed
+12
No files matched your search
@@ -725,6 +725,13 @@ rad_op Builder::decl_op(const char* opname, const RadParam* p, int n_p,
|
||||
none.miss[d] = "declined: its weight is a runtime-LoRA target, and a fused GEMM has no "
|
||||
"output for the adapter's delta (the plugin runs the unfused chain)";
|
||||
oi.bands.assign(1, none);
|
||||
oi.lora_declined = true;
|
||||
/* AND IT OWNS NO WEIGHT. The planner, the layout pass and the weight-use bookkeeping all
|
||||
* read an op's weights, and an op with no kernel anywhere would tell the planner the weight
|
||||
* cannot be read on the card -- moving the gate_up the unfused chain multiplies on the card
|
||||
* off it. The op stays in the list, by name, so the sizing declare lines up. */
|
||||
oi.weights.clear();
|
||||
oi.weight_opd.clear();
|
||||
prog_.ops.push_back(std::move(oi));
|
||||
op_bufs_.emplace_back();
|
||||
return RAD_NULL_HANDLE;
|
||||
|
||||
Reference in new issue
Block a user