Upload code/build_sft_v20_dataset.py with huggingface_hub
Browse files110 unmodified lines111112113114115116117110 unmodified lines# Environment detectionIS_KAGGLE = os.path.exists("/kaggle/working")CUR_DIR = os.path.dirname(os.path.abspath(__file__))ROOT_DIR = "/kaggle/working" if IS_KAGGLE else os.path.abspath(os.path.join(CUR_DIR, ".."))DATA_DIR = os.path.join(ROOT_DIR, "data")OUTPUT_DIR = os.path.join(ROOT_DIR, "tokenized_data", f"sft_{VERSION}")110 unmodified lines111112113114115116117110 unmodified lines# Environment detectionIS_KAGGLE = os.path.exists("/kaggle/working")CUR_DIR = os.path.dirname(os.path.abspath(__file__)) if "__file__" in globals() else os.getcwd()ROOT_DIR = "/kaggle/working" if IS_KAGGLE else os.path.abspath(os.path.join(CUR_DIR, ".."))DATA_DIR = os.path.join(ROOT_DIR, "data")OUTPUT_DIR = os.path.join(ROOT_DIR, "tokenized_data", f"sft_{VERSION}")
code/build_sft_v20_dataset.py+1-1