Views
No views yet
LlamaForCausalLM model, or download the AutoCompressor repository and load the model as follows:from auto_compressor_llama import LlamaAutoCompressorModel
model = LlamaAutoCompressorModel.from_pretrained("princeton-nlp/FullAttention-Llama-2-7b-6k")| Context Tokens | 0 | 512 | 2048 | 4096 | 6144 |
|---|---|---|---|---|---|
| Pre-trained Llama-2-7b | 5.52 | 5.15 | 4.98 | - | - |
| FullAttention-Llama-2-7b-6k | 5.40 | 5.06 | 4.88 | 4.80 | 4.76 |
| AutoCompressor-Llama-2-7b-6k | 5.40 | 5.16 | 5.11 | 5.08 | 5.07 |
@misc{chevalier2023adapting,
title={Adapting Language Models to Compress Contexts},
author={Alexis Chevalier and Alexander Wettig and Anirudh Ajith and Danqi Chen},
year={2023},
eprint={2305.14788},
archivePrefix={arXiv},
primaryClass={cs.CL}
}