From cdc8288885501db947bd44cca5d2fe377a134365 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Tue, 27 Jan 2026 09:55:14 +0100 Subject: [PATCH] pin transformers<5 --- index.toml | 6 +++--- tutorials/34_Extractive_QA_Pipeline.ipynb | 4 ++-- ...rmersTextRouter_and_TransformersZeroShotTextRouter.ipynb | 4 ++-- tutorials/44_Creating_Custom_SuperComponents.ipynb | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.toml b/index.toml index 17c9618c..8cd3c309 100644 --- a/index.toml +++ b/index.toml @@ -99,7 +99,7 @@ notebook = "34_Extractive_QA_Pipeline.ipynb" aliases = [] completion_time = "10 min" created_at = 2024-02-09 -dependencies = ["accelerate", "sentence-transformers", "datasets"] +dependencies = ["accelerate", "sentence-transformers", "datasets", "transformers<5"] [[tutorial]] title = "Evaluating RAG Pipelines" @@ -169,7 +169,7 @@ notebook = "41_Query_Classification_with_TransformersTextRouter_and_Transformers aliases = [] completion_time = "25 min" created_at = 2024-10-15 -dependencies = ["sentence-transformers>=4.1.0", "gradio", "torch", "sentencepiece", "datasets", "accelerate"] +dependencies = ["sentence-transformers>=4.1.0", "gradio", "torch", "sentencepiece", "datasets", "accelerate", "transformers<5"] [[tutorial]] title = "Retrieving a Context Window Around a Sentence" @@ -214,7 +214,7 @@ notebook = "44_Creating_Custom_SuperComponents.ipynb" aliases = [] completion_time = "20 min" created_at = 2025-04-22 -dependencies = ["sentence-transformers>=4.1.0", "datasets", "accelerate"] +dependencies = ["sentence-transformers>=4.1.0", "datasets", "accelerate", "transformers<5"] [[tutorial]] title = "Creating a Multi-Agent System with Haystack" diff --git a/tutorials/34_Extractive_QA_Pipeline.ipynb b/tutorials/34_Extractive_QA_Pipeline.ipynb index e594bd97..0d6cf15a 100644 --- a/tutorials/34_Extractive_QA_Pipeline.ipynb +++ b/tutorials/34_Extractive_QA_Pipeline.ipynb @@ -60,7 +60,7 @@ "source": [ "%%bash\n", "\n", - "pip install haystack-ai accelerate \"sentence-transformers>=4.1.0\" \"datasets>=2.6.1\"" + "pip install haystack-ai accelerate \"sentence-transformers>=4.1.0\" \"datasets>=2.6.1\" \"transformers<5\"" ] }, { @@ -659,4 +659,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb b/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb index 98a4d39c..e79dc2b0 100644 --- a/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb +++ b/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb @@ -68,7 +68,7 @@ "%%bash\n", "\n", "pip install --upgrade pip\n", - "pip install haystack-ai torch sentencepiece datasets sentence-transformers" + "pip install haystack-ai torch sentencepiece datasets sentence-transformers \"transformers<5\"" ] }, { @@ -2704,4 +2704,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/tutorials/44_Creating_Custom_SuperComponents.ipynb b/tutorials/44_Creating_Custom_SuperComponents.ipynb index 553b3c84..b2983998 100644 --- a/tutorials/44_Creating_Custom_SuperComponents.ipynb +++ b/tutorials/44_Creating_Custom_SuperComponents.ipynb @@ -56,7 +56,7 @@ "%%bash\n", "\n", "pip install haystack-ai\n", - "pip install \"sentence-transformers>=4.1.0\" datasets transformers[torch,sentencepiece]" + "pip install \"sentence-transformers>=4.1.0\" datasets \"transformers[torch,sentencepiece]<5\"" ] }, { @@ -851,4 +851,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}