From c0a94f012cef1587dba24b5e37272560cbe867ed Mon Sep 17 00:00:00 2001 From: Parker Glenn Date: Fri, 10 May 2024 13:28:40 -0400 Subject: [PATCH] Only use self.model_name_or_path in cache path --- blendsql/models/_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blendsql/models/_model.py b/blendsql/models/_model.py index abe2185b..02655a6f 100644 --- a/blendsql/models/_model.py +++ b/blendsql/models/_model.py @@ -55,7 +55,7 @@ class Model: def __attrs_post_init__(self): self.cache = Cache( Path(platformdirs.user_cache_dir("blendsql")) - / f"{self.__class__}_{self.model_name_or_path}.diskcache" + / f"{self.model_name_or_path}.diskcache" ) self.prompts: List[str] = [] if self.requires_config: