@sachinn12 reported inconsistenties across model run repetitions. I added a first test for cache validation:
|
def test_bert_embedding_apd_change_graded_ger(self) -> None: |
The test runs through for me 1. when disabling embedding caching, 2. when disabling wic caching, and 3. when disabling both. I was thus not able to find caching inconsistencies yet. But, these could be related to specific datasests, or models (e.g. DM). We should add more tests.
For now, caching wic and embedding caching was disabled here:
|
#self._save_cache() # temporarily disabled |
|
#if self.embedding_cache is not None: |
Uncomment to enable caching again.
We should check whether caching is dataset-specific or not.
#82 may be related.
@sachinn12 reported inconsistenties across model run repetitions. I added a first test for cache validation:
LSCDBenchmark/tests/integration/test_cache.py
Line 19 in d99728c
The test runs through for me 1. when disabling embedding caching, 2. when disabling wic caching, and 3. when disabling both. I was thus not able to find caching inconsistencies yet. But, these could be related to specific datasests, or models (e.g. DM). We should add more tests.
For now, caching wic and embedding caching was disabled here:
LSCDBenchmark/src/wic/model.py
Line 77 in d99728c
LSCDBenchmark/src/wic/contextual_embedder.py
Line 466 in d99728c
Uncomment to enable caching again.
We should check whether caching is dataset-specific or not.
#82 may be related.