Skip to main content

A simple framework for accelerating deep learning inference runtime.

Project description

dl_acceleration

Installation

Build from source

git clone https://github.com/gnomondigital/dlacc.git
DLACC_HOME = ./dlacc
PYTHONPATH=$DLACC_HOME:${PYTHONPATH}

Install via pip

pip install dlacc

Python SDK

python3.9 setup.py sdist bdist_wheel
python3.9 -m twine upload dist/* --verbose

Features

  • Automatic Optimization
  • Benchmark with various metrics (mean inference time, improvement compare, ..)
  • Output optimized models
  • Save tuning log

Usage

Command line

python3.9 main.py --path example1.json

Python script

View examples/getting_started.ipynb

Supported Targets

['aocl', 'hybrid', 'nvptx', 'sdaccel', 'opencl', 'metal', 'hexagon', 'aocl_sw_emu', 'rocm', 'webgpu', 'llvm', 'cuda', 'vulkan', 'ext_dev', 'c']

Specifying the correct target can have a huge impact on the performance of the compiled module, as it can take advantage of hardware features available on the target. For more information, please refer to Auto-tuning a convolutional network for x86 CPU. We recommend identifying which CPU you are running, along with optional features, and set the target appropriately. For example, for some processors target = "llvm -mcpu=skylake", or target = "llvm -mcpu=skylake-avx512" for processors with the AVX-512 vector instruction set.

Notes:

Generally:

  • Use 'cuda' for GPU backend;
  • Use 'llvm' for CPU backend.

specify num_measure_trials=20000 for best performance tuning for optimum.run() method call.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dlacc-1.9.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

dlacc-1.9-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file dlacc-1.9.tar.gz.

File metadata

  • Download URL: dlacc-1.9.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dlacc-1.9.tar.gz
Algorithm Hash digest
SHA256 767ca736a6071d78b7ac1194203f825d11b374fbedfd6f50817a8157eabc384c
MD5 563a87390cbe9a5c7a8e5d2356bd15b5
BLAKE2b-256 45b036452935bd8f11568e8a9bd1c1fcf1108c97fdf6b2202e52cad89da21138

See more details on using hashes here.

Provenance

File details

Details for the file dlacc-1.9-py3-none-any.whl.

File metadata

  • Download URL: dlacc-1.9-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dlacc-1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 29d72d7049f4b5b26e07d0e1d938753c88dcc740e6d9fd6baed0715467807c72
MD5 e1651f4d2722b928ecc9f7913994a668
BLAKE2b-256 934a453e89246a518a3fd4e263eac500d0761ab1d426d7108887e09990566a4a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page