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 }}
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
Hello,
I want to get the gradient w.r.t the parameters in decoder like embedding layer's weights and ffn layer's weights.
However when I run following command the results are always None.
print(model.decoder.layers[0].fc1.weight.grad)
and the following command always return True even the FFN weights:
model.decoder.layers[0].fc1.weight.is_leaf
I don't know where going wrong, thank you
The text was updated successfully, but these errors were encountered:
Hello,
I want to get the gradient w.r.t the parameters in decoder like embedding layer's weights and ffn layer's weights.
However when I run following command the results are always None.
print(model.decoder.layers[0].fc1.weight.grad)
and the following command always return True even the FFN weights:
model.decoder.layers[0].fc1.weight.is_leaf
I don't know where going wrong, thank you
The text was updated successfully, but these errors were encountered: