here are sample codes for tokenization and training from bangla text files for models like XLMRoberta, Electra, GPT2,Transformer-xl
mahimanzum/Bangla_ELECTRA_LM-SimpleTransformer
here are sample codes for tokenization and training from bangla text files for models line XLMRoberta, Electra, GPT2,Transformer-xl
Python