Skip to content

Commit

Permalink
revert change fixed by latest sparsezoo commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Satrat committed Sep 11, 2023
1 parent ba53908 commit d595952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/deepsparse/transformers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
_LOGGER = get_main_logger()

_MODEL_DIR_ONNX_NAME = "model.onnx"
_MODEL_DIR_CONFIG_NAME = "deployment/config.json"
_MODEL_DIR_TOKENIZER_NAME = "deployment/tokenizer.json"
_MODEL_DIR_TOKENIZER_CONFIG_NAME = "deployment/tokenizer_config.json"
_MODEL_DIR_CONFIG_NAME = "config.json"
_MODEL_DIR_TOKENIZER_NAME = "tokenizer.json"
_MODEL_DIR_TOKENIZER_CONFIG_NAME = "tokenizer_config.json"


def get_onnx_path(model_path: str) -> str:
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def predownload_stub(stub: str, copy_framework_files: bool = False) -> Model:
model_path = model.path
if copy_framework_files:
# required for `deepsparse.transformers.run_inference` on local model files
config_path = model.deployment.default.get_file("deployment/config.json").path
config_path = model.deployment.default.get_file("config.json").path
tokenizer_config_path = model.deployment.default.get_file(
"deployment/tokenizer.json"
"okenizer.json"
).path
shutil.copy(config_path, model_path)
shutil.copy(tokenizer_config_path, model_path)
Expand Down

0 comments on commit d595952

Please sign in to comment.