microsoft / DeBERTa

The implementation of DeBERTa
MIT License
1.91k stars 215 forks source link

No assert: Training does not start when using different tokenizer/ tokenized-data #148

Open adriwitek opened 6 months ago

adriwitek commented 6 months ago

Since there are many problems, specially in moltinode setting, I want to open this issue since I have spend a lot of time trying to debbug it.

If you use data tokenized with a tokenizer, let's call it X, and the input data you are passing to the model has been tokenized with a tokenizer Y, then the training will froze and never start!

Seems like an obvious thing, but no warning or error is displayed in the code and the execution will continue apparently running, despite the tokenizer X can have a different vocab size! An assert should be added since this can cause a lot of unused resources, and doing a pre-training it's not cheap at all.