-<!-- DISABLE-FRONTMATTER-SECTIONS -->
-
# Speed Comparison
<a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb" target="_blank" class="absolute z-10 right-0 top-0">
Before you begin, make sure you have all the necessary libraries installed:
-```py
->>> !pip install safetensors huggingface_hub torch
+```bash
+pip install safetensors huggingface_hub torch
```
Let's start by importing all the packages that will be used: