Better HN
topnewbestaskshowjobs
Log inSign up

rasbt

1,717 karma · joined Jun 6, 2014 (12y ago) · 262 submissions

AI researcher and statistics professor
Submissions

comment 2y ago · link · parent

Thanks for sharing!

2.

Show HN: New LLM Pre-Training and Post-Training Paradigms(sebastianraschka.com ↗)

2 points · by rasbt · 2y ago · discuss

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

thanks for mentioning, that makes me super happy to hear!

comment 2y ago · link · parent

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').

comment 2y ago · link · parent

Thanks, glad that this is helpful!

8.

Developing an LLM: Building, Training, Finetuning (A 1h Video Explainer)(youtube.com ↗)

43 points · by rasbt · 2y ago · 12 comments

9.

Evaluating LLMs locally, on a laptop, with Llama 3 and Ollama(github.com ↗)

2 points · by rasbt · 2y ago · discuss

10.

Understanding the LLM Development Cycle: Building, Training, Finetuning(magazine.sebastianraschka.com ↗)

3 points · by rasbt · 2y ago · discuss

11.

The latest major open LLM releases: Mixtral, Llama 3, Phi-3, and OpenELM(magazine.sebastianraschka.com ↗)

5 points · by rasbt · 2y ago · discuss

12.

Finetuning an LLM-Based Spam Classifier with LoRA from Scratch(github.com ↗)

14 points · by rasbt · 2y ago · discuss

13.

Finetune a GPT Model for Spam Detection on Your Laptop in Just 5 Minutes(github.com ↗)

3 points · by rasbt · 2y ago · discuss

14.

Insights from Finetuning LLMs for Classification Tasks(github.com ↗)

2 points · by rasbt · 2y ago · discuss

15.

Tips for LLM Pretraining and Evaluating Reward Models(sebastianraschka.com ↗)

2 points · by rasbt · 2y ago · discuss

comment 2y ago · link · parent

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.

17.

Comparing 5 ways to implement Multihead Attention in PyTorch(github.com ↗)

3 points · by rasbt · 2y ago · discuss

18.

AI Research in Feb 2024 – LoRA Successor, "Small" LLMs, Transparent LLM Research(sebastianraschka.com ↗)

3 points · by rasbt · 2y ago · discuss

comment 2y ago · link · parent

Yes, it's somewhat similar to the 2B model as it uses the same vocabulary size.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

> 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.

23.

Understanding, using, and finetuning Gemma(lightning.ai ↗)

118 points · by rasbt · 2y ago · 48 comments

comment 2y ago · link · parent

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!

comment 2y ago · link · parent

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.
12345
9