GithubHelp home page GithubHelp logo

jonasjucker / infero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ecmwf/infero

0.0 0.0 2.0 16.22 MB

A lower-level API for Machine Learning inference in operations

License: Apache License 2.0

Shell 4.16% C++ 50.22% Python 9.75% C 8.62% Fortran 14.72% CMake 12.54%

infero's Introduction

Infero

Description

Infero runs a pre-trained ML model for inference. It can be deployed on a HPC system without the need for high-level python libraries (e.g. TensorFlow, PyTorch, etc..)

Disclaimer

This software is still under heavy development and not yet ready for operational use

Requirements

Build dependencies:

Runtime dependencies:

Optional runtime dependencies:

Installation

Infero employs an out-of-source build/install based on CMake. Make sure ecbuild is installed and the ecbuild executable script is found ( which ecbuild ). Now proceed with installation as follows:

# Environment --- Edit as needed
srcdir=$(pwd)
builddir=build
installdir=$HOME/local  

# 1. Create the build directory:
mkdir $builddir
cd $builddir

# 2. Run CMake
ecbuild --prefix=$installdir -- -DECKIT_PATH=<path/to/eckit/install> $srcdir

# 3. Compile / Install
make -j10
make install

Useful cmake arguments:

  • -DENABLE_TF_LITE=ON
  • -DTENSORFLOWLITE_PATH=</path/to/tensorflow/sources>
  • -DTENSORFLOWLITE_ROOT=</path/to/tflite/root/dir>
  • -DENABLE_TF_C=ON
  • -DTENSORFLOWC_ROOT=</path/to/tf_c/root/dir>
  • -DENABLE_ONNX=ON
  • -DONNX_ROOT=</path/to/onnxruntime/root/dir>
  • -DENABLE_TENSORRT=ON
  • -DTENSORRT_ROOT=</path/to/tensorRT/root/dir>

Step-by-Step Installation scripts

Utility installation scripts are provided in the /dev directory and can be used for test/development installations of Infero.

  • env.sh : defines installation environment
  • 1_install_deps.sh : installs dependencies
  • 2_install_infero.sh : installs Infero
  • 3_run_tests.sh : run Infero tests

Installation of Python scripts

Create and source a conda environment containing all the required dependencies:

cd scripts

source scripts_env.sh

infero's People

Contributors

antouk avatar antons-it avatar tlmquintino avatar dvuckovic avatar

Forkers

schemms ruestefa

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.