From 8aed221bf99c4897ebbfc82252a4978046f0e80c Mon Sep 17 00:00:00 2001 From: David Berenstein Date: Wed, 5 Jun 2024 16:36:03 +0200 Subject: [PATCH] Update base.py --- src/distilabel/steps/tasks/evol_quality/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/distilabel/steps/tasks/evol_quality/base.py b/src/distilabel/steps/tasks/evol_quality/base.py index 931d994912..0b50e568cc 100644 --- a/src/distilabel/steps/tasks/evol_quality/base.py +++ b/src/distilabel/steps/tasks/evol_quality/base.py @@ -149,7 +149,7 @@ def _apply_random_mutation(self, instruction: str, response: str) -> str: return ( self.mutation_templates[mutation] .replace("", instruction) - .replace("", response[-1]) + .replace("", response) ) def _evolve_reponses(self, inputs: "StepInput") -> List[List[str]]: