waifuoid / llmlingua-api

api for llmlingua
MIT License
1 stars 0 forks source link

(Long)LLMLingua: Enhancing Large Language Model Inference via Prompt Compression

| Project Page | LLMLingua Paper | LongLLMLingua Paper | HF Space Demo |

Install & Run

# install
pip install .
# copy config and edit it.
cp config_template.yaml config.yaml
# run
python main.py

API

Example

Reference

https://llmlingua.com/

https://github.com/microsoft/LLMLingua

https://zhuanlan.zhihu.com/p/660805821