AutoCompressor-Llama-2-7b-6k is a model fine-tuned from
meta-llama/Llama-2-7b-hf
following the AutoCompressor method in
Adapting Language Models to Compress Contexts
.
This model is fine-tuned on 15B tokens from
RedPajama dataset
. The pre-trained Llama-2 model is fine-tuned on sequences of 6,144 tokens with 50 summary vectors, summary accumulation, randomized segmenting, and stop-gradients.
To get started, download the
AutoCompressor
repository and load the model as follows:
from auto_compressor_llama import LlamaAutoCompressorModel
model = LlamaAutoCompressorModel.from_pretrained("princeton-nlp/AutoCompressor-Llama-2-7b-6k")
Evaluation
We record the perplexity achieved by our Llama-2-7B models on segments of 2048 tokens, conditioned on different amounts of context.
FullAttention-Llama-2-7b-6k uses full uncompressed contexts whereas AutoCompressor-Llama-2-7b-6k compresses segments of 2048 tokens into 50 summary vectors.
@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}
}
Runs of princeton-nlp AutoCompressor-Llama-2-7b-6k on huggingface.co
392
Total runs
5
24-hour runs
63
3-day runs
67
7-day runs
123
30-day runs
More Information About AutoCompressor-Llama-2-7b-6k huggingface.co Model
More AutoCompressor-Llama-2-7b-6k license Visit here:
AutoCompressor-Llama-2-7b-6k huggingface.co is an AI model on huggingface.co that provides AutoCompressor-Llama-2-7b-6k's model effect (), which can be used instantly with this princeton-nlp AutoCompressor-Llama-2-7b-6k model. huggingface.co supports a free trial of the AutoCompressor-Llama-2-7b-6k model, and also provides paid use of the AutoCompressor-Llama-2-7b-6k. Support call AutoCompressor-Llama-2-7b-6k model through api, including Node.js, Python, http.
AutoCompressor-Llama-2-7b-6k huggingface.co is an online trial and call api platform, which integrates AutoCompressor-Llama-2-7b-6k's modeling effects, including api services, and provides a free online trial of AutoCompressor-Llama-2-7b-6k, you can try AutoCompressor-Llama-2-7b-6k online for free by clicking the link below.
princeton-nlp AutoCompressor-Llama-2-7b-6k online free url in huggingface.co:
AutoCompressor-Llama-2-7b-6k is an open source model from GitHub that offers a free installation service, and any user can find AutoCompressor-Llama-2-7b-6k on GitHub to install. At the same time, huggingface.co provides the effect of AutoCompressor-Llama-2-7b-6k install, users can directly use AutoCompressor-Llama-2-7b-6k installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
AutoCompressor-Llama-2-7b-6k install url in huggingface.co: