Giter VIP home page Giter VIP logo

karuiflow's Introduction

Description

This repository contains a university assignment for High Performance Computation course.

In this assignment we implemented a simple copy of PyTorch deep learning library using Numpy and CUDA. The following features are supported:

  • General:
  1. Dynamic graphs with backward propagation.
  2. SGD optimizer (with momentum).
  3. Module class for making neural network modules.
  • CPU operation:
  1. ReLU.
  2. Log.
  3. Element-wise addition.
  4. Element-wise multiplication.
  5. Matrix multiplication.
  6. Softmax.
  7. Summation of tensors along several axes.
  • CUDA operation:
  1. ReLU.
  2. Element-wise addition.
  3. Matrix multiplication (only pure matrice, no batch support).
  4. Summation of tensors along several axes.

The above lists will be updated over time.

Since it is a "PyTorch"-ish Python library, you can implement arbitrary neural networks using the provided components and train them using gradient descent. You can also use it for arbitrary computational purposes (on GPU).

Everything is wrapped into a Python API using Cython and corresponds (almost) to PyTorch API, so please use PyTorch documentation as a reference for functionality available in this project.

Folders:

  • Architecture - contains several pictures depicting overall architecture of the project.
  • KaruiFlow - the core code written in C++ and CUDA.
  • KaruiFlowCython - Cython wrapper for the C++ code.

Installation

The project has several dependencies:

  1. CUDA 11.2.
  2. CUBLAS.
  3. CuTensor.

All of the dependencies are located in KaruiFlow/dependencies folder. You have to download and put corresponding .lib files into the lib folders.

The project is compiled via MVSC 2019. First compile KaruiFlow solution, then run pip install -e . in the KaruiFlowCython directory. At this point you're good to go.

Current state

The project is still in development and has a very limited set of features. Most of the features are implemented in Numpy only at the moment.

karuiflow's People

Contributors

okatanaaa avatar alexrikka 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.