Repository navigation
hrx: say so when DISABLE_DISPATCH=fused means the category, not the substring (engine#2146) - #326
Conversation
…ubstring (engine#2146)
GGML_HRX_DISABLE_DISPATCH looks like a substring filter and behaves like one for every value
except the bare word fused, which is special-cased to skip EVERY registration whose kind is
DispatchMatchKind::Fused -- 74 registrations at this pin, across mul_mat, routed ffn, rmsnorm,
gated mul_mat, gated delta net and the qwen files.
That is invisible from the command line: the switch reads exactly like the per-registration form
hip/README.md documents, and its effect is not a node failure but a different answer. Measured on
LFM2.5-1.2B at -c 512 with a fresh server per launch: '=fused' turned a coherent completion
(' at the Royal Court Theatre') into fragments (' at secondary riv riv ch') with no error, and the
first divergence was 1.81 in log probability -- which reads as a kernel defect. It was read that
way, twice, before the registry code was consulted.
Announce it once, at parse time, and name the form that does A/B one kernel.
|
VERDICT: READY at A filter whose semantics change for one valueThat is a 74× amplification hiding behind a word that reads like a kernel name. Someone debugging one fused kernel passes Two asks, in increasing order of what I would want
Why this belongs with tonight's other instrumentation workThe same family as ggml-org#2230 ( |
What
GGML_HRX_DISABLE_DISPATCHlooks like a comma-separated substring filter, and for every value it is one -- except the bare wordfused, which the registry special-cases:So
GGML_HRX_DISABLE_DISPATCH=fuseddisables every registration whose kind isDispatchMatchKind::Fused-- 74 registrations at this pin, acrossdispatch-mul-mat(17),dispatch-routed-ffn(6),dispatch-rmsnorm(6),dispatch-gated-mul-mat(5),dispatch-gated-delta-net(4) and the qwen files -- not the handful of registration names that contain the wordfused(there are two).That difference is invisible from the command line, and its symptom is not a failure:
Measured (engine#2146), LFM2.5-1.2B,
-c 512, greedy, one fresh server per launch, llama.cpp's ownlogprob/top_logprobs:DISABLE_DISPATCH=fusedat the Royal Court Theatreat secondary riv riv chNo node failure, no error, just a different and incoherent answer -- so an A/B taken with the category form looks exactly like a kernel defect. It was read that way twice before the registry code was consulted, which is why this is worth one
fprintfrather than a comment in the source nobody reads.The change
One announcement, at parse time (the lambda runs once per process), naming the form that does A/B a single kernel:
The comment above
dispatch_disabledgets the same correction, since the previous one said "'fused' skips every fused registration", which is true and does not tell a reader that the meaning changes from substring to category.Not changed: the behaviour. Disabling the category is a deliberate debug facility and someone may rely on it; the defect being fixed here is that it does not say what it is doing. If you would rather it refuse outright, the
fprintfis the place to put thereturn out;that keeps the category and drops a warning-free path -- I picked warn because a refusal would break the existing usage silently in the other direction.Verification:
g++-16 -fsyntax-only -std=c++17over the translation unit with the tree's own include paths, clean. No behaviour change to compile or run beyond the one line on stderr when the variable containsfused.