paper-with-me

Papers

LongQLoRA: Efficient and Effective Method to Extend Context Length of Large Language Models

2023-11-08 · Jianxin Yang

We present LongQLoRA, an efficient and effective method to extend context length of large language models with less training resources. LongQLoRA combines the advantages of Position Interpolation, QLoRA and Shift Short Attention of LongLoRA. With a single 32GB V100 GPU, LongQLoRA can extend the context length of LLaMA2 7B and 13B from 4096 to 8192 and even to 12k within 1000 finetuning steps. LongQLoRA achieves competitive perplexity performance on PG19 and Proof-pile datasets, our model outperforms LongLoRA and is very close to MPT-7B-8K within the evaluation context length of 8192. We collect and build 39k long instruction data to extend context length of Vicuna-13B from 4096 to 8192 and achieve good performance both in long and short context generation task. We also do some ablation experiments to study the effect of LoRA rank, finetuning steps and attention patterns in inference.The model weights, training data and code are avaliable at https://github.com/yangjianxin1/LongQLoRA.

📄 PDF Abstract BibTeX arXiv:2311.04879

Code (2)

yangjianxin1/longqlora 공식 구현 pytorch
yangjianxin1/firefly pytorch

Tasks

8kGPU

Similar Papers 제목 키워드 기반

CLEX: Continuous Length Extrapolation for Large Language Models

2023-10-25 · Guanzheng Chen, Xin Li, Zaiqiao Meng, Shangsong Liang 외

Transformer-based Large Language Models (LLMs) are pioneering advances in many natural language processing tasks, however, their exceptional capabilities are restricted within the preset context window of Transformer. Po…

4kPosition

ETT: Expanding the Long Context Understanding Capability of LLMs at Test-Time

2025-07-08 · Kiarash Zahirnia, Zahra Golpayegani, Walid Ahmed, Yang Liu arxiv

Transformer-based Language Models' computation and memory overhead increase quadratically as a function of sequence length. The quadratic cost poses challenges when employing LLMs for processing long sequences. In this w…

LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuning

2024-01-02 · Hongye Jin, Xiaotian Han, Jingfeng Yang, Zhimeng Jiang 외

It is well known that LLMs cannot generalize well to long contexts whose lengths are larger than the training sequence length. This poses challenges when employing LLMs for processing long input sequences during inferenc…

DCIS: Efficient Length Extrapolation of LLMs via Divide-and-Conquer Scaling Factor Search

2024-12-25 · Lei Yang, Shaoyang Xu, Deyi Xiong

Large language models (LLMs) based on the Transformer architecture usually have their context length limited due to the high training cost. Recent advancements extend the context window by adjusting the scaling factors o…

LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens

2024-02-21 · Yiran Ding, Li Lyna Zhang, Chengruidong Zhang, Yuanyuan Xu 외

Large context window is a desirable feature in large language models (LLMs). However, due to high fine-tuning costs, scarcity of long texts, and catastrophic values introduced by new token positions, current extended con…

8k