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
[QST] On adding an optimizer for sparse feature embeddings #322
For dynamicemb, it bypasses the param interface in torch and directly use fused_params to create optimizer. I think maybe we can remove apply_optimizer_in_backward and only use fused_params. @JacoCheung any comments?
@gameofdimension Yes, you're right. Both should work.
The fused_params has more than optimizer params. It will absorb the params that apply_optimizer_in_backward has provided here. (apply_optimizer_in_backward has higher priority than fused_params )
The apply_optimizer_in_backward is redundant here.
Activity
gameofdimension commentedon Mar 13, 2026
@shijieliu Could you help clarify this issue?
shijieliu commentedon Mar 13, 2026
hi @gameofdimension thanks for your question.
For dynamicemb, it bypasses the param interface in torch and directly use fused_params to create optimizer. I think maybe we can remove apply_optimizer_in_backward and only use fused_params. @JacoCheung any comments?
JacoCheung commentedon Mar 19, 2026
@gameofdimension Yes, you're right. Both should work.
The
fused_paramshas more than optimizer params. It will absorb the params thatapply_optimizer_in_backwardhas provided here. (apply_optimizer_in_backwardhas higher priority thanfused_params)The apply_optimizer_in_backward is redundant here.