Skip to content

Commit

Permalink
[release/0.12] Revert pipelines upgrade for 0.12.1 (#346)
Browse files Browse the repository at this point in the history
* Revert "[cherry-pick] Release 0.12.1 cherry pick (#343)"

This reverts commit ddf0ed6.

* SparseServer.UI example [WIP] (#308)

* add megasparse dir

* edited readme to support DS integration

* small edit to docstring

* edited settings.py module so only 2 models are loaded.

* added more context to the readme about adding more models.

* fixed image

* added different  host  to streamlit client as default

* quality check edits

* quality check commit

* passing copyright quality check

* content edits

* rename dir to sparseserver-ui

* added new config file for quick start

* edited multipipelineclient in settings.py

* changed name of config file

* edited model stubs

* edited readme

* added dependency pins

* changed server pin

* edited model choice logic

* altered front-end features

* style update

* renamed samples file

* added variant descriptions

* style changes

* edited samples.py module

* style changes

* added new pic

* edited README

* updated readme cmds

* SparseServer edit (#314)

* edit number of models

* edit settings.py

* edit readme

* AWS Sagemaker example integration (#305)

* AWS Sagemaker example integration

* documentation, sample config, dockerfile fixes

* fix ecr repo name

* readme code changes from testing

* Update huggingface-transformers/README.md with new models (#329)

* Update README.md (#330)

* Update README.md

various grammatical edits
additional edits for section headline consistency

* Topology file for HB120rs_v3 (#334)

* Topology file for HB120rs_v3

Specifies core-per-CCX grouping for HB120rs_v3 VM's, used by multi-process script.

* Update README.md to reference Azure topo file

* Move all benchmarking within deepsparse/benchmark/ (#333)

* Move all benchmarking within deepsparse/benchmark/

* Update benchmark_model

* Expose results at benchmark base

* isort

* Skip flake8

* server integration check bug fix (#331)

* server integration check bug fix

need to verify integration is set before calling `integration.lower()`

* respond to review - click choice

* add default integration val to server config schema (#337)

* Remove: startlette dep (#338)

* Update src/deepsparse/version.py

Co-authored-by: Ricky Costa <79061523+InquestGeronimo@users.noreply.github.com>
Co-authored-by: Michael Goin <michael@neuralmagic.com>
Co-authored-by: Jeannie Finks <74554921+jeanniefinks@users.noreply.github.com>
Co-authored-by: Govind Ramnarayan <77341216+govindr-nm@users.noreply.github.com>
Co-authored-by: Konstantin Gulin <66528950+KSGulin@users.noreply.github.com>
Co-authored-by: Mark Kurtz <mark.kurtz@neuralmagic.com>
  • Loading branch information
7 people authored May 3, 2022
1 parent ddf0ed6 commit 32addc6
Show file tree
Hide file tree
Showing 30 changed files with 1,794 additions and 3,974 deletions.
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

0 comments on commit 32addc6

Please sign in to comment.