Shouldn't safetensors
allow the storage of e.g. a flax.frozen_dict.FrozenDict
?
#138
-
AFAIU the main idea behind Just asking because it's unclear to me in which direction is the library going or whether a more general serialization format is the end goal or not. Thanks! 🤗 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hey thanks for your question. Currently there's no plan to support anything more than tensors. The initiation for this lib was simply sparked to try and avoid using The goal of this lib is to be trivial (so you can actually load And since we're creating something new (https://xkcd.com/927/) we might as well add some features which were missing from everything else:
Does that answer your question ? |
Beta Was this translation helpful? Give feedback.
Hey thanks for your question.
Currently there's no plan to support anything more than tensors.
The initiation for this lib was simply sparked to try and avoid using
pickle
. As the README suggests other libraries where considered but all had issues that prevented them from being used (H5
was the biggest contendant, but since TF was deprecating its use and it doesn't supportbfloat16
which is kind of important for models likebloom
we didn´t go that way).The goal of this lib is to be trivial (so you can actually load
safetensors
files without even using this lib : https://gist.github.com/Narsil/3edeec2669a5e94e4707aa0f901d2282And since we're creating something new (https://xkcd.com/927/) …