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

Caching fix - only try/cache key creation #1918

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Conversation

dbczumar
Copy link
Collaborator

Caching fix - only try/cache key creation

Signed-off-by: dbczumar <[email protected]>
@dbczumar dbczumar requested a review from okhat December 10, 2024 04:01
Signed-off-by: dbczumar <[email protected]>
@@ -150,3 +150,16 @@ def test_lm_calls_with_callables_are_cached_as_expected():
lm_without_callable("Query")

assert mock_completion.call_count == 2


def test_lms_called_expected_number_of_times_for_cache_key_generation_failures():
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fails on main:

FAILED test_caching.py::test_lms_called_expected_number_of_times_for_cache_key_generation_failures - AssertionError: assert 2 == 1

Signed-off-by: dbczumar <[email protected]>
Signed-off-by: dbczumar <[email protected]>
@okhat okhat merged commit f11ccc0 into stanfordnlp:main Dec 10, 2024
4 checks passed
isaacbmiller pushed a commit that referenced this pull request Dec 11, 2024
* fix

Signed-off-by: dbczumar <[email protected]>

* Test

Signed-off-by: dbczumar <[email protected]>

* fix

Signed-off-by: dbczumar <[email protected]>

* fix

Signed-off-by: dbczumar <[email protected]>

---------

Signed-off-by: dbczumar <[email protected]>
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