[Tensorflow Export] How to export a fine tuned GPT2 model to a tensorflow model file?
Sorry if this is a silly question, but I cant seem to find any proper solution to this.I am usingtransformers==2.8.0and have fine-tuned agpt2model with my own dataset.  I know that during training it creates checkpoints in pytorch and that can be used for text generation, but I want to save/load model in tensorflow.I know thatTFGPT2LMHeadModelexists and that it can be used, but I havent found an example online doing this.Can someone help me please? How can I export a fine-tuned model into tensorflow, so that I can then generate text using that model?Thanks
2021-01-15T14:20:23Z
You can checkthis part of the docsthat shows how to reload a model trained with PyTorch into TensorFlow (and vice versa).