Skip to content

Any docs or examples for using Guidance NOT in a notebook? #335

Closed Answered by kar-alex
AnaCoda asked this question in Q&A
Discussion options

You must be logged in to vote

The documentation isn't great. I discovered you can use await statements to make the program execute and return results normally.

import guidance
import transformers
model = guidance.llms.Transformers("huggingface model")
program = guidance("""
your program here
""")
out = await program(inputs, llm=model)

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AnaCoda
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants