Skip to content

Commit

Permalink
Merge branch 'main' into batched-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin authored Jul 5, 2023
2 parents 7cb5f28 + fd223aa commit 285dc8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ def _parse_requirements_file(file_path):
_deps = [
"numpy>=1.16.3",
"onnx>=1.5.0,<1.15.0",
"pydantic>=1.8.2",
"pydantic>=1.8.2,<2.0.0",
"requests>=2.0.0",
"tqdm>=4.0.0",
"protobuf>=3.12.2,<=3.20.1",
"protobuf>=3.12.2",
"click>=7.1.2,!=8.0.0", # latest version < 8.0 + blocked version with reported bug
]
_nm_deps = [f"{'sparsezoo' if is_release else 'sparsezoo-nightly'}~={version_base}"]
Expand Down Expand Up @@ -120,7 +120,6 @@ def _parse_requirements_file(file_path):
_server_deps = [
"uvicorn>=0.15.0",
"fastapi>=0.70.0,<0.87.0",
"pydantic>=1.8.2",
"requests>=2.26.0",
"python-multipart>=0.0.5",
"prometheus-client>=0.14.1",
Expand Down
4 changes: 2 additions & 2 deletions src/deepsparse/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
def _check_transformers_install():
import transformers as _transformers

if not _transformers.NM_INTEGRATED:
if not getattr(_transformers, "NM_INTEGRATED", False):
_LOGGER.warning(
"the neuralmagic fork of transformers may not be installed. it can be "
"The neuralmagic fork of transformers may not be installed. It can be "
f"installed via `pip install {nm_transformers}`"
)

Expand Down

0 comments on commit 285dc8f

Please sign in to comment.