Skip to content

Shouldn't safetensors allow the storage of e.g. a flax.frozen_dict.FrozenDict? #138

Answered by Narsil
alvarobartt asked this question in Q&A
Discussion options

You must be logged in to vote

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 support bfloat16 which is kind of important for models like bloom 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/3edeec2669a5e94e4707aa0f901d2282

And since we're creating something new (https://xkcd.com/927/) …

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@alvarobartt
Comment options

@Narsil
Comment options

@alvarobartt
Comment options

@Narsil
Comment options

@alvarobartt
Comment options

Answer selected by alvarobartt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants