@@ -68,7 +68,7 @@ def setup_transformers_pipeline(
68
68
:param engine_kwargs: The kwargs to pass to the engine
69
69
:return The model path, config, tokenizer, and engine kwargs
70
70
"""
71
- model_path , config , tokenizer = setup_onnx_file_path (model_path , sequence_length )
71
+ model_path , config , tokenizer = fetch_onnx_file_path (model_path , sequence_length )
72
72
73
73
tokenizer .padding_side = tokenizer_padding_side
74
74
if not tokenizer .pad_token :
@@ -86,7 +86,7 @@ def setup_transformers_pipeline(
86
86
return model_path , config , tokenizer , engine_kwargs
87
87
88
88
89
- def setup_onnx_file_path (
89
+ def fetch_onnx_file_path (
90
90
model_path : str ,
91
91
sequence_length : int ,
92
92
task : Optional [str ] = None ,
@@ -135,8 +135,6 @@ def get_deployment_path(model_path: str) -> Tuple[str, str]:
135
135
for running the transformers model in the deepsparse pipeline
136
136
137
137
:param model_path: path to model directory, sparsezoo stub, or ONNX file
138
- :param onnx_model_name: name of the ONNX file to look for in the deployment
139
- directory. Defaults to MODEL_ONNX_NAME
140
138
:return: path to the deployment directory and path to the ONNX file inside
141
139
the deployment directory
142
140
"""
0 commit comments