MCPcopy Create free account
hub / github.com/THUDM/GLM / lru_cache

Function lru_cache

data_utils/tokenization_gpt2.py:31–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 # Just a dummy decorator to get the checks to run on python2
30 # because honestly I don't want to support a byte-level unicode BPE tokenizer on python 2 right now.
31 def lru_cache():
32 return lambda func: func
33
34from .file_utils import cached_path
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected