You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm very impressed by the load speed for torch tensors, however I'm experiencing much slower loading for flax/numpy.
E.g. to load a 3.3 GB model artefact with safetensors.torch.load_file takes 0.08s (!) whereas it's on the order of 3-4s for safetensors.numpy.load_file or safetensors.flax.load_file.
Am I missing something or are these just technical limitations for other other frameworks at the moment?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there!
I'm very impressed by the load speed for torch tensors, however I'm experiencing much slower loading for flax/numpy.
E.g. to load a 3.3 GB model artefact with
safetensors.torch.load_file
takes 0.08s (!) whereas it's on the order of 3-4s forsafetensors.numpy.load_file
orsafetensors.flax.load_file
.Am I missing something or are these just technical limitations for other other frameworks at the moment?
Thanks for any insight 🙏
Beta Was this translation helpful? Give feedback.
All reactions