GPT2 for Bengali
Currently, there is no GPT2 model that was trained from scratch for Bengali on the hub. For this project, the goal is to create a strong language generation model for Bengali using GPT2 Model.

2. Language
Bengali.

3. Model
A randomly initialized GPT2 model.

4. Datasets
One can make use of OSCAR the dataset is also available through the datasets library here: oscar · Datasets at Hugging Face 4. The total Bengali resource in OSCAR is 11 GB.
Another source can be the mC4 dataset which is available in AllenAI 2. The resource size is 29GB.

5. Training scripts
A causal language modeling script for Flax is available here 10. It can be tweaked for training GPT2.

6. Challenges

Fix a good tokenizer that covers Bengali vocabulary properly and make sure that the LM doesn’t become character-level LM.


7. Desired project outcome
The desired project output is a GPT2 model that is able to generate Bengali language.

8. Reads
The most important read would be the following colab:

Google Colaboratory  13

Other reads that might be interesting include:

GPT-2 no habla español: Artificial Intelligence, Anglocentrism, and the non-human side of DH | | Vanderbilt University  2
https://towardsdatascience.com/train-gpt-2-in-your-own-language-fc6ad4d60171  2