ModernBERT icon indicating copy to clipboard operation
ModernBERT copied to clipboard

Update modernbert-base-pretrain.yaml with a few comments

Open ahxxm opened this issue 10 months ago • 3 comments

Changes

a few comments and enable a few monitors

Discussions

wondering what's blocking this doc branch being merged..

Tests

Not needed? I tested with my own dataset.

ahxxm avatar Mar 19 '25 10:03 ahxxm

Hello,

I am not sure those kind of comments belong to a config file; any other configs won't have it. The sequence_packing only working with streaming dataset should rather be an assert in the code.

As to what's blocking the doc branch being merged, mainly us having a lot of stuff to do and trying to focus on blocking stuff and wanting to make sure everything is correct before merging (as well as adding stuff that are missing, notably for the reproduction on all the experiments). But I agree we could merge the branch as is so people can run the pre-training without looking into issues, cc @warner-benjamin

NohTow avatar Mar 19 '25 10:03 NohTow

At least "legacy reasons" deserves some explaination?

Agree that sequence_packing one should rather be an assert in the code, I only found this after seeing exceptions like ".mds" file not found but files are all there, so I think it might help others.

As for auto_resume, the paper mentioned that training was restarted somewhere, it should be restarted by either load_path(which needs to be a pt file instead of dir, and again, can't be inferred from this option name) or auto_resume, I also tried to restart pretraining, and that option confused me

ahxxm avatar Mar 19 '25 10:03 ahxxm

Slightly related question to reproduction: did you pre-tokenize all samples?

I found that resume training from a checkpoint takes much longer than expected, and I guess it's because that it has to tokenize text training dataset again to deterministically(hopefully) skip exact tokens already used for training -- which might better be a section in README? Dataset format determines unit choice of tok or sp in training config.

ahxxm avatar Mar 19 '25 11:03 ahxxm