shannonlal / llm-context-compressor

This is LLM Compress Prompt Tool for reducing the size of prompts for llm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

llm-compress-prompt

This is LLM Compress Prompt Tool for reducing the size of prompts for llm

The following Library is based upon Microsoft's LLMLinqua (https://github.com/microsoft/LLMLingua) prompt compression technique. LLMLingua is a highly performant prompt compression technique; however, it is designed for organizations that host their models. LLM Compress Prompt is a library that provides similar prompt compression; however, it is designed to not run on a GPU and instead uses third party LLMs to support the compression technique.

About

This is LLM Compress Prompt Tool for reducing the size of prompts for llm

License:Apache License 2.0


Languages

Language:Python 98.4%Language:Shell 1.6%