DAPart
DAPart: An Online DRL-based Adaptive Partition Framework for DNN Models in Edge Computing
Install / Use
/learn @Jma512/DAPartREADME
DAPart
此开源代码是论文《DAPart: An Online DRL-based Adaptive Partition Framework for DNN Models in Edge Computing》中的实际实验搭建的真实测试平台。
<!-- PROJECT SHIELDS --> <!-- PROJECT LOGO --> <br /> <h3 align="center">DAPart</h3> <p align="center"> <a href="https://github.com/Jma512/DAPart"><strong>探索本项目的文档 »</strong></a> <br /> <br /> <a href="https://github.com/Jma512/DAPart">查看Demo</a> · <a href="https://github.com/Jma512/DAPart/blob/main/README.md">中文</a> · <a href="https://github.com/Jma512/DAPart/blob/main/README_en.md">English</a> </p>本篇README.md面向开发者,
目录
上手指南
该开源代码分为用户端设备和服务端设备两部分,用户端设备采用的是Jetson Nano,服务端设备采用的是具有Linux系统的电脑。本论文中实验的设备如下表格展示。
| Hardware | User Equipment Device<br>(Jetson Nano) | Edge Server | |--------------------|----------------------------------------|-------------------------------------| | System | Ubuntu 18.04.6 LTS | Ubuntu 22.04.2 LTS | | CPU | 4-core ARM A57@1.43GHz | Intel(R) Core(TM) i9-10940X@3.30GHz | | GPU | 128-core Maxwell@921MHz | GeForce GTX 3090 24GB | | Memory | 4GB LPDDR4 25.6GB/s | 416GB LPDDR4 3200 MT/s | | Hard Disk | 64GB microSDXC 140M/s(max) | 11T SSD + 4*2T HDD | | Network Connection | WiFi 2.4G:300Mbps 5G:867Mbps | Ethernet 1000Mbps |
开发前的主要环境配置要求
用户端设备(Jetson Nano只允许该环境版本)
- python==3.6.15
- torch==1.4.0
- torchvision==0.5.0
- tegrastats
- jtop
注:Jetson Nano的环境安装详细过程详见官方参考文档
服务端设备
- python>=3.7
- torch==1.13.1
- torchvision==0.13.1
安装步骤
- 克隆仓库的源代码
git clone https://github.com/Jma512/DAPart.git
- 安装环境配置必要的包
文件目录说明
DAPart
├── /data/
│ ├── /test/
│ │ └── ...
│ └── ... //实验时模拟任务所需的图像
├── /model
│ ├── /mobilenetv2/
│ │ │ └── /logs
│ │ ├── downloadmobilenetv2.py
│ │ └── mobilenetv2_pretrained_imagenet.pth
│ ├── /resnet50/
│ │ │ └── /logs
│ │ ├── downloadresnet50.py
│ │ └── resnet50_pretrained_imagenet.pth
│ ├── /vgg16/
│ │ │ └── /logs
│ │ ├── downloadvgg16.py
│ │ └── vgg16_pretrained_imagenet.pth
├── DAPart_Edge_Server.py
├── DAPart_User_Equipment.py
├── experiment_neuro.py
├── mobilenetv2.py
├── resnet50.py
├── vgg16.py
└── README.md
部署和运行
将该代码分别部署在用户端和服务器端即可,服务器端运行DAPart_Edge_Server.py,用户端设备运行DAPart_User_Equipment.py
贡献者
xxx@xxxx(暂不公开)
版本控制
该项目使用Git进行版本管理。
作者
xxx@xxxx(暂不公开)
<!-- links -->Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
