EdgeTune: Inference-Aware Hyperparameter Tuning
Bibliographic record
Abstract
# EdgeTune: Inference-Aware Hyperparameter Tuning The results of EdgeTune have been presented at the ACM Middleware 2022 conference. If you use this software, please cite us: ```<br> @inproceedings{10.1145/3528535.3533273,<br> author = {Rocha, Isabelly and Felber, Pascal and Schiavoni, Valerio and Chen, Lydia},<br> title = {EdgeTune: Inference-Aware Multi-Parameter Tuning},<br> year = {2022},<br> isbn = {9781450393409},<br> publisher = {Association for Computing Machinery},<br> address = {New York, NY, USA},<br> url = {https://doi.org/10.1145/3528535.3533273},<br> doi = {10.1145/3528535.3533273},<br> booktitle = {Proceedings of the 23rd Conference on 23rd ACM/IFIP International Middleware Conference},<br> pages = {1–14},<br> numpages = {14},<br> keywords = {tuning, deep neural networks, training, inference},<br> location = {Quebec, QC, Canada},<br> series = {Middleware '22}<br> }<br> ``` ## Install pip3<br> ```Shell<br> $ sudo apt-get update<br> $ sudo apt-get install python3-pip<br> ``` ## Install Python dependencies - Intel (nuc)<br> ```Shell<br> $ pip3 install torch torchvision keras tensorflow ray[rllib] pandas tensorflow_datasets<br> ``` - ARM (RaspberryPi)<br> ```Shell<br> $ git clone https://github.com/Ben-Faessler/Python3-Wheels.git<br> $ sudo pip3 install Python3-Wheels/pytorch/torch-1.5.0a0+4ff3872-cp37-cp37m-linux_armv7l.whl<br> $ sudo pip3 install Python3-Wheels/torchvision/torchvision-0.6.0a0+b68adcf-cp37-cp37m-linux_armv7l.whl<br> ``` - Jetson Nano<br> ```Shell<br> $ wget https://nvidia.box.com/shared/static/wa34qwrwtk9njtyarwt5nvo6imenfy26.whl -O torch-1.7.0-cp36-cp36m-linux_aarch64.whl<br> $ sudo apt-get install python3-pip libopenblas-base libopenmpi-dev<br> $ pip3 install Cython<br> $ pip3 install numpy torch-1.7.0-cp36-cp36m-linux_aarch64.whl<br> $ sudo apt-get install libjpeg-dev zlib1g-dev<br> $ git clone --branch v0.8.1 https://github.com/pytorch/vision torchvision<br> $ cd torchvision<br> $ export BUILD_VERSION=0.8.1<br> $ sudo python3 setup.py install<br> ``` ## Install cpupower (for frequency scaling)<br> ```Shell<br> $ sudo apt-get install linux-cpupower<br> $ cpufreq-info # get cpu frequency information<br> $ cpufreq-set -u min -d max # set cpu frequency<br> ``` ## Power Measurements Setup - InfluxDB ```Shell<br> $ sudo apt install influxdb<br> $ service influxdb start<br> $ influx<br> $ CREATE DATABASE power<br> ``` - PowerSpy Power<br> ```Shell<br> $ pip install influxdb<br> $ python powerspy.py MAC<br> ``` - POE Power<br> ```Shell<br> $ apt-get install python-bluez bluez<br> $ hcitool scan<br> $ hcitool dev<br> $ systemctl restart bluetooth.service<br> $ pip3 install influxdb<br> $ python3 poe_power.py -p PORT<br> ``` - RAPL ```Shell<br> $ sudo chmod -R a+r /sys/class/powercap/intel-rapl<br> ``` ## Change rapl permissions ```Shell<br> sudo chmod -R a+r /sys/class/powercap/intel-rapl<br> ``` ## Install cuda dependencies<br> ```Shell<br> $ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin<br> $ sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600<br> $ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub<br> $ sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"<br> $ sudo apt-get update<br> $<br> $ sudo apt install nvidia-cuda-toolkit
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame distilled prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. Learned from the 10,348 direct Codex labels and 10,348 direct Gemma labels. Candidate is the union of thresholded teacher heads; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels or direct frontier model labels.
Codex and Gemma teacher scores by category
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.003 | 0.006 |
| Meta-epidemiology (narrow) | 0.000 | 0.000 |
| Meta-epidemiology (broad) | 0.000 | 0.000 |
| Bibliometrics | 0.001 | 0.001 |
| Science and technology studies | 0.002 | 0.000 |
| Scholarly communication | 0.002 | 0.000 |
| Open science | 0.004 | 0.004 |
| Research integrity | 0.000 | 0.001 |
| Insufficient payload (model declined to judge) | 0.496 | 0.041 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; both teacher heads agree on what is shown here.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".