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

Method load_json

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

Source from the content-addressed store, hash-verified

76
77 @staticmethod
78 def load_json(path, mode="r"):
79 if "s3://" not in path:
80 js = json.load(open(path, mode))
81 else:
82 js = json.loads(PetrelHelper._petrel_helper.load_data(path, ceph_read=False))
83 return js
84
85 @staticmethod
86 def download_json(path, local_path, mode="r"):

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
load_dataMethod · 0.80

Tested by

no test coverage detected