Skip to content

Validate embedding and wic caching #83

Description

@Garrafao

@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.

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions