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

Method model_info

tests/pooling/test_embedding.py:65–73  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

63
64 @pytest.fixture(scope="session", params=list(test_model_configs.keys()))
65 def model_info(self, request):
66 model_name = request.param
67 try:
68 torch_model_path = get_torch_model_path(model_name)
69 if not os.path.exists(torch_model_path):
70 raise AssertionError(f"Model path does not exist: {torch_model_path}")
71 return {"name": model_name, "path": torch_model_path, "config": test_model_configs[model_name]}
72 except Exception as e:
73 raise AssertionError(f"Could not get torch model path for {model_name}: {e}")
74
75 @pytest.fixture
76 def model_config(self, model_info):

Callers

nothing calls this directly

Calls 2

get_torch_model_pathFunction · 0.90
existsMethod · 0.45

Tested by

no test coverage detected