rasbt
Re:ReMamba: Equip Mamba with Effective Long-Sequence Modeling
on Monday September 09, 2024 @12:10PM (#41489978)
Thanks for sharing!
Re:Developing an LLM: Building, Training, Finetuning (A 1h Video Expla...
on Friday June 14, 2024 @10:07AM (#40681057)
I disagree here: Setting up a large-scale pretraining run is super complex if you have to manage your distributed computing platform, but looking at how the training data looks like and is fed into an LLM is not that complex. If you are developing a product based on or with LLMs, it's worth spending a few hours to understand it on the big-picture level. I mean, look at how many people are confused why LLMs a) hallucinate facts, b) sometimes copy text passages verbatim, c) why they probably shouldn't be used as scientific calculators etc. All that could be much more clear if you know how they are trained.
Re:Developing an LLM: Building, Training, Finetuning (A 1h Video Expla...
on Friday June 14, 2024 @09:34AM (#40680773)
Agreed, understanding how a method works and how it would be done helps with developing an intuition for its limitations -- what it can and what it can't do
Re:Developing an LLM: Building, Training, Finetuning (A 1h Video Expla...
on Friday June 14, 2024 @09:26AM (#40680719)
thanks for mentioning, that makes me super happy to hear!
Re:Developing an LLM: Building, Training, Finetuning (A 1h Video Expla...
on Friday June 14, 2024 @09:14AM (#40680622)
I wouldn't pretrain from scratch, but continued pretraining is pretty popular for adapating LLMs to recent and/or custom data. (Sometimes this is referred to 'finetuning', however, not to be confused with 'instruction finetuning').
Re:Developing an LLM: Building, Training, Finetuning (A 1h Video Expla...
on Friday June 14, 2024 @08:52AM (#40680443)
Thanks, glad that this is helpful!
Evaluating LLMs locally, on a laptop, with Llama 3 and Ollama
Understanding the LLM Development Cycle: Building, Training, Finetuning
The latest major open LLM releases: Mixtral, Llama 3, Phi-3, and OpenELM
Finetuning an LLM-Based Spam Classifier with LoRA from Scratch
Finetune a GPT Model for Spam Detection on Your Laptop in Just 5 Minutes
Insights from Finetuning LLMs for Classification Tasks
Tips for LLM Pretraining and Evaluating Reward Models
Re:Thunder – A new compiler for PyTorch that can use many device execu...
on Saturday March 23, 2024 @10:36AM (#39800257)
Quoting from the readme, it embraces other executers, including torch.compile and also works with multiple GPUs:
> Thunder is a source-to-source compiler for PyTorch. It makes PyTorch programs faster by combining and using different hardware executors at once (ie: nvFuser, torch.compile, cuDNN, and TransformerEngine FP8).
Works on single accelerators and in multi-GPU settings. Thunder aims to be usable, understandable, and extensible.
Comparing 5 ways to implement Multihead Attention in PyTorch
AI Research in Feb 2024 – LoRA Successor, "Small" LLMs, Transparent LLM Research
Re:Understanding, using, and finetuning Gemma
on Saturday February 24, 2024 @11:36AM (#39492841)
Yes, it's somewhat similar to the 2B model as it uses the same vocabulary size.
Re:Understanding, using, and finetuning Gemma
on Saturday February 24, 2024 @10:42AM (#39492330)
Yes, it's definitely unfair to count it as a 7B model. In that case, we could call Llama 2, which is 6.6B parameters, a 6B (or even 5B) parameter model.
Re:Understanding, using, and finetuning Gemma
on Saturday February 24, 2024 @10:14AM (#39492057)
Yes, it's 8.5B params if you account for weight tying, and 9.3B if you count the embedding layer and output layer weights separately as shown in the 2nd figure in the article. In the paper, I think they justified 7B by only counting the non-embedding parameters (7,751,248,896), which is kind of cheating in my opinion, because if you do that, then Llama 2 is basically a 5B-6B param model.
Re:Understanding, using, and finetuning Gemma
on Saturday February 24, 2024 @10:04AM (#39491957)
> Gemma is a +9B model
Yes that's correct. It's 9.3B parameters if you count the embedding layer and final projection layer separately. However, since they used weight tying, the adjusted count is 8.5B as discussed in the article.
Understanding, using, and finetuning Gemma
Re:Implementing Weight-Decomposed Low-Rank Adaptation (DoRA) from Scratch
on Sunday February 18, 2024 @04:33PM (#39423608)
Thanks for the feedback. Clarifying definitely wouldn't hurt. Added a paragraph and new figure at the top of the DoRA section: https://magazine.sebastianraschka.com/i/141797214/introducin...
I haven't tried what you were suggesting, but that sounds actually plausible. Interesting idea!
Re:Implementing Weight-Decomposed Low-Rank Adaptation (DoRA) from Scratch
on Sunday February 18, 2024 @03:24PM (#39422792)
Not sure, but in general, it looks like ZipLoRA is only useful in specific contexts like when you have two different tasks you want to optimize for (like style and content in a vision context). DoRA is more general, it's basically normalizing and scaling the LoRA matrices to get much better performance. According to the paper, it even works great for low ranks, which also effectively makes it even more parameter-efficient than OG LoRA.
Re:Implementing Weight-Decomposed Low-Rank Adaptation (DoRA) from Scratch
on Sunday February 18, 2024 @02:16PM (#39422119)
Thanks, fixed!
Implementing Weight-Decomposed Low-Rank Adaptation (DoRA) from Scratch
AI Research Papers in Jan 2024: Model Merging, Mixtures of Experts, Smaller LLMs
Re:Implementing a ChatGPT-like LLM from scratch, step by step
on Tuesday January 30, 2024 @07:19AM (#39189238)
thanks for the kind words!
Re:Implementing a ChatGPT-like LLM from scratch, step by step
on Sunday January 28, 2024 @11:27AM (#39167176)
I'd say that I've finished all of my previous books, and I have no intention of doing anything different here. Of course, there's always the chance that I get run over by a bus or equivalent, but in that case, I assume that Manning would find a replacement (as per contract) who finishes the book. I don't think there are any benefits to be reaped from not finishing.
Re:Implementing a ChatGPT-like LLM from scratch, step by step
on Sunday January 28, 2024 @11:03AM (#39166951)
That's a good point. I may briefly mention RAG-like systems and add some literature references on this, but I am bit hesitant to give general advice because it's heavily project-dependent in my opinion. It usually also comes down in what form the client has the data and whether referencing from a database or documentation is desired or not. The focus of chapter 6+7 is also instruction-finetuning and alignment rather than finetuning for knowledge. The latter goal is best achieved done via pretraining (as opposed to finetuning) imho.
In any case, I just read this interesting case study last week on Finetuning vs RAG that might come in handy: "RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculture" (https://arxiv.org/abs/2401.08406)