I asked ChatGPT to write a language model. Although the model it gave me wasn't very good, but it was able to incorporate my custom tokenizer class into the code. You can read all about my experiment on the post.