GPT2-finetune / copy.py
benchang1110's picture
initial commit
63a1020
raw
history blame contribute delete
273 Bytes
import os
import shutil
PATH = os.path.join(os.environ['HF_CHECKPOINT'],'LoRA/upload')
# Get a list of all files in the source directory
files = os.listdir(PATH)
# Copy each file to the current directory
for file in files:
shutil.copy(os.path.join(PATH, file), './')