Hello everyone,
I am contemplating converting my trained GPT2 model to JavaScript to go wild. The model has been trained in its PyTorch variant.
I have an idea of how to map it to JavaScript and would like to ask your opinion.
Maybe this is a little to much overkill:
- Save PyTorch GPT2 as pretrained.
- Load the TensorFlow GPT2 from the file I have just saved. (Believing the binaries are framework agnostic).
- Convert the TensorFlow model to TensorflowJS.
Would that work?