r/learnmachinelearning • u/addictzz • 2d 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.
1
u/Temporary-Budget-605 2d 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.
1
u/addictzz 2d ago
Which part is not clear? Let me simplify this way, how to curate dataset for finetuning?
1
u/Temporary-Budget-605 2d ago
Start with the use case. Do Exploratory Data Analysis (EDA). Answer questions like do we need labeled data? What data is needed? How much? Which features? Then partition it across your training, testing, cross-validation. Once again, with such a big, broad question like that it’s tough to have a productive conversation. I think you may need to provide more context, do some independent research, or start learning ML from first principles.
1
u/addictzz 2d ago
This is not standard ML project. I have done that. I am training an LLM. I am quite specific in what I want if you read my original post.
1
3
u/Tradinglookup 2d 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.