mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
RUFF
This commit is contained in:
@@ -61,7 +61,8 @@ def _get_lmfe_tokenizer_data(tokenizer: ExLlamaV2Tokenizer):
|
||||
|
||||
|
||||
def clear_grammar_func_cache():
|
||||
"""Flush tokenizer_data cache to avoid holding references to tokenizers after unloading a model"""
|
||||
"""Flush tokenizer_data cache to avoid holding references to
|
||||
tokenizers after unloading a model"""
|
||||
|
||||
_get_lmfe_tokenizer_data.clear_cache()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user