You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9df971f
Browse filesBrowse the repository at this point in the historyBrowse files
Three follow-up fixes responding to GitHub Copilot's automated review of #495:
- auto_export.py: the past_present_share_buffer guard incorrectly dropped
its check when any GQA node existed anywhere in the graph, even though a
separate unfused standard Attention node still coexisted (partial GQA
fusion). A GQA node on one layer doesn't make a standard Attention node on
another layer safe for a shared buffer. Removed the `not has_gqa`
short-circuit so any standard Attention node co-existing with recurrent
state is unconditionally rejected.
- qwen35.py: Qwen35MoECausalLMModel.preprocess_weights's dense loop-over-
experts fallback only knows how to unfuse *unquantized* float
gate_up_proj/down_proj tensors. When quantization is present but doesn't
match the native QMoE ABI, Olive's packed *_qweight/_scales/_qzeros keys
stay fused and were silently passed through unchanged, producing a graph
whose per-expert Linear modules expect keys that were never generated.
Now raises a clear ValueError instead of emitting an unloadable graph.
- _weight_utils.py: preprocess_olive_weights's embed_tokens branches matched
purely on key suffix, ignoring the quantize_embeddings flag entirely. Now
gated on quantize_embeddings, with an explicit error for a caller/state-dict
mismatch instead of silently misrouting through the generic Linear renaming
path (which would incorrectly 3-D reshape the 2-D embedding qweight table).
Added regression tests for all three fixes.
Co-authored-by: Copilot <[email protected]>
0 commit comments