vix.ing · top · new · best · stats · spec

Extending Llama-3's Context Ten-Fold Overnight

2024/04/30 by Peitian Zhang, Zhang, Peitian, Ninglu Shao +11 · 1 voice · 1 citation
Computer Science · #Advanced Vision and Imaging #Computation and Language (cs.CL) #FOS: Computer and information sciences #cs.CL

paper · pdf · doi:10.48550/arxiv.2404.19553

openalex publication_date 2024/04/30 · arxiv published 2024/04/30 · arxiv updated 2024/04/30 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

We extend the context length of Llama-3-8B-Instruct from 8K to 80K via QLoRA fine-tuning. The entire training cycle is super efficient, which takes 8 hours on one 8xA800 (80G) GPU machine. The resulted model exhibits superior performances across a broad range of evaluation tasks, such as NIHS, topic retrieval, and long-context language understanding; meanwhile, it also well preserves the original capability over short contexts. The dramatic context extension is mainly attributed to merely 3.5K synthetic training samples generated by GPT-4 , which indicates the LLMs' inherent (yet largely underestimated) potential to extend its original context length. In fact, the context length could be extended far beyond 80K with more computation resources. Therefore, the team will publicly release the entire resources (including data, model, data generation pipeline, training code) so as to facilitate the future research from the community: \urlhttps://github.com/FlagOpen/FlagEmbedding.

Cited by

Discussions

Related