# microsoft/LLMLingua

> \[EMNLP'23, ACL'24\] To speed up LLMs' inference and enhance LLM's perceive of key information, compress the prompt and KV\-Cache, which achieves up to 20x compression with minimal performance loss\. 

Canonical: https://starboard.codevetter.com/explore/microsoft/LLMLingua

[Back to Discover](https://starboard.codevetter.com/discover)

![microsoft](https://avatars.githubusercontent.com/u/6154722?v=4&s=40)

microsoft

# LLMLingua

[View on GitHub
](https://github.com/microsoft/LLMLingua)

\[EMNLP'23, ACL'24\] To speed up LLMs' inference and enhance LLM's perceive of key information, compress the prompt and KV\-Cache, which achieves up to 20x compression with minimal performance loss\.

6\.9k stars

Python

Updated 19h ago

Created Jul 7, 2023

## Star history

\+632 stars
10\.2% growth


## Detected tools

No detected tools yet\.

## Similar projects

[![LMCache](https://avatars.githubusercontent.com/u/171091289?v=4&s=24)

LMCache/ LMCache

LMCache: Supercharge Your LLM with the Fastest KV Cache Layer

Python 12k 69%](https://starboard.codevetter.com/explore/LMCache/LMCache)[![intel](https://avatars.githubusercontent.com/u/17888862?v=4&s=24)

intel/ ipex\-llm

Accelerate local LLM inference and finetuning \(LLaMA, Mistral, ChatGLM, Qwen, DeepSeek, Mixtral, Gemma, Phi, MiniCPM, Qwen\-VL, MiniCPM\-V, etc\.\) on Intel XPU \(e\.g\., local PC with iGPU and NPU, discrete GPU such as Arc, Flex and Max\); seamlessly integrate with llama\.cpp, Ollama, HuggingFace, LangChain, LlamaIndex, vLLM, DeepSpeed, Axolotl, etc\.

Python 8\.8k 66%](https://starboard.codevetter.com/explore/intel/ipex-llm)[![Lightning\-AI](https://avatars.githubusercontent.com/u/58386951?v=4&s=24)

Lightning\-AI/ litgpt

20\+ high\-performance LLMs with recipes to pretrain, finetune and deploy at scale\.

Python 14k 65%](https://starboard.codevetter.com/explore/Lightning-AI/litgpt)[![llm\-d](https://avatars.githubusercontent.com/u/211385051?v=4&s=24)

llm\-d/ llm\-d

State of the art inference performance with modern accelerators on Kubernetes

Python 5\.3k 64%](https://starboard.codevetter.com/explore/llm-d/llm-d)[![vllm\-project](https://avatars.githubusercontent.com/u/136984999?v=4&s=24)

vllm\-project/ vllm

A high\-throughput and memory\-efficient inference and serving engine for LLMs

Python 97k 65%](https://starboard.codevetter.com/explore/vllm-project/vllm)[![xlite\-dev](https://avatars.githubusercontent.com/u/204302598?v=4&s=24)

xlite\-dev/ Awesome\-LLM\-Inference

📚A curated list of Awesome LLM/VLM Inference Papers with Codes: Flash\-Attention, Paged\-Attention, WINT8/4, Parallelism, etc\.🎉

Python 5\.6k 65%](https://starboard.codevetter.com/explore/xlite-dev/Awesome-LLM-Inference)[![zilliztech](https://avatars.githubusercontent.com/u/18416694?v=4&s=24)

zilliztech/ GPTCache

Semantic cache for LLMs\. Fully integrated with LangChain and llama\_index\.

Python 8\.2k 64%](https://starboard.codevetter.com/explore/zilliztech/GPTCache)[![NVIDIA](https://avatars.githubusercontent.com/u/1728152?v=4&s=24)

NVIDIA/ TensorRT\-LLM

TensorRT LLM provides users with an easy\-to\-use Python API to define Large Language Models \(LLMs\) and supports state\-of\-the\-art optimizations to perform inference efficiently on NVIDIA GPUs\. TensorRT LLM also contains components to create Python and C\+\+ runtimes that orchestrate the inference execution in a performant way\.

Python 15k 63%](https://starboard.codevetter.com/explore/NVIDIA/TensorRT-LLM)
