misc: speedup load safetensors (#1319)
Co-authored-by: ispobock <ISPObaoke@163.com>
This commit is contained in:
1 parent
1e495e0847
commit
dc67d97693
1 file changed
+1
@@ -162,6 +162,7 @@ class ModelRunner:
|
||||
return min_per_gpu_memory
|
||||
|
||||
def load_model(self):
|
||||
torch.set_num_threads(1)
|
||||
logger.info(
|
||||
f"Load weight begin. avail mem={get_available_gpu_memory(self.gpu_id):.2f} GB"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user