Skip to content

Error loading program compiled using the Ensemble optimizer #775

@drawal1

Description

@drawal1

The app crashes in below code with a keyerror:
File "/home/drawal/miniconda3/envs/xray/lib/python3.11/site-packages/dspy/primitives/module.py", line 75, in load_state
param.load_state(state[name])

This is because the load function expects the top level keys in the saved json file to look like this:
"predict_func": {
But the key entry in the json file looks like this instead:
"programs[1].predict_func": {

Deserializing a compiled ensemble program is not implemented?

Metadata

Metadata

Assignees

No one assigned

    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