MAHPPO
PyTorch implementation of the paper: Multi-Agent Collaborative Inference via DNN Decoupling: Intermediate Feature Compression and Edge Learning.
Install / Use
/learn @Hao840/MAHPPOREADME
MAHPPO
PyTorch implementation of the paper: Multi-Agent Collaborative Inference via DNN Decoupling: Intermediate Feature Compression and Edge Learning.
Requirements
pip install -r requirements.txt
Step 1.
Train a classification model, and autoencoders at beforehand selected partitioning points.
-
Training of the classification model:
-
change the
default_rootvalue indataset\config.pyto the path saving Caltech-101 dataset in your PC. -
training the model with the following command
python train_model.py
-
-
Training of autoencoders
-
train the autoencoder at a specified partitioning point
python train_ae.py -
finetune
python train_ae.py --finetune
-
Step 2.
Evaluate the latency and energy consumption of inference on Jetson Nano and power monitor.
If you want to implement the evaluation with yourself, remember to set your Jetson Nano with the following commands:
# select power mode
sudo /usr/sbin/nvpmodel -m 1
# turn off DVFS
sudo jetson_clocks
or, you can refer to our evaluated results in env\data.py.
Step 3.
Train the DRL agent making offloading decisions.
python train_agent.py
Reference
If you find our code useful for your research, please cite our paper.
@article{hao2022multi,
title={Multi-agent collaborative inference via dnn decoupling: Intermediate feature compression and edge learning},
author={Hao, Zhiwei and Xu, Guanyu and Luo, Yong and Hu, Han and An, Jianping and Mao, Shiwen},
journal={IEEE Transactions on Mobile Computing},
year={2022},
publisher={IEEE}
}
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
isf-agent
a repo for an agent that helps researchers apply for isf funding
