‹ BackHN Continuity

Thread

Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

135 points · 28 comments · MakazhanAlpamys

  1. ranger_danger · · focus · HN ↗
    Why is there still a hard VRAM requirement that's dependent on the model size? Isn't that exactly what this project is supposed to solve?
    1. MakazhanAlpamys · · focus · HN ↗
      Because streaming only removes the decoder stack. The embeddings and lm_head stay resident, that is 2.10 GB of the 3.32 GB peak on 8B. And the logits tensor scales with batch x seq x vocab, not with depth.

      So it goes from "whole model must fit" to "embeddings plus one layer plus logits must fit". That is why 8B works and why I did not try 14B.

      The table on the site is the normal resident path, streaming is opt-in and BETA. Should be clearer, my fault.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.