MCPcopy Create free account
hub / github.com/ace-step/ACE-Step / __init__

Method __init__

acestep/cpu_offload.py:7–10  ·  view source on GitHub ↗
(self, model, device="cpu")

Source from the content-addressed store, hash-verified

5
6class CpuOffloader:
7 def __init__(self, model, device="cpu"):
8 self.model = model
9 self.original_device = device
10 self.original_dtype = model.dtype
11
12 def __enter__(self):
13 if not hasattr(self.model,"torchao_quantized"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected