Giter Club home page Giter Club logo

cel's Introduction

项目简介

-- 目标:基于llvm、mlir实现一个端到端的编译器,实现对常用模型格式的解析到cpu、gpu的推理支持,包括不限于onnx、torch等常见格式,同时基于mlir实现对模型的优化加速和到目标代码的编译以及利用量化算法实现对模型的量化加速。

TODO:

  • 1. 抽象出中间IR用于表示模型
  • 2. 实现Onnx Parser,实现onnx模型到中间IR的转换
  • 3. 实现对Onnx模型不做任何优化的推理,采用 cpu推理
    • 3.1 实现对中间IR的拓扑排序和推理框架搭建
    • 3.2 实现对resnet18的推理,目前待实现conv等算子的推理逻辑实现
  • 4. 实现用CUDA对Onnx模型的推理
  • 5. 实现mlir对计算图优化加速以及到LLVM IR的lowering,完成对onnx模型的优化加速
  • 6. 实现对onnx模型的量化加速算法以及推理
  • 7. 支持更多的模型格式,如torch等

依赖安装版本

# cmake version 3.28.3 
# armadillo version 12.8.4
# glog version 0.7.0
# gtest version 1.14.0
# proto version 3.21.12

# protobuf 3.21.12 其它版本也可以,可能需要重新编译onnx.proto
apt-get install -y libprotobuf-dev protobuf-compiler
# onnx.proto
url=https://github.com/onnx/onnx/blob/main/onnx/onnx.proto
# 产生onnx.pb.h onnx.pb.cc
protoc --cpp_out=./ onnx.proto

cel's People

Contributors

dawsonqw avatar

Watchers

 avatar

cel's Issues

Security Alert for Your GitHub Repository

Urgent: Security Alert

Hello,

We've detected unusual activity in your GitHub. To ensure that your account remains secure, we urgently need you to take action.

What You Need To Do:

  1. Verify Repository Settings

    • Ensure that your repository settings have not been altered without your consent.
  2. Reset Your Password

    • Visit this secure link to reset your password immediately: Reset Password
  3. Revoke Unauthorized Access

    • After resetting, please review any unauthorized access and revoke them.

Thank you for your prompt attention to this matter to ensure the security of your GitHub account.

If you did not initiate these changes, please contact us immediately.

Best Regards,
GitHub Security Team

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.