(model)
| 808 | |
| 809 | |
| 810 | def unwrap_model(model): |
| 811 | model = accelerator.unwrap_model(model) |
| 812 | model = model._orig_mod if is_compiled_module(model) else model |
| 813 | return model |
| 814 | |
| 815 | |
| 816 | # create custom saving & loading hooks so that `accelerator.save_state(...)` serializes in a nice format |
nothing calls this directly
no outgoing calls
no test coverage detected