Skip to content

Saving & reading the optimized model #617

@owen-deepskill

Description

@owen-deepskill

Compiling takes some time so I wouldn't want my users repeat the same process every time they run the product.
Having said that, how can I save the model and reuse it next time without re-compiling?

Specifically, in this tutorial,
https://drchrislevy.github.io/posts/dspy/dspy.html
optimized_cot_qa = teleprompter.compile(cot_qa, trainset=trainset, valset=valset)
How would I be able to save optimized_cot_qa so that I can reuse?

Thanks!

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