Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove multiple use of demonstrate stage to save LLM calls #80

Closed
hasalams opened this issue Jul 20, 2023 · 2 comments
Closed

How to remove multiple use of demonstrate stage to save LLM calls #80

hasalams opened this issue Jul 20, 2023 · 2 comments

Comments

@hasalams
Copy link
Contributor

I am using the program 5 on intro notebook for an experiment.

I have multiple 100 of questions to get answers. I am using 5 train questions to demonstrate.

I notice that for each question, the demonstrate stage is annotating answers. Can this repeated task be avoided to save LLM calls in demonstrate stage?

Can we use the demonstrate once, and use the demonstration in other questions as well?

Thanks.

@okhat
Copy link
Collaborator

okhat commented Jul 20, 2023

It’s easy to make the change by rearranging your code.

That said, when the LM is called a second time on some input, it’s free. It’s cached.

@hasalams
Copy link
Contributor Author

thanks for the prompt response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants