Open sidjha1 opened 8 months ago
I've not encountered this error. Do you know which part of the code throws this?
I had encountered the segmentation fault caused in Evaluate_execute_multi_thread of dspy. I don't know an actual reason but this can be avoided by setting num_threads in LeftToRightOptimizer to 1 by default.
class LeftToRightOptimizer:
def __init__(
self,
modules_to_lms: dict[str, tuple],
infer_compile: bool,
infer_compile_metric_name: str,
rank_compile: bool,
rank_compile_metric_name: str,
):
# TODO: add an optimization config
self.modules_to_lms = modules_to_lms
self.infer_compile = infer_compile
self.infer_compile_metric = supported_metrics[infer_compile_metric_name]
self.rank_compile = rank_compile
self.rank_compile_metric = supported_metrics[rank_compile_metric_name]
# compilation hyperparameters
self.max_bootstrapped_demos = 2
self.max_labeled_demos = 0
self.max_rounds = 1
self.num_candidate_programs = 10
# self.num_threads = 8
self.num_threads = os.environ.get('DSP_NUM_THREADS', 1)
Hello, I'm interested in reproducing some of the results and eventually testing it with my own models. I was following the README and was able to run the following command without any issues.
However, when I try to run the command below (copied from the README), I get a segmentation fault error.
I also get segmentation faults when running
bash scripts/compile_left_to_right.sh
.