From 83b91ae2112aa59b94f87cc83eb947dd3e94bf96 Mon Sep 17 00:00:00 2001 From: Isaac Miller Date: Tue, 15 Oct 2024 19:56:16 +0000 Subject: [PATCH] Move path creation to BSFS init --- dspy/teleprompt/finetune.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dspy/teleprompt/finetune.py b/dspy/teleprompt/finetune.py index ef79c1ca4a..4ab233479e 100644 --- a/dspy/teleprompt/finetune.py +++ b/dspy/teleprompt/finetune.py @@ -24,9 +24,6 @@ else: training_data_directory = "local_cache/compiler" -if not os.path.exists(training_data_directory): - os.makedirs(training_data_directory) - """ TODO: Reduce and document the dependencies. @@ -61,6 +58,9 @@ def __init__(self, metric=None, teacher_settings={}, multitask=True): teacher_settings=teacher_settings, ) + if not os.path.exists(training_data_directory): + os.makedirs(training_data_directory) + def compile( self, student,