💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Fix issue with max length and LLM pipeline, closes #912
davidmezzetti61fa8a3f9941
diff --git a/src/python/txtai/pipeline/llm/huggingface.py b/src/python/txtai/pipeline/llm/huggingface.pyindex 09c5f7bf..1f43a648 100644--- a/src/python/txtai/pipeline/llm/huggingface.py+++ b/src/python/txtai/pipeline/llm/huggingface.py@@ -99,7 +99,7 @@ class HFLLM(HFPipeline):"""# Set defaults and get underlying model- defaults, model = {"max_length": maxlength, "num_workers": workers}, self.pipeline.model+ defaults, model = {"max_length": maxlength, "max_new_tokens": None, "num_workers": workers}, self.pipeline.model# Set parameters for vision models and returnif self.pipeline.task == "image-text-to-text":