Charlie81 commited on
Commit
dd2e997
·
1 Parent(s): 8e88ea1

cache diagnostics

Browse files
Files changed (1) hide show
  1. scripts/train.py +13 -0
scripts/train.py CHANGED
@@ -23,7 +23,20 @@ cache_dir = os.path.expanduser("~/.cache/huggingface/datasets")
23
  if os.path.exists(cache_dir):
24
  shutil.rmtree(cache_dir)
25
 
 
 
 
 
 
 
 
26
 
 
 
 
 
 
 
27
  def main():
28
  print("Starting Training Script for my cool OLMoE")
29
  # Load config - first try from local file, then from pretrained
 
23
  if os.path.exists(cache_dir):
24
  shutil.rmtree(cache_dir)
25
 
26
+ #
27
+ import datasets
28
+ import os
29
+
30
+ # Check current cache directory
31
+ print("Current cache directory:", datasets.config.HF_DATASETS_CACHE)
32
+ print("Cache exists:", os.path.exists(datasets.config.HF_DATASETS_CACHE))
33
 
34
+ # List contents if it exists
35
+ if os.path.exists(datasets.config.HF_DATASETS_CACHE):
36
+ print("Cache contents:")
37
+ for item in os.listdir(datasets.config.HF_DATASETS_CACHE):
38
+ print(f" {item}")
39
+ #
40
  def main():
41
  print("Starting Training Script for my cool OLMoE")
42
  # Load config - first try from local file, then from pretrained