The modular kernel framework reads w1.shape[0] in its outer apply() before delegating to our expert impl. Setting layer.w13_weight = None caused AttributeError. Replace with shape-preserving CPU dummy tensors to free GPU memory while keeping shape metadata accessible.