Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ deepsparse.benchmark [-h] [-b BATCH_SIZE] [-shapes INPUT_SHAPES]
## 👩‍💻 NLP Inference Example

```python
from deepsparse import Pipeline
from deepsparse.transformers import pipeline

# SparseZoo model stub or path to ONNX file
model_path = "zoo:nlp/question_answering/bert-base/pytorch/huggingface/squad/12layer_pruned80_quant-none-vnni"

qa_pipeline = Pipeline.create(
qa_pipeline = pipeline(
task="question-answering",
model_path=model_path,
)
Expand Down
15 changes: 0 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
_deps = [
"numpy>=1.16.3",
"onnx>=1.5.0,<=1.10.1",
"pydantic>=1.8.2",
"requests>=2.0.0",
"tqdm>=4.0.0",
"protobuf>=3.12.2",
Expand Down Expand Up @@ -81,16 +80,6 @@
"onnxruntime>=1.7.0",
]

_ic_integration_deps = [
"click<8.1",
"opencv-python",
]

_yolo_integration_deps = [
"torchvision>=0.3.0,<=0.10.1",
"opencv-python",
]


class OverrideInstall(install):
"""
Expand Down Expand Up @@ -183,15 +172,12 @@ def _setup_extras() -> Dict:
"dev": _dev_deps,
"server": _server_deps,
"onnxruntime": _onnxruntime_deps,
"image_classification": _ic_integration_deps,
"yolo": _yolo_integration_deps,
}


def _setup_entry_points() -> Dict:
data_api_entrypoint = "deepsparse.transformers.pipelines_cli:cli"
eval_downstream = "deepsparse.transformers.eval_downstream:main"

return {
"console_scripts": [
f"deepsparse.transformers.run_inference={data_api_entrypoint}",
Expand All @@ -200,7 +186,6 @@ def _setup_entry_points() -> Dict:
"deepsparse.check_hardware=deepsparse.cpu:print_hardware_capability",
"deepsparse.benchmark=deepsparse.benchmark.benchmark_model:main",
"deepsparse.server=deepsparse.server.main:start_server",
"deepsparse.object_detection.annotate=deepsparse.yolo.annotate:main",
]
}

Expand Down
1 change: 0 additions & 1 deletion src/deepsparse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
cpu_vnni_compatible,
)
from .engine import *
from .pipeline import *
from .version import __version__, is_release


Expand Down
13 changes: 0 additions & 13 deletions src/deepsparse/image_classification/__init__.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/deepsparse/image_classification/constants.py

This file was deleted.

197 changes: 0 additions & 197 deletions src/deepsparse/image_classification/pipelines.py

This file was deleted.

42 changes: 0 additions & 42 deletions src/deepsparse/image_classification/schemas.py

This file was deleted.

Loading