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:
baKon committed 2026-10-16 20:52:09 -05:00
1 parent 63e6d01394
commit be4ebdc3af
3 files changed
+12

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ int rad_reference_ops(const Program& p, std::vector<std::string>* out) {
int n = 0;
for (size_t i = 1; i < p.ops.size(); ++i) {
const OpInfo& oi = p.ops[i];
if (oi.lora_declined) continue; /* never handed out, so never issued (rad_builder.cpp) */
bool real = false;
for (const Band& b : oi.bands)
for (int d = 0; d < RAD_N_DOMAINS && !real; ++d)