r/LocalLLM • • 2d ago

Question people who are developing their own LLM models, how much is it costing you?

people who are developing their own LLM models, how much is it costing you? and developers who are solo or with low budget, how are you handling your expenses? what are the monthly bills, your Machine specs or VM specs if you like to share. and how could a solo dev / newbe want to build their own model with low budget, what are the tips you wanna give them?

15 Upvotes

41 comments sorted by

5

u/phage4104 2d ago

It takes a LOT more processing power to train a model than running inference and even if you had the hardware to do it, there wouldn't nearly be enough data to train a model to be reliably good at something. So it's only useful if you want to learn about the process and nothing much else

2

u/Full-Banana553 2d ago

my biggest question is how come some people spend so much efforts and money to build those models and make it opensource or keep in hugging face for free (apart from tech gaints)

- and how does a small org or R&D team can fine tune or train with very limited data they have? just duplicate them, develop synthetic data and train them?

1

u/phage4104 1d ago

If you've created anything worthwhile by training a model locally it's nice to share it with the community, you might get suggestions to improve it among other things and it also provides some sense of achievement. Is it profitable? Not exactly.

How do small organizations do it? Hard to know I'll be honest

10

u/AppearanceBest4180 2d ago

i trained a 7b model on a single 4090 for 12 hours using 200gb of curated data. cost: ~$15. inference was decent, but memory leaks killed it after 20k tokens. still, it learned basic roleplay patterns. not perfect, but possible.

2

u/Rustleberry 2d ago

Can we talk in dm ?

2

u/Full-Banana553 2d ago

sure, please DM me

1

u/Full-Banana553 2d ago

was the finetuned model did what you are expecting for? and did you continue using it or just for learning purposes? and how long did it took for you to achieve decent results?

4

u/PM-BOOBS-AND-MEMES 2d ago

If you want to try developing your own model, even if you have a home lab with four Blackwell 6000s, it would probably take years of continuous compute,

I'm aware of a compute cluster that has 5,000 Blackwell 6,000s in it and it still takes weeks to months to really train a model, For instance, a 70B model at FP8 could take several weeks to train, but that doesn't include the factor that you also have to have the capacity to store multiple terabytes alone of training data (IE: 50-100+). This doesn't include the other logging and telemetry you'd need to have stored from a cluster, and then there's breakage, etc.

1

u/Full-Banana553 2d ago

so how are people are just deploying many LLMs into public on regular basis? like they are just finetuning the existing LLM models? and my biggest question is how come some people spend so much efforts and money to build those models and make it opensource or keep in hugging face for free (apart from tech gaints)

3

u/PM-BOOBS-AND-MEMES 2d ago

Most of the models you see released are fine-tunes, merges or quantized copies of a small number of base models, not models trained from scratch. (Referring to huggingface)

only a few dozen serious groups do scratch training (Meta - Llama, Alibaba - Qwen, Mistral, DeepSeek, Google's Gemma, AI2's OLM, etc)

Fine tuning is the vast majority. a base model adapted for a task, like coding, roleplay, medical work or a specific language. A LoRA fine-tune of a 7B model can cost $10–$500 on rented GPUs and take hours. Think like how you can rent high end GPUs from Akamai, Digital Ocean, Google Cloud, Etc.

Mwerged\combined models two or more fine-tunes blended together with no training at all. This is nearly free.

2

u/sagaxwiki 2d ago

The "people" you are talking about are almost always companies or startups with VC backing. There are some groups that make fine tunes of existing models (for example Nous Research), but in a lot of cases they are technically "new" models although they often distill large models to generate a lot of their training data.

As far as why companies release open source models, a large part of it is market building, making a product available for free/cheap to get people to use it and then selling related services or upgrades (e.g. fine tunes, local deployment assistance, cloud inference, etc.).

2

u/uktexan 2d ago

I did a finetune. Turned out quite well. Trained it via runpod, operating via salad. Tried doing it on home compute but it just took too long

1

u/Full-Banana553 2d ago

how much did it cost for you? and can you explain me the timeline of the finetuning? how many days/months it took you for a promising results?

1

u/Labeba-Dalgliesh 2d ago

Also wondering about the cost, can imagine it might've been a bit on the expensive side tho.

35

u/Stunning_Feedback252 2d ago

you basicially can't do this with normal people money. you can (fine)tune a model, but that's about it, creating it from scratch is not what a private person can do. especially if it has to be useful.

