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

Method exists

lightllm/utils/petrel_helper.py:160–164  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

158
159 @staticmethod
160 def exists(path):
161 if "s3://" in path:
162 return PetrelHelper._petrel_helper.client.contains(path)
163 else:
164 return os.path.exists(path)
165
166 @staticmethod
167 def save(model, path, ceph_path=None):

Callers 15

_get_system_shm_size_gbFunction · 0.80
listMethod · 0.80
load_pretrainMethod · 0.80
loadMethod · 0.80
s3_model_prepareFunction · 0.80
_setup_loggerFunction · 0.80
init_loggerFunction · 0.80
init_customMethod · 0.80
init_customMethod · 0.80
init_customMethod · 0.80
get_the_configMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected