diff --git a/ldm/invoke/globals.py b/ldm/invoke/globals.py index c995c42028..9db54fe62d 100644 --- a/ldm/invoke/globals.py +++ b/ldm/invoke/globals.py @@ -72,7 +72,13 @@ def global_cache_dir(subdir:Union[str,Path]='')->Path: for huggingface-style conventions: global_cache_dir('diffusers') global_cache_dir('hub') - global_cache_dir('transformers') # not used? + Current HuggingFace documentation (mid-Jan 2023) indicates that + transformers models will be cached into a "transformers" subdirectory, + but in practice they seem to go into "hub". But if needed: + global_cache_dir('transformers') + One other caveat is that HuggingFace is moving some diffusers models + into the "hub" subdirectory as well, so this will need to be revisited + from time to time. ''' home: str = os.getenv('HF_HOME')