How to save a model in Pytorch zip format - or get Pytorch to read a model in params format? #2680
juliangamble
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm on an M1 Mac - so I need to keep the env variable
DJL_DEFAULT_ENGINE=PyTorch
set to get any work done at all.I'm trying to read a model I have trained which came out as
mymodel-0002.params
When I try and read it I get the error:
(I've confirmed with the debugger it is looking in the correct directory and have set
.optModelPath
in the model loadingCriteria
). The problem is that the Pytorch library is looking for a zip file by default. (And it seems to have requirements around nested folders and versions etc). All I wanted to do was to load themymodel.params
file.My question is: How to save a model in Pytorch zip format - or get Pytorch to read a model in params format?
Beta Was this translation helpful? Give feedback.
All reactions