xmc.dspy
xmc.dspy copied to clipboard
Specify num_threads as a function argument
In optimizer.py self.num_threads is manually set to 8 so the program errors out when run on a single-thread CPU. Allowing the user to specify num_threads to get passed as a function argument during optimization will fix this issue.