Model: Grammar: Fix lru_cache clear function

It's cache_clear not clear_cache.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-07-08 15:10:15 -04:00
parent 17438288c7
commit 62e495fc13

View File

@@ -64,7 +64,7 @@ def clear_grammar_func_cache():
"""Flush tokenizer_data cache to avoid holding references to
tokenizers after unloading a model"""
_get_lmfe_tokenizer_data.clear_cache()
_get_lmfe_tokenizer_data.cache_clear()
class ExLlamaV2Grammar: