Traceback (most recent call last):
File "/usr/local/bin/deepsparse.benchmark", line 5, in
from deepsparse.benchmark.benchmark_model import main
File "/usr/local/lib/python3.9/site-packages/deepsparse/init.py", line 33, in
from .engine import
File "/usr/local/lib/python3.9/site-packages/deepsparse/engine.py", line 28, in
from deepsparse.benchmark import BenchmarkResults
File "/usr/local/lib/python3.9/site-packages/deepsparse/benchmark/init.py", line 19, in
from .ort_engine import
File "/usr/local/lib/python3.9/site-packages/deepsparse/benchmark/ort_engine.py", line 52, in
ARCH = cpu_architecture()
File "/usr/local/lib/python3.9/site-packages/deepsparse/cpu.py", line 163, in cpu_architecture
arch = _parse_arch_bin()
File "/usr/local/lib/python3.9/site-packages/deepsparse/cpu.py", line 51, in call
self.memo[args] = self.f(*args)
File "/usr/local/lib/python3.9/site-packages/deepsparse/cpu.py", line 136, in _parse_arch_bin
error = json.loads(ex.stdout)
File "/usr/local/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Expected behavior
Expected to output the results of the benchmark. I wanted to exactly reproduce the 7-8x speedup stated on the NeuralMagic website. However, decided to first run my docker container on the free t2.micro instance.
Environment
OS: Amazon Linux
Python version: 3.9.18
DeepSparse version or commit hash [e.g. 0.1.0, f7245c8]: 1.5.3
Describe the bug Running the benchmark on AWS t2.micro instance with or without Docker yields the following error:
Expected behavior Expected to output the results of the benchmark. I wanted to exactly reproduce the 7-8x speedup stated on the NeuralMagic website. However, decided to first run my docker container on the free t2.micro instance.
Environment
f7245c8
]: 1.5.3To Reproduce
RUN pip install deepsparse[onnxruntime]
COPY entrypoint.sh /app/ RUN chmod 777 /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"] CMD ["run"]