So this can tune a model 7X faster than LoRA, which was already a massive speed boost? Curious to see what this will do to the LLaMA-derivative community in particular.
7x faster compared to grid-search LoRA for best rank. I am not convinced that the "best rank" is not just the highest possible with your compute budget, personally.
DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
21–30 of 37 posts
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#22When fine tuning an LLM you can use the LORA technique to make the fine tuning faster. LORA involves fine tuning a subset of parameters (really it's a low rank approximation of the weight matrix determined by picking the n largest eigenvalues in the SVD decomposition). The size of the subset is determined by the rank. The smaller the rank the faster the fine tuning. However if you make the rank too small then quality…
Would you say the following understanding is correct?:
- You can fine-tune a model, regardless of whether it has been quantized (as in the 4-bit versions of models made to fit in consumer grade RAM sizes) or not.
- You can fine-tune any model on any hardware, provided it fits into RAM. That means, that the 30B llama-derived models in their 4-bit quantized version and 19.5GB of VRAM requirement can be fine-tuned on consumer grade GPUs with 24gb of VRAM. (Like the RTX 3090 and 4090)
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#23Earlier quoted context omitted.
7x faster compared to grid-search LoRA for best rank. I am not convinced that the "best rank" is not just the highest possible with your compute budget, personally.
Highest posssible in which combination, though? If you’re fine tuning a model with N layers, then you could apply LoRA to any or all of them. Maybe it’s better to concentrate effort unevenly, in which case a uniform increase of adaptation rank (to compute budget) could still be subpar.
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#24When fine tuning an LLM you can use the LORA technique to make the fine tuning faster. LORA involves fine tuning a subset of parameters (really it's a low rank approximation of the weight matrix determined by picking the n largest eigenvalues in the SVD decomposition). The size of the subset is determined by the rank. The smaller the rank the faster the fine tuning. However if you make the rank too small then quality…
Fascinating progress. Would you say the following understanding is correct?: - You can fine-tune a model, regardless of whether it has been quantized (as in the 4-bit versions of models made to fit in consumer grade RAM sizes) or not. - You can fine-tune any model on any hardware, provided it fits into RAM. That means, that the 30B llama-derived models in their 4-bit quantized version and 19.5GB of VRAM requirement c…
To the second, I'm not sure that the RAM requirements are the same to train because you have to preserve the state which takes extra memory.
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#25Kudos for the authors for providing the code https://github.com/huawei-noah/KD-NLP/tree/main/DyLoRA and the roberta example. Considering the current state of the OSS LLM community, I'm guessing someone is already porting it to Llama and gpt-style models.
Adding this to the huggingface peft library would be amazing. That's the main library that people using LoRA are currently using. https://github.com/huggingface/peft/issues/289
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#26Earlier quoted context omitted.
Fascinating progress. Would you say the following understanding is correct?: - You can fine-tune a model, regardless of whether it has been quantized (as in the 4-bit versions of models made to fit in consumer grade RAM sizes) or not. - You can fine-tune any model on any hardware, provided it fits into RAM. That means, that the 30B llama-derived models in their 4-bit quantized version and 19.5GB of VRAM requirement c…
Yes to the first. To the second, I'm not sure that the RAM requirements are the same to train because you have to preserve the state which takes extra memory.
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#27Earlier quoted context omitted.
Yes to the first. To the second, I'm not sure that the RAM requirements are the same to train because you have to preserve the state which takes extra memory.
Is it possible for many people to simultaneously fine tune models on different data and then combine the new models into something improved?
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#28Earlier quoted context omitted.
What is the fastest way to show that?
Fastest way to show what? That you should train with the maximum sized LoRA you can? Because the only upsides to having a smaller LoRA are in the training time, and if you are already able to train a DynLoRA with max rank 8, then you should just train a LoRA with that rank.
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#29Earlier quoted context omitted.
Yes to the first. To the second, I'm not sure that the RAM requirements are the same to train because you have to preserve the state which takes extra memory.
Is it possible for many people to simultaneously fine tune models on different data and then combine the new models into something improved?
Re: DyLoRA: Parameter Efficient Tuning of Pre-Trained Models
#30Earlier quoted context omitted.
Is it possible for many people to simultaneously fine tune models on different data and then combine the new models into something improved?
Yes, but the naïve way to combine rank k adaptations created by n different people would be to concatenate them to a rank nk adaptation, which wouldn't be as lightweight and easy to share, so you'd likely be better off mushing them into the baseline model.
I have yet to understand the difference between fine tuning and training and therefore yet to understand if a distributed decentralized eventually consistent training approach is a possibility or simply not realistic.