Giter Site home page Giter Site logo

void-main / fastertransformer_backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from triton-inference-server/fastertransformer_backend

22.0 2.0 16.0 2.78 MB

License: BSD 3-Clause "New" or "Revised" License

Shell 10.69% C++ 11.85% Python 74.27% CMake 2.76% Dockerfile 0.44%

fastertransformer_backend's Introduction

NOTE: Fastertransformer backend is currently undergoing restructuring. Build instructions are only tested with Triton container versions <= 23.04.

1. FasterTransformer Backend

The triton faster transformer backend works as an interface to call FasterTransformer in triton.

All necessary implements are actually in FasterTransformer repository.

The CMakeList.txt will fetch relative repository to organize and compile the project with:

  • this repository itself
  • Faster Transformer repository
  • 3rdparty
    • cutlass
    • Megatron
    • etc...

2. LLaMa support

To check how faster transformer support LLaMa, and how triton support LLaMa, here is the structure:

Faster Transformer Library
├── examples
│   └── cpp
│       └── llama
│           ├── CMakeList.txt
│           ├── llama_config.ini
│           ├── llama_example.cc
│           └── llama_triton_example.cc
└── src
    └── fastertransformer
        ├── models
        │   └── llama
        │       ├── CMakeList.txt
        │       ├── Llama.h
        │       ├── LlamaContextDecoder.h
        │       ├── LlamaDecoder.h
        │       ├── LlamaDecoderLayerWeight.h
        │       └── LlamaWeight.h
        └── triton_backend
            └── llama
                ├── CMakeList.txt
                ├── LlamaTritonModel.h
                └── LlamaTritonModelInstance.h

Faster Transformer Backend
├── all_models
│   └── llama
│       ├── ensemble
│       ├── fastertransformer
│       ├── postprocessing
│       └── preprocessing
└── src
    └── libfastertransformer.cc

2.1 build your faster transformer library

The faster transformer repository work as a library to support different models.

2.1.1 (essential) faster transformer library for your_model

examples/cpp/your_model is essential if you want to run your model on faster transformer.

2.1.2 (essential) examples for your_model

src/fastertransformer/models/your_model is essential because it stores your_model_config.ini, and other files (bad_words.csv) to ensure your model to work well.

2.1.3 (optional) triton backend

src/triton_backend/your/model is optional.

Only when you want to deploy your model on triton server with faster transformer backend, you need to implement this part.

3. Quick Start

We have deployed llama-7b to triton inference server, see the llama_guide to boost your deploying work and get familiar with NVIDIA Triton Inference Server

fastertransformer_backend's People

Contributors

ankit-db avatar byshiue avatar gwangsoohong avatar happened avatar jbkyang-nvi avatar jsoref avatar rr0gi avatar samuraibupt avatar thytu avatar void-main avatar yuanzhedong avatar

Stargazers

 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

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.