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

Format and update decontext #37

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Conversation

bnewm0609
Copy link
Contributor

@bnewm0609 bnewm0609 commented Aug 6, 2023

For API SpanQA, you can clear the cache with: span_qa_predictor.retrieval_qa_step.model.cache.remove_all_unsafe_no_confirm.

You can also invalidate the cache for a prediction with:

from decontext.cache import CacheState

span_qa_predictor.retrieval_qa_step.cache_state=CacheState.INVALIDATE

before running span_qa_predictor.run.

See the decontext README for more information on how to use CacheState

Copy link
Collaborator

@kyleclo kyleclo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kyleclo kyleclo merged commit 5b4811b into main Aug 21, 2023
@kyleclo kyleclo deleted the bnewm0609/clear_decontext_cache branch August 21, 2023 18:45
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

Successfully merging this pull request may close these issues.

2 participants