Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreedomIntelligence/CMB
/ unwrap_model
Method
unwrap_model
workers/base.py:154–155 ·
view source on GitHub ↗
(self,)
Source
from the content-addressed store, hash-verified
152
self.model = self.accelerator.prepare(self.model)
153
154
def
unwrap_model(self,):
# this is NOT inplace
155
return
self.accelerator.unwrap_model(self.model)
156
157
def
init_writer(self, output_pth):
158
if
self.is_main_process:
Callers
1
generate_batch
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected