From 12bf7a0174d03d2a55c9d4ef0d861e9c86ce2050 Mon Sep 17 00:00:00 2001 From: veryamazinglystupid <113042016+veryamazinglystupid@users.noreply.github.com> Date: Tue, 19 Dec 2023 19:46:57 +0530 Subject: [PATCH 1/2] fix the colab, pydantic error :3 --- TabbyAPI_Colab_Example.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TabbyAPI_Colab_Example.ipynb b/TabbyAPI_Colab_Example.ipynb index 465bafa..6872bb9 100644 --- a/TabbyAPI_Colab_Example.ipynb +++ b/TabbyAPI_Colab_Example.ipynb @@ -55,9 +55,10 @@ "!git clone https://github.com/theroyallab/tabbyAPI\n", "%cd tabbyAPI\n", "\n", - "# Install cuda 11.8 requirements\n", - "!pip install -r requirements-cu118.txt -q\n", + "# Install cuda requirements\n", + "!pip install -r requirements.txt -q\n", "!pip install huggingface-hub -q\n", + "!pip install -U pydantic -q\n", "\n", "# Download cloudflared tunnel\n", "%cd /content/tabbyAPI/\n", From 5fbb37405f40c0a6d537659bcbd75f45aa628b5b Mon Sep 17 00:00:00 2001 From: kingbri Date: Wed, 20 Dec 2023 00:01:58 -0500 Subject: [PATCH 2/2] Colab: Remove the pydantic hotfix Requirements.txt is now pinned to install pydantic >= 2.0.0 Signed-off-by: kingbri --- TabbyAPI_Colab_Example.ipynb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TabbyAPI_Colab_Example.ipynb b/TabbyAPI_Colab_Example.ipynb index 6872bb9..b98f861 100644 --- a/TabbyAPI_Colab_Example.ipynb +++ b/TabbyAPI_Colab_Example.ipynb @@ -58,7 +58,6 @@ "# Install cuda requirements\n", "!pip install -r requirements.txt -q\n", "!pip install huggingface-hub -q\n", - "!pip install -U pydantic -q\n", "\n", "# Download cloudflared tunnel\n", "%cd /content/tabbyAPI/\n", @@ -213,4 +212,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}