Code Monkey home page Code Monkey logo

brevitas-radioml-challenge-21's Introduction

Sandbox: Lightning-Fast Modulation Classification with Hardware-Efficient Neural Networks

This repository provides a Docker-based environment as a submission for the Lightning-Fast Modulation Classification with Hardware-Efficient Neural Networks problem statement of the ITU AI/ML in 5G Challenge. The sandbox environment includes PyTorch and Brevitas and serves Jupyter notebooks that include definition, training, pruning, and evaluation of our quantized CNN model.

Prerequisites

The sandbox was tested on Ubuntu, but the containerized setup should work on most platforms.

Using the sandbox notebook

  1. Clone this repository
  2. Set optional environment variables
    • DATASET_DIR: This directory will be mounted inside the container at "/workspace/dataset", download instructions can be found inside the Jupyter notebook
    • DOCKER_GPUS: Select GPUs which will be accessible from within the container, for example all or device=0
    • JUPYTER_PORT: Override default port (8888)
    • NETRON_PORT: Override default port (8081)
    • JUPYTER_PASSWD_HASH: Override default password ("radioml")
    • LOCALHOST_URL: Set the IP/URL of the machine if you don't access it via localhost
  3. Run ./run_docker.sh inside sandbox/ to launch the Jupyter notebook server
    • Alternatively for experimenting: Run ./run_docker.sh bash to launch an interactive shell
  4. Connect to http://HOSTNAME:JUPYTER_PORT from a browser and login with password "radioml"

Evaluation

  1. Run ./run_docker.sh inside sandbox/ to launch the Jupyter notebook server.
  2. Connect to http://HOSTNAME:JUPYTER_PORT from a browser and login with password "radioml".
  3. Run ./sandbox/notebooks/evaluation_only.ipynb with pre-trained model IlliNet_trained.pth for evaluation.

Training

  1. Run ./run_docker.sh inside sandbox/ to launch the Jupyter notebook server.
  2. Connect to http://HOSTNAME:JUPYTER_PORT from a browser and login with password "radioml".
  3. Run ./sandbox/notebooks/training_and_evaluation.ipynb with a proper number of epochs for general training.
  4. Run ./sandbox/notebooks/training_and_pruning.ipynb with a proper number of epochs for pruning.

Getting help

Connect with the challenge organizers and other participants on GitHub discussion. For questions related to quantization-aware training with Brevitas, there is also a separate Gitter channel: Gitter

brevitas-radioml-challenge-21's People

Contributors

maltanar avatar pjh177787 avatar fpjentzsch avatar priyanka-xlnx avatar gitter-badger avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.