--- language: - en license: apache-2.0 model-index: - name: LongQLoRA-Llama2-7b-8k results: - task: type: text-generation name: Text Generation dataset: name: AI2 Reasoning Challenge (25-Shot) type: ai2_arc config: ARC-Challenge split: test args: num_few_shot: 25 metrics: - type: acc_norm value: 52.47 name: normalized accuracy source: url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=YeungNLP/LongQLoRA-Llama2-7b-8k name: Open LLM Leaderboard - task: type: text-generation name: Text Generation dataset: name: HellaSwag (10-Shot) type: hellaswag split: validation args: num_few_shot: 10 metrics: - type: acc_norm value: 78.11 name: normalized accuracy source: url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=YeungNLP/LongQLoRA-Llama2-7b-8k name: Open LLM Leaderboard - task: type: text-generation name: Text Generation dataset: name: MMLU (5-Shot) type: cais/mmlu config: all split: test args: num_few_shot: 5 metrics: - type: acc value: 45.37 name: accuracy source: url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=YeungNLP/LongQLoRA-Llama2-7b-8k name: Open LLM Leaderboard - task: type: text-generation name: Text Generation dataset: name: TruthfulQA (0-shot) type: truthful_qa config: multiple_choice split: validation args: num_few_shot: 0 metrics: - type: mc2 value: 38.94 source: url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=YeungNLP/LongQLoRA-Llama2-7b-8k name: Open LLM Leaderboard - task: type: text-generation name: Text Generation dataset: name: Winogrande (5-shot) type: winogrande config: winogrande_xl split: validation args: num_few_shot: 5 metrics: - type: acc value: 72.06 name: accuracy source: url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=YeungNLP/LongQLoRA-Llama2-7b-8k name: Open LLM Leaderboard - task: type: text-generation name: Text Generation dataset: name: GSM8k (5-shot) type: gsm8k config: main split: test args: num_few_shot: 5 metrics: - type: acc value: 11.52 name: accuracy source: url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=YeungNLP/LongQLoRA-Llama2-7b-8k name: Open LLM Leaderboard --- # LongQLoRA: Efficient and Effective Method to Extend Context Length of LLMs ## Technical Report Technical Report: [LongQLoRA: Efficient and Effective Method to Extend Context Length of Large Language Models](https://arxiv.org/abs/2311.04879) ## Introduction LongQLoRA is a memory-efficient and effective method to extend context length of Large Language Models with less training GPUs. **On a single 32GB V100 GPU**, LongQLoRA can extend the context length of LLaMA2 7B and 13B from 4096 to 8192 and even to 12k. LongQLoRA achieves competitive perplexity performance on PG19 and Proof-pile dataset after only 1000 finetuning steps, our model outperforms LongLoRA and is very close to MPT-7B-8K. Evaluation perplexity on PG19 validation and Proof-pile test datasets in evaluation context length of 8192: | Model | PG19 | Proof-pile | |---------------------|----------|------------| | LLaMA2-7B | \>1000 | \>1000 | | MPT-7B-8K | 7.98 | 2.67 | | LongLoRA-LoRA-7B-8K | 8.20 | 2.78 | | LongLoRA-Full-7B-8K | 7.93 | 2.73 | | **LongQLoRA-7B-8K** | **7.96** | **2.73** | # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_YeungNLP__LongQLoRA-Llama2-7b-8k) | Metric |Value| |---------------------------------|----:| |Avg. |49.75| |AI2 Reasoning Challenge (25-Shot)|52.47| |HellaSwag (10-Shot) |78.11| |MMLU (5-Shot) |45.37| |TruthfulQA (0-shot) |38.94| |Winogrande (5-shot) |72.06| |GSM8k (5-shot) |11.52|