GithubHelp home page GithubHelp logo

maekawatoshiki / altius Goto Github PK

View Code? Open in Web Editor NEW
88.0 88.0 6.0 4.1 MB

Small ONNX inference runtime written in Rust

License: MIT License

Rust 80.50% Python 13.40% Shell 0.83% HTML 0.05% TypeScript 0.97% CSS 0.04% C++ 2.62% C 0.88% Makefile 0.15% Cuda 0.56%
deep-neural-networks onnx rust wasm

altius's Introduction

uint256_t

altius's People

Contributors

maekawatoshiki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

altius's Issues

Publish to crates.io

Hello!

was looking to play with this as part of a larger rust program. Is it possible to publish the core to crates.io so I can import the inference part of this and build my own tooling around it?

Add more optimizers

  • MatMul+Add fusion
    • MatMul+Add โ†’ Gemm
      • image
  • Reshape+Transpose fusion
    • image
  • Automatic fusion for element-wise operations

Support ops in core

core support completed (interpreter not yet):

  • LeakyRelu
  • Resize
  • Concat
  • Transpose
  • Squeeze
  • Div
  • ReduceMin
  • Round
  • Sub
  • Loop
  • Tile
  • Cast
  • Slice
  • Exp
  • Sigmoid
  • Unsqueeze
  • NonMaxSuppression

Support more ops in interpreter

Supported kernels:

  • LeakyRelu
  • Resize
  • Concat
  • Transpose
  • Squeeze
  • Div
  • ReduceMin
  • Round
  • Sub
  • Loop
  • Tile
  • Cast
  • Slice
  • Exp
  • Sigmoid
  • Unsqueeze
  • NonMaxSuppression

Add CPU backend

  • CPU backend generates C source code, compiles it, and runs it.
  • Compared to Interpreter backend, kernel fusion is possible on CPU backend.

The following examples have been tested and work well:

  • mnist
  • deit
  • mobilenet
  • vit
  • deeplab
  • fcn
  • yolov5
  • fugumt
  • gpt-2

Fast `softmax` kernel

  • We need a better implementation (for CPU backend) for softmax.
runtime softmax in gpt2 (ms)
onnxruntime 1.5
altius 2.4

Refactor `Op::compute_output_shapes()`

It seems to be ideal for the function to have a signature such as:

impl Model {
  fn compute_output_shapes(&self, node: &Node, inputs: &[&Tensor]) ->
    Result<(Op, Vec<TypedFixedShape>)>;
}

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.