princeton-nlp / AutoCompressor-Llama-2-7b-6k

huggingface.co
Total runs: 392
24-hour runs: 5
7-day runs: 67
30-day runs: 123
Model's Last Updated: November 22 2023

Introduction of AutoCompressor-Llama-2-7b-6k

Model Details of AutoCompressor-Llama-2-7b-6k

license: apache-2.0

Paper : Adapting Language Models to Compress Contexts

Code : https://github.com/princeton-nlp/AutoCompressors

Models :


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.

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

See Adapting Language Models to Compress Contexts for more evaluations, including evaluation on 11 in-context learning tasks.

Bibtex
@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:

https://choosealicense.com/licenses/apache-2.0

AutoCompressor-Llama-2-7b-6k huggingface.co

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 Url

https://huggingface.co/princeton-nlp/AutoCompressor-Llama-2-7b-6k

princeton-nlp AutoCompressor-Llama-2-7b-6k online free

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:

https://huggingface.co/princeton-nlp/AutoCompressor-Llama-2-7b-6k

AutoCompressor-Llama-2-7b-6k install

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:

https://huggingface.co/princeton-nlp/AutoCompressor-Llama-2-7b-6k

Url of AutoCompressor-Llama-2-7b-6k

AutoCompressor-Llama-2-7b-6k huggingface.co Url

Provider of AutoCompressor-Llama-2-7b-6k huggingface.co

princeton-nlp
ORGANIZATIONS

Other API from princeton-nlp