MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / get_paddle_model_path

Function get_paddle_model_path

tests/model_loader/utils.py:194–200  ·  view source on GitHub ↗
(base_model_name: str)

Source from the content-addressed store, hash-verified

192
193
194def get_paddle_model_path(base_model_name: str) -> str:
195 fd_base_path = os.getenv("MODEL_PATH")
196 if fd_base_path:
197 fd_model_path = os.path.join(fd_base_path, base_model_name)
198 else:
199 fd_model_path = base_model_name
200 return fd_model_path
201
202
203def get_torch_model_path(base_model_name: str) -> str:

Callers 2

test_model_cacheFunction · 0.90

Calls 1

joinMethod · 0.80

Tested by 2

test_model_cacheFunction · 0.72