Skip to content

what changes are necessary to migrate from old version to the current version? #1336

@junkyul

Description

@junkyul

The old version of guidance doesn't allow deep copying the client object.
The newer version may support it through some changes.
However, the guidance doesn't take llm argument anymore.
the llm under guidance is now model.

This opensource code is what I was looking at.
https://github.com/psunlpgroup/GreaterPrompt/blob/main/src/greaterprompt/core/pe2/trainer/pe2_trainer.py
there are places that uses old guidance interface like
self.initializer = guidance(prompt, llm=self.llm) # guidance program for initialization

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