Wie konvertiere ich das SafeTensors -Modell in das ONNX -Modell?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie konvertiere ich das SafeTensors -Modell in das ONNX -Modell?

by Anonymous » 23 Aug 2025, 23:06

Ich möchte ein Modell konvertieren. Die Dokumentation von SafeTensors Paket ist nicht genug und ist nicht klar, wie man das Originalmodell (Pytorch) bekommt, da ich etwas wie
versuche

Code: Select all

with st.safe_open(modelsafetensors, framework="pt") as mystf:
...
Das MYSTF -Objekt hat get_tensor ('slowensorname') , aber es scheint keine get_model () Methode oder ähnliches.

Top