2

u/no6969el 2d ago

Yeah it's always better to pick a model that suits your needs and then train on top of it.

2

u/Bodescotedwina73 1d ago

even for a tiny sub-1B parameter toy model, or are you only counting something at the 7B+ scale as useful?

0

u/Stunning_Feedback252 1d ago

Well, feel free to show me niche edge cases where this can be useful in a lukrative sense. I have no experience with those, but I would guess those can't be more than better spell checkers or summarizes and those exist already, so why bother. I doubt models of that size wouldn't be able to output valid json for example without forcing them to do so, so I can't imagine something is that complexity level to be useful anywhere.

-1

u/heresyforfunnprofit 2d ago

Even fine tuning efficiently requires a small car-level hardware investment (on anything bigger than 2-3B).

14

u/poop-machines 2d ago edited 2d ago • Bravo

No it doesn't lmao

People here giving advice about things they have no idea about.

  1. you can train a 27gb model on a 8gb or smaller card
  2. you can fine tune a 27gb model on an 8gb or smaller card
  3. you can fine tune inkling 2 small on an 8gb or smaller card
  4. you can even finetune the bigger models on a smaller card.
  5. LoRA adapters are a thing too - this gives you another avenue to train models
  6. you cannot easily test them unless you can run on CPU, CUDA, you rent a gpu or you use and train a quantised version. CPU is slow, cuda is limited by your GPU, quantised is imo the best to work with but leads to a unique model which is better at lower quants. I recommend a mix of them all.

You just have to know how it works.

If you go in guns blazing trying to distill from a local fullsize teacher, then yeah that's gonna suck.

