MCPcopy
hub / github.com/ModelTC/LightLLM / load_pk

Method load_pk

lightllm/utils/petrel_helper.py:70–75  ·  view source on GitHub ↗
(path, mode="r")

Source from the content-addressed store, hash-verified

68
69 @staticmethod
70 def load_pk(path, mode="r"):
71 if "s3://" not in path:
72 pk_res = pk.load(open(path, mode))
73 else:
74 pk_res = pk.loads(PetrelHelper._petrel_helper.load_data(path, ceph_read=False))
75 return pk_res
76
77 @staticmethod
78 def load_json(path, mode="r"):

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
load_dataMethod · 0.80

Tested by

no test coverage detected