#164 · Primary category: Deep Learning Frameworks
LongLoRA
Code and documents of LongLoRA and LongAlpaca (ICLR 2024 Oral)
Project last updated:08/14/24
GitHub Stars
2.7K
Forks
280
Contributors
17
License
Apache-2.0
Why we included this project
Fine-tuning an LLM to handle much longer contexts usually demands training on long sequences at full cost, which blows up compute and memory budgets fast. LongLoRA sidesteps that by combining LoRA-style low-rank updates with a shift sparse attention pattern, so you can stretch effective context to tens of thousands of tokens while updating only a fraction of the parameters. The repo is a complete, reproducible package: training scripts, the LongAlpaca-12k instruction dataset, and checkpoints from 7B up to 70B covering 8k to 100k contexts, plus QLoRA support to trim GPU memory and StreamingLLM inference for long multi-turn conversations. If you already build on Hugging Face and want to try longer-context fine-tuning on your own data, this is a well-documented place to start.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.