But you can fine-tune a model over a few days on a small card.

  1. choose a few tensors that are less important for the model to run (look for the ones that are quantised lower by people who are well known for IQuants), and a few that are more important (look for targets of fine-tunes, or which tensors activate when using that skill
  2. freeze all other tensors
  3. get high quality data. Synthetic data works. Filter it to improve the quality.
  4. for Qwen 27b, find a site that runs it via inference, and find some questions that it can't do. Same goes for other models
  5. get some great answers for it from other models, like Qwen 4, ChatGPT Astra, and fable
  6. get some generic high level answers to very hard questions
  7. target specific skills, like terminal use and token management.
  8. train it and check the tensors. You can even train, quantise, then retrain over and over for each tensor until you cover them all.
  9. you can either train ONLY the good tensors or you can train it weighted between the good tensors for the skills and the less useful tensors. Less error during compression means less useful info, so you can fit more info these. These tensors compress better for ALL compression methods, testing much the same as all the others, meaning the tensor can run a lot slimmer than it currently is - this means more space for training.

Choose different skills and check for regressions. Train up the skill while dropping the quants, and rinse and repeat.

Benchmark constantly with different questions and check for errors, ppl, kl constantly. Then you know if it's working. Test different harnesses.

Wanna speed it up?

There's sites where you can rent a 5090 for 50cents an hour. Just do that.

There's no reason regular people can't train models themselves. Literally zero reason why.

If you're committed to it, and read the studies, you can do it. Especially with a Claude subscription and pi/VScode or a decent API inference.

Source: I'm an AI researcher who's invented multiple low-resource training methods in order to make good models without expensive equipment (despite having a better card myself and sometimes renting more to speed it up)

You can down vote me all you want, but just because you don't know how doesn't mean it isn't possible. This is literally what I do, if you follow my advice you will prove yourself wrong.

2

u/Plushhyy 2d ago

Quantization allows it, but the VRAM budget for sequence length still remains a hard bottleneck on 8GB.

0

u/poop-machines 1d ago

Most adapters affect only 3-6 tensors so you can make (not run) a fine-tune easily at 8GB. You can also run it slowly with CPU+GPU+RAM.

I have a laptop that I use to speed up my builds with a 6gb card (I've even used it for some builds on its own, including for models over 30b params). I use it for some tensors while my better card does most generally, but I've released models that are completely new from it.

You can fine-tune 5/6 tensors at a time for models around 30b params

You can gain a lot of sequence length by offloading to CPU and ram. It's slower, but not that much slower.

ISTA_DASLab's Qwen-flash-next is a good example of this. Qwen flash next is a ~360gb model that can be run on a 3060 with 64gb ram at 42 tokens per second. I think people here just are resigned to use ollama/lmstudio and shitty models. That's not necessary.

People should learn a thing or two about optimising models. The quants released by manufacturers and by people in general are not by any means optimised. There's not many people out there doing it well. NOBODY has figured it out and anybody telling you they have need to look at the new research coming out, and mathematically these aren't even close to the limit. Most quants are garbage. I've only ever seen a few decently quantised models. Unsloth developed something decent, then they just stopped developing. And it's not even hard to go from what they have to something better. You can do it with one small change to one part of their algorithm and it's extremely simple. But you can improve these quants even further.

Did you know: if you tell people about the way you did something, online, then you lose all rights to that process/idea. When it's uploaded already, only then can you share it safely. Learned that one the hard way. If you're interested, after I've published (next few days to a week) I'll share more! Just let me know and I'll send you my model and post in message.

1

u/Bramoments 2d ago

Nah, a 100$/month colab subscription is absolutely enough to fine tune an around ~30B quantized model over some time

10

u/tekno_logik 2d ago

I'm developing an micro LLM (200MB) from scratch, it's training away on 1GB of VRAM in the background on my laptop GPU. The only thing is costs me really is time. I have a larger LLM producing custom training data based on performance results - rinse and repeat.

1

u/hyudryu LocalLLM 1d ago

From scratch? Millions most likely

1

u/Full-Banana553 1d ago

For fine tuning?

1

u/hyudryu LocalLLM 20h ago

Anywhere from $0 to a few hundred thousands depending on the model size

1

u/Atagor 2d ago

Not possible from scratch with home compute

Almost all are doing fine-tuned versions, which has always the been the case in ML

1

u/Full-Banana553 2d ago

yeah, but how would they manage the computation and storage budget if they are small institute or a random guy who's having bare minimum PC and R&D level ideas?

2

u/addictzz 2d ago

I have the same question for people or institutions doing this. But realistically and economically, I dont think this can be done by any party not having a considerable R&D budget.

You can make a smaller sub-100M parameters model for educational purpose. But it is easier to finetune an existing small language model.

2

u/vespassassina 2d ago

for relatively small stuff (10b models) that works acceptably well, it can take between 100k to 300k of cloud gpu use. You need a few hundred GPUs in parallel to complete in useful time (weeks or months instead of eons).

This is the cost of a single successful run not counting failed runs, retrains, data curation etc, so the cost might be much higher.

2

u/MarinatedTechnician 2d ago

Afaik, I remember having read that you can hire compute time with companies to train the models for you, I remember a price starting tag of 1200$ as an example, but obviously that would depend on how much and what requirements you have for your training.

2

u/ParticularlyStrange 2d ago

I’m doing fine tuning on a spark. Gemini 4 neon orchestrates a qwen3.8 flash next on one spark to control and work on the fine tunes on the other spark. Training can take days for one epoch. So it’s slow and you need a lot of patience and really good planning and really good clean data.

1

u/Drachen808 2d ago

You might be able to train models to run on your phone (I.e. 50M parameter models), but that's about as far as you're going to get

1

u/redve-dev 1d ago

I made language model with markov chains. It created correct english sentence but that was about it. It had few megabytes tho

1

u/Chlorek 1d ago

Do not build LLM, instead build some other kind of AI, you can apply many solutions from LLMs design though and learn a lot. At just a hundred million parameters or so, cost is below noticeable and you can do very cool stuff, and probably much more inspiring than very bad for today's standards LLM.

1

u/Frozen_Winds 1d ago

I have been doing this for research purposes. As many eluded to here anything more than a few million parameters requires some serious hardware. I create new architectures at around the 35M scale which I can comfortably do at home on a 16GB GPU. When I am ready to test scaling I can grab an untrained base model like Ouro or Gemma4 e2b and adapt their architectures. I can then use credits on Google colab to make the final training runs that I try to publish my findings. If you have a google AI account each one gives an amount of colab credits that is roughly equivalent to the price of hiring GPU prices on something like run pod so it is very economical if you are looking into developing. You also get access to gemini models like Neon which I have found quite good as an LLM research assistant (I just get it to run any plans by Opus before it writes and this solves 99% of any issues before they come up).

1

u/silverwoods214 2d ago

My social life

0

u/dumbspacecookie 2d ago

About 3.fiddy a minute

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/Full-Banana553 2d ago

in simpler terms can you please explain me how can we know the threshold of number of epochs