r/learnmachinelearning • u/addictzz • 7d ago
Question Model architecture and dataset curation?
Any of you who has dealt a lot with machine learning especially neural network and LLM, I want to know how do you invent a certain LLM model architecture? Is it through trial & error experiment?
Also how to curate dataset? Currently with LLM I can generate a synthetic dataset but before LLM reaches this level of maturity, how do researchers curate datasets for training and supervised finetuning?
As a context, I am learning to train my own nano-sized LLM. I realized figuring out the right transformer architecture with the right set of layers and neurons is a challenge. The good quality dataset is also a key in finetuning and curating them takes a lot of manual work.
I can ask all these to chatgpt, claude, or similar (and I have done it) but I'd like to ask real people's experience on this.
3
u/Tradinglookup 6d ago
For the architecture side, researchers rarely invent a design from scratch; they start from a known transformer recipe and run small-scale ablations. Train several tiny versions (a few million parameters) that change one thing at a time, like depth versus width or the attention variant, and compare loss curves, then check whether the ranking still holds as you scale up a bit. For data, the usual steps are deduplication, quality filtering (simple heuristics plus a small classifier trained on examples you consider good), and then mixing sources by weight, with a held-out validation set that never gets touched. Synthetic data tends to work best as a supplement to real text rather than the whole mix, since training only on model output can narrow the variety of what the model learns.
1
u/Temporary-Budget-605 6d ago
You need to organize your thoughts better if you want to have a truly productive conversation. You’re all over the place. Both of your questions have also been talked about, at length, in this sub and many other places.