ZhengPeng7 commited on
Commit
752e7b9
·
1 Parent(s): 217b29d

Change the CACHE PATH of HF and transformers lib to /tmp/xx.

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -19,10 +19,10 @@ import zipfile
19
 
20
 
21
  transformers.utils.move_cache()
22
- os.environ["HUGGINGFACE_HUB_CACHE"] = "/data/hf_cache"
23
- os.environ["HF_HOME"] = "/data/hf_cache"
24
- os.environ["TRANSFORMERS_CACHE"] = "/data/hf_cache"
25
- os.makedirs("/data/hf_cache", exist_ok=True)
26
 
27
 
28
  torch.set_float32_matmul_precision('high')
 
19
 
20
 
21
  transformers.utils.move_cache()
22
+ os.environ["HUGGINGFACE_HUB_CACHE"] = "/tmp/hf_cache"
23
+ os.environ["HF_HOME"] = "/tmp/hf_cache"
24
+ os.environ["TRANSFORMERS_CACHE"] = "/tmp/hf_cache"
25
+ os.makedirs("/tmp/hf_cache", exist_ok=True)
26
 
27
 
28
  torch.set_float32_matmul_precision('high')