In train.py, saving model json file (dspy-ai 2.5.10):
optimized_cot = teleprompter.compile(****)
optimized_cot.save(new_model_file)
In llm.py, loading model json file (dspy-ai 2.5.10):
cot= xxxxWithAssertions().activate_assertions()
cot.load(new_model_file)
Got exception here:
e=Retrieve.load_state() got an unexpected keyword argument 'use_legacy_loading'