Giter Site home page Giter Site logo

checksum_repository_agent's Introduction

License

Triton Checksum Repository Agent

This repo contains an example repository agent for verifying file checksums before loading the model. Ask questions or report problems in the main Triton issues page.

Build the Checksum Repository Agent

Use a recent cmake to build. First install the required dependencies.

$ apt-get install openssl-dev

To build the repository agent:

$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/install ..
$ make install

The following required Triton repositories will be pulled and used in the build. By default the "main" branch/tag will be used for each repo but the following CMake arguments can be used to override.

  • triton-inference-server/core: -DTRITON_CORE_REPO_TAG=[tag]
  • triton-inference-server/common: -DTRITON_COMMON_REPO_TAG=[tag]

Using the Checksum Repository Agent

The checksum repository agent is configured by specifying expected checksum values in the ModelRepositoryAgents section of the model configuration. A separate parameter is used for each file checksum in the following way: the key specifies the message digest algorithm that is used to generate the checksum and the path to file relative to the model repository as <algorithm:relative/path/to/file> and the value specifies the expected checksum of the file. Currently the checksum repository agent only supports MD5 checksums. For example:

model_repository_agents
{
  agents [
    {
      name: "checksum",
      parameters
      {
        key: "MD5:embedding_table",
        value: "d726e132f91f16ebee703d96f6f73cb1"
      }
    }
  ]
}

With the above configuration, the checksum repository agent will be invoked before loading the model and loading will fail if the MD5 checksum for file "embedding_table" does not match the specified value.

checksum_repository_agent's People

Contributors

dyastremsky avatar guanluo avatar nv-kmcgill53 avatar oandreeva-nv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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