Closed Emulator000 closed 1 year ago
The .pt
format is somewhat supported but with some limitations, see https://github.com/LaurentMazare/tch-rs/issues/595#issuecomment-1364108766 for some details.
When it comes to loading weights, the easy ways I could see all involve pre-processing the weights in python.
.pt
or .bin
file via
torch.save(dict(model.state_dict()), "mymodel.bin")
.safetensors
format which should hopefully work out of the box when loading them.tensor-tools
to convert this to a .ot
file, see some details here.Closing this, hopefully the explanations above were enough to fix the issue.
I was wondering on how is possible to load embeddings in
pt
format?If I try to load it as Clip I get an error:
Also it would be nice to support more than one external text embedding.