#safetensors
1 messages · Page 1 of 1 (latest)
https://gist.github.com/wfjsw/0e0317755dc126ec31614222b05bac5d
note that there is no rvc safetensors standard right now, but if you want to go on your own feel free to use this.
looks interesting, i just want to load the models in the c++ api of torch, so hopefully this is what i need
tch is perfect for this task here is the github link: https://github.com/LaurentMazare/tch-rs
I tried serde-pickle it doesnt work that well for me
yeah i know, that's the one i'm using
but there are no examples on how to make it work with serde-pickle so i'm a bit lost haha
could also just run through onnx...
well i've used the safetensors implementation for now, definitely loads the model
does tch-rs not read metadata?
i've had to use the safetensors crate directly to read the header
well, safetensors by design only loads tensors
there is no general standard regarding the metadata
So yes y ou might have to do on your own
yes luckily there is a safetensors library and i am able to read the metadata that way