Git Product home page Git Product logo

elib's Introduction

ELIB - Edge LLM Inference Benchmarking Tool

  • With the significant success achieved by large language models (LLMs) like ChatGPT and LLaMA, cloud computing-based LLM inference services have consistently presented challenges for users in specific scenarios due to data privacy and latency concerns. Different edge platforms have varying characteristics, making it very challenging to deploy and benchmark LLMs, which require large memory capacity and high computing power.

  • To address these challenges, we introduce ELIB (Edge LLM Inference Benchmarking), a comprehensive tool designed to evaluate the overall LLM inference performance of different edge computing platforms. ELIB provides a collection of comprehensive metrics to describe the benchmarking results and offers insights to guide the future work of inference LLMs on edge computing platforms.

Features

  • Cross-Platform Benchmarking: Deploy ELIB on PC, Mobile, and IoT edge platforms.
  • Quantized Models: Utilize quantized models for accurate benchmarking.
  • Comprehensive Metrics: Evaluate and analyze performance using a set of comprehensive metrics.
  • Practical Insights: Obtain practical insights to guide future developments in LLM inference on edge platforms.

Advantages

  • Simple structure, easy to get started and learning, and decoupled the framework part from the kernel part.
  • Defined a KVstorage type for easy caching and management.
  • High efficiency, ported most of the kernels in llama.cpp.
  • Compatible with multiple LLaMA family model formats.
  • Supports CPU and GPU, optimized for Arm.
  • Can be deployed on IOT, mobile phones, PC, with acceptable speed.

How to

Currently, ELIB utilizes the same models as llama.cpp and can download the original models from the llama project. Additionally, quantized models are available for direct download from HuggingFace /paiphd/ELIB. The provided quantized models include q4_0, q4_1, q5_0, q5_1, and q8_0. Please put these files in /models folder.

Compile

git clone https://github.com/hchenphd/ELIB.git
cd ELIB/cmake
cmake ..
make

Usage

ELIB can be deployed and used to benchmark LLM inference performance on different edge platforms. Below are the basic usage instructions:

FLOPS benchmarking

./flops_matmult -t <threads> -i <iterations>

Throughput and Latency benchmarking

./throughput_latency -m <model_name> -p <prompt> -ngl <GPU acceleration>

Accuracy

./throughput_latency -m <model_name> -p <prompt> -ngl <GPU acceleration>

License

Apache Licens 2.0

elib's People

Contributors

hchenphd avatar

Watchers

 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.