mlabonne commited on
Commit
66a64db
·
verified ·
1 Parent(s): 58cfbcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -444,7 +444,13 @@ def merge_loop():
444
  create_pod(model_name, USERNAME)
445
  # print(f"Total size: {human_readable_size(get_size(dir_path))}")
446
 
447
-
 
 
 
 
 
 
448
  # Install scrape-open-llm-leaderboard and mergekit
449
  command = ["git", "clone", "-q", "https://github.com/Weyaxi/scrape-open-llm-leaderboard"]
450
  subprocess.run(command, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
 
444
  create_pod(model_name, USERNAME)
445
  # print(f"Total size: {human_readable_size(get_size(dir_path))}")
446
 
447
+
448
+ # Set the HF_DATASETS_CACHE environment variable
449
+ os.environ['HF_DATASETS_CACHE'] = "/data/hfcache/"
450
+
451
+ # Verify the environment variable is set
452
+ print(os.environ['HF_DATASETS_CACHE'])
453
+
454
  # Install scrape-open-llm-leaderboard and mergekit
455
  command = ["git", "clone", "-q", "https://github.com/Weyaxi/scrape-open-llm-leaderboard"]
456
  subprocess.run(command, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)