Kernels
wyldecat Claude Opus 4.6 commited on
Commit
5a99e12
·
1 Parent(s): e615b1c

Support multi-component expert_keys (e.g. "experts.w1")

Browse files

Single-component keys match any single FQN component as before.
Multi-component keys (containing dots) now match as a contiguous
subsequence, so "experts.w1" matches "moe.experts.w1.weight" but
not "moe.shared_experts.w1.weight".

[skip-build]

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

2 files changed +29 -2
Files changed (2)
test/test_normalize_fqn.py+14-1
torch-ext/optimizer/core.py+15-1