Fabric - unwrap_model #18365
Unanswered
pfeatherstone
asked this question in
DDP / multi-GPU / multi-node
Replies: 1 comment 2 replies
-
Hey @pfeatherstone wrapped_model.module |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Fabric to have a bit more control on the training loop. One of the things it does is export to torchscript and onnx when checkpointing. It looks like i need to convert the
FabricModule
wrapper to a normalnn.Module
. Is there is anunwrap_model()
function that takes care of spitting back the original model on cpu, with original fp32 precision while only doing so on rank zero ?Thank you
Beta Was this translation helpful? Give feedback.
All reactions