Skip to content

use_legacy_loading exception when loading model json file which is saved by  #1634

@wangyiav

Description

@wangyiav

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'

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions