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

Function get_torch_model_path

tests/model_loader/utils.py:203–214  ·  view source on GitHub ↗

return (fastdeploy_path, huggingface_path)

(base_model_name: str)

Source from the content-addressed store, hash-verified

201
202
203def get_torch_model_path(base_model_name: str) -> str:
204 """return (fastdeploy_path, huggingface_path)"""
205 # FastDeploy model path
206 fd_base_path = os.getenv("MODEL_PATH")
207 # HuggingFace model path
208 torch_model_path = os.path.join(
209 fd_base_path,
210 "torch",
211 base_model_name,
212 )
213
214 return torch_model_path
215
216
217def check_tokens_id_and_text_close(

Callers 3

model_infoMethod · 0.90
test_offline_modelFunction · 0.90

Calls 1

joinMethod · 0.80

Tested by 3

model_infoMethod · 0.72
test_offline_modelFunction · 0.72