Open Source LLM details Flashcards
1
Q
What is safetensors?
A
a file format that safely stores tensors
2
Q
Speed of safetensors vs .ckpt?
A
some people say safetensors is faster
3
Q
what is (/was) pre july 2023 the standard way to save PyTorch models when using the Hugging Face Transformers library?
A
pytorch_model.bin
4
Q
how much faster is safetensors.torch.load_file than torch.load_file
A
76x on CPU and 2x on GPU
5
Q
how does pytorch transform its models to/from disk?
A
well it writes the raw bytes of the tensors to disk and then uses pickle to serialize/deserialize other metadata/Python Object data
6
Q
difference between GGUF and safetensors
A
safetensors can only be run on GPU