Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[RFC] Moving MXNet-AMP to core #18896

Open
mk-61 opened this issue Aug 10, 2020 · 3 comments
Open

[RFC] Moving MXNet-AMP to core #18896

mk-61 opened this issue Aug 10, 2020 · 3 comments
Labels
Feature request RFC Post requesting for comments

Comments

@mk-61
Copy link
Contributor

mk-61 commented Aug 10, 2020

MXNet already has experimental AMP (Automatic Mixed Precision) support, exposed in mxnet.contrib package. It is used for automatic casting models to both float16 and bfloat16. This RFC covers moving it into core / making a first-class feature, as well as further development.

Here's a rough task break down for the initial move:

Post move:

  1. Layout optimization - upstreaming feature already existing in NVIDIA NGC container. This helps convolutions' performance by automatically casting between NCHW and NHWC layouts.
  2. Explore alternatives to front end ops monkey-patching (AMP for mx2 #18697)
  3. Add a way for the user to turn AMP off, and to control AMP setting via a context manager.
@github-actions
Copy link

Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.

@szha szha added the RFC Post requesting for comments label Aug 10, 2020
@szha
Copy link
Member

szha commented Aug 12, 2020

cc @sxjscience @leezu

@sxjscience
Copy link
Member

@mk-61 If you'd like to see some test cases of the new numpy API, you can also try the numpy version of GluonNLP: https://github.com/dmlc/gluon-nlp/tree/numpy . Would we connect via Slack?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature request RFC Post requesting for comments
Projects
None yet
Development

No branches or pull requests

3 participants