mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-20 14:22:08 +00:00
7 lines
91 B
Python
7 lines
91 B
Python
from functools import lru_cache
|
|
|
|
|
|
@lru_cache(10)
|
|
def log_once(log, msg: str):
|
|
log(msg)
|