Giter Club home page Giter Club logo

catch's Introduction


CATCH is a PyTorch extension package that enables PyTorch to support the Machine Learning Unit(MLU) backend, in both high-performance training and inference. Unlike PyTorch's integrated backends such as cuda, cudnn etc., CATCH is provided independently with patches to original PyTorch repository. Together with PyTorch, CATCH provides strong MLU acceleration for neural network computation:

  • Inference layer-by-layer in eager mode or using TorchScript interface in fusion mode.
  • Training with single or multiple card.

The overview of CATCH structure is demonstrated below:

catch sturcture

Currently it supports several versions of Cambricon MLUs, which are listed as follows:

  • series of MLU370

Installation

From Source Code(for CATCH contributors)

CATCH depends on PyTorch and Cambricon Neuware Libs. The detailed setup steps can be referred to CONTRIBUTING.md

Docker Image

Using pre-built images

Pre-built docker image is also published. It is referred to using CATCH in Docker for explaining how to use our dockers.

Building the image yourself

  • make sure the neuware_home is in your current directory.
  • bash docker/docker_build.sh -r docker -d open_pytorch_centos76 -t open_bata -f docker/open_dockerfile.base_centos7.6.framework .

Getting Started

Inference

Currently, the network can run in eager or fusion mode with the precision of float32 or float16. Each is accompanied with a completed example located in examples/inference. Furthermore, another example with explanation can be found in Quick Guide for Inference.

Training

Training with single MLU card or multiple MLU cards using DDP interface is possible. The example scripts are demonstrated in examples/training/single_card_demo.py and examples/training/multi_card_demo.py. Furthermore, another example with explanation can be found in Quick Guide for Training.

Documentation

For more information about CATCH, such as supported operators and their constraints, customized operation etc., please see documentation

License

CATCH has a BSD 2-Clause License, as found in the LICENSE file.

catch's People

Contributors

kwgqjj 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.