From a8e324da16898d246e63c76873de0c32560bbec6 Mon Sep 17 00:00:00 2001 From: Mishig Date: Fri, 18 Nov 2022 14:15:53 +0100 Subject: [PATCH] [docs] Fixes the colab btn on speed page (#91) --- docs/source/speed.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/source/speed.mdx b/docs/source/speed.mdx index 456de16..660486d 100644 --- a/docs/source/speed.mdx +++ b/docs/source/speed.mdx @@ -2,13 +2,19 @@ # Speed Comparison -[[open-in-colab]] + + Open In Colab + `Safetensors` is really fast. Let's compare it against `PyTorch` by loading [gpt2](https://huggingface.co/gpt2) weights. To run the [GPU benchmark](#gpu-benchmark), make sure your machine has GPU or you have selected `GPU runtime` if you are using Google Colab. Before you begin, make sure you have all the necessary libraries installed: -```bash +```py !pip install safetensors huggingface_hub torch ``` -- 2.43.0