Exporting pytorch models for use in Ruby

I made a LSTM model in a python notebook. For production, I’d like to save and export the model for use in Ruby. I have no familiarity with Ruby whatsoever. Are there any guides out there for this sort of thing?

What format should I save the model as? What libraries are needed to accomplish this?

I have never coded in Rudy (I have no knowledge about it). And I don’t think Rudy is part of the environment (I prefer this word to language) where we can manipulate pytorch/tensorflow models (js, C++, …)

In this kind of case you can deploy your model in a python (or compatible) environment, for example a Django/Flask (torch) or nodejs (torch-js) API… And query it from Rudy