Hi @mxf
Be aware that from 1.6, .pt models are just zip files:
https://pytorch.org/tutorials/beginner/saving_loading_models.html 7
To reply to your question, yes, it would be possible to embed such file in a binary (sometimes called a ‘resource’).