Harm de Vries Profile picture
Apr 13, 2023 8 tweets 3 min read Read on X
Surprised by the loss of LLaMA-7B still going down after 1 trillion tokens?

In a new blogpost, I explain why you shouldn't be and argue we haven't reached the limit of the recent trend of training smaller LLMs for longer:
harmdevries.com/post/model-siz…

Analysis in 🧵👇 Image
The result follows from the Chinchilla scaling laws providing insight into the model size and compute overhead trade-off.

Let's start Chinchilla's 3rd approach: it models the loss L as a function of the number of parameters N and number of training tokens D. Image
To derive the trade-off, we can ask to scale the optimal parameters by k_N and training tokens by k_D while reaching the same loss as the compute-optimal model. Image
The exact solution for the scaling factor k_D is in the blogpost. But let's look at the plot of the compute overhead against the model size reduction k_N. Interestingly, this plot is identical across all compute budgets! Image
i) 50% of the compute-optimal model leads to 20% compute overhead
ii) 30% results in a 100% overhead
ii) For even smaller models, overhead skyrockets

I estimate that at ±30% we reach the "critical model size", the minimal LLM capacity required to reach the specific loss level.
LLaMa-7B is around 57% of the compute-optimal model, leading to a 12% compute overhead.

It's pretty far from the critical model size and could/should have been trained for longer if we want to squeeze the most out of this model size.
How far can we push the small-model-long-training regime? Let's look at an updated Chinchilla table.

Around the critical model size, we should expect to train a 6B model on 6 trillion tokens, or a 21B model on 28T tokens! We are still far from the limit of this regime! Image
This analysis is the result of discussions with many amazing collaborators at the @BigCodeProject. Come join us if you're interested in these research topics!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Harm de Vries

Harm de Vries Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(