LoRA explained (and a bit about precision and quantization)

preview_player
Показать описание
▬▬ Papers / Resources ▬▬▬

▬▬ Support me if you like 🌟

▬▬ Used Music ▬▬▬▬▬▬▬▬▬▬▬
Music from #Uppbeat (free for Creators!):
License code: M4FRIPCTVNOO4S8F

▬▬ Used Icons ▬▬▬▬▬▬▬▬▬▬

▬▬ Timestamps ▬▬▬▬▬▬▬▬▬▬▬
00:00 Introduction
00:20 Model scaling vs. fine-tuning
00:58 Precision & Quantization
01:30 Representation of floating point numbers
02:15 Model size
02:57 16 bit networks
03:15 Quantization
04:20 FLOPS
05:23 Parameter-efficient fine tuning
07:18 LoRA
08:10 Intrinsic Dimension
09:20 Rank decomposition
11:24 LoRA forward pass
11:49 Scaling factor alpha
13:40 Optimal rank
14:16 Benefits of LoRA
15:20 Implementation
16:25 QLoRA

▬▬ My equipment 💻
Рекомендации по теме
Комментарии
Автор

This is one of the easiest to follow explanations of LoRA that I’ve seen. Thanks a lot.

khangvutien
Автор

I've been scouring for a video like this. You're the best explanation so far!

teleprint-me
Автор

Another great video. I appreciate that you don't skip on giving context and lay a good foundation. Makes understanding a lot easier. Thanks!

InturnetHaetMachine
Автор

Nice job with summarizing transfer learning and LoRA!

chrisschrumm
Автор

Amazing video, feel like I finally understood every aspect of LoRA, thank you!

omgwenxx
Автор

Awesome! Waiting for a video on implementing LoRA from scratch in pytorch.

aurkom
Автор

Thanks a lot Amazing explanation, very clear and straightforward

mohamedezzat
Автор

Yes, indeed was hrlpful! Do you have a video on quantization?

unclecode
Автор

Good summary! Next time it would be great if you add headings to the tables that you show on the video. Sometimes it is hard to follow. For example, what is computational efficiency? is it inference time or inference time increase over the increase in performance (e.g. accuracy, recall, etc.)? Thanks.

nomad_d
Автор

I'm interested in fine-tuning a Large Language Model to specialize in specific knowledge, for example about fish species, such as which fish can be found in certain seas or which are prohibited from fishing. Could you guide me on how to prepare a dataset for this purpose? Should I structure it as simple input-output pairs (e.g., 'What fish are in the Mediterranean Sea?' -> 'XX fish can be found in the Mediterranean Sea'), or is it better to create a more complex dataset with multiple columns containing various details about each fish species? Any advice on dataset preparation for fine-tuning an LLM in this context would be greatly appreciated.

Thanks in advance!"

moonly
Автор

XAI techniques on LLMs is really interesting topic! When you would consider it?

ahmadalis
Автор

After watching many LoRA videos, this one finally makes me satisfied. I have a question: I see in the fine tuning code, they talk about merging lora adapters. What is that? Is this h + = x @ (W_A @ W_B) * alpha ? Can you mix and match adapters to improve the evaluation score?

SambitTripathy
Автор

how is Lora fine-tuning track changes from creating two decomposition matrix? How the ΔW is determined?

ArunkumarMTamil
Автор

Thank you very much for this amazing vide. However, although this was probably only for demo purposes of a forward pass after LoRA finetuning; the modified forward pass method you`ve shown might be mislieading; since the forward pass of the function is assumed to be entirely linear. So, does the addition of the LoRA finetuned weights to the base model weights happen directly within model weights file (like .safetensors) or can it be done on a higher level on pytorch or tensorflow?

Canbay
Автор

What softwares do you use to make videos?

darshandv
Автор

I think the lora is scaled by the square root of the rank, not the rank.

poketopa