Skip to content

Commit

Permalink
fix leftover model_name_or_path param
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanSara committed Jan 12, 2024
1 parent 24c71bd commit cdd5e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/pipelines/test_eval_rag_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_bm25_rag_pipeline(tmp_path):
rag_pipeline.add_component(instance=PromptBuilder(template=prompt_template), name="prompt_builder")
rag_pipeline.add_component(
instance=HuggingFaceLocalGenerator(
model_name_or_path="google/flan-t5-small",
model="google/flan-t5-small",
task="text2text-generation",
generation_kwargs={"max_new_tokens": 100, "temperature": 0.5, "do_sample": True},
),
Expand Down Expand Up @@ -102,7 +102,7 @@ def test_embedding_retrieval_rag_pipeline(tmp_path):
rag_pipeline.add_component(instance=PromptBuilder(template=prompt_template), name="prompt_builder")
rag_pipeline.add_component(
instance=HuggingFaceLocalGenerator(
model_name_or_path="google/flan-t5-small",
model="google/flan-t5-small",
task="text2text-generation",
generation_kwargs={"max_new_tokens": 100, "temperature": 0.5, "do_sample": True},
),
Expand Down

0 comments on commit cdd5e7f

Please sign in to comment.