How to train a model with huge classes

yes it is possible refer to the topic below