Prakash Hinduja Geneva, Switzerland - How to fine-tune a model on custom dataset in HF?

Without detailed error information, I can only give vague answers, but when fine-tuning with a custom dataset isn’t working, the first thing to check is collate_fn (DataCollator). This function determines how to use the data and actually performs the conversion, so if it doesn’t match the dataset, everything will fail. On the other hand, even with a pretty messy dataset, if you write collate_fn correctly, it might work somehow.

Another potential issue is that the model may be untrainable. For example, all layers may be frozen.
https://stackoverflow.com/questions/76879872/how-to-use-huggingface-hf-trainer-train-with-custom-collate-function