MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / persistent_load

Method persistent_load

lit_gpt/utils_old.py:209–215  ·  view source on GitHub ↗
(self, pid)

Source from the content-addressed store, hash-verified

207 return res
208
209 def persistent_load(self, pid):
210 name, cls, fn, device, size = pid
211 with warnings.catch_warnings():
212 warnings.simplefilter("ignore")
213 s = torch.storage.TypedStorage(dtype=cls().dtype, device="meta")
214 s.archiveinfo = pid
215 return s
216
217
218class lazy_load:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected