-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looping pipelines with a PromptBuilder is not running #7561
Comments
Feel free to add more context @silvanocerza |
Encountered this yesterday. Fixed it this morning. Will link the PR here. |
Investigated a bit more and found out that this is actually already solved with #7531. Closing. |
@silvanocerza , I am still observing this issue, I did a fresh clone of |
@Ovank Thanks for the update. I tried to run tutorial 28 on google colab just now and it worked without any problems. |
@bilgeyucel , I am using HuggingFaceLocalGenerator to create generator object , Sharing snippet from my code. from haystack.components.generators.chat import HuggingFaceLocalChatGenerator
from haystack.components.generators import HuggingFaceLocalGenerator
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_id = "./path_to_checkpoint/llama-2-7b-chat-hf/"
tokenizer = AutoTokenizer.from_pretrained(model_id,use_fast=False )
generator = HuggingFaceLocalGenerator(
task = "text-generation",
huggingface_pipeline_kwargs = {
"model" : model_id,
"tokenizer" : tokenizer
},
generation_kwargs = {
"temperature": 0.9,
"max_new_tokens": 2096,
}
)
llm = generator |
Any other news on this? Seems not solved in current Haystack version (2.7.0), running the tutorial as-is will result in
|
Describe the bug
If the PrompBuilder is the first component in looping pipelines, the pipeline gets stuck in a loop (might not be running at all) even when
max_loops_allowed
is set to a small number.Error message
There's no error message. The pipeline is not outputting anything however the colab cell with
pipeline.run
doesn't stop running.Expected behavior
Looping pipelines run without any problem.
Additional context
Relevant discussion: #7554
To Reproduce
Run tutorial 28: https://haystack.deepset.ai/tutorials/28_structured_output_with_loop
FAQ Check
System:
The text was updated successfully, but these errors were encountered: