[rank0]: Traceback (most recent call last): [rank0]: File “/home/a/user/sundongdong/oellm/D-Robotics_LLM_2.0.0_S600_S100_SDK/llm_compression/lightcompress/scripts/../llmc/main.py”, line 229, in [rank0]: mkdirs(save_trans_path) [rank0]: File “/home/a/user/sundongdong/oellm/D-Robotics_LLM_2.0.0_S600_S100_SDK/llm_compression/lightcompress/llmc/utils/utils.py”, line 71, in mkdirs [rank0]: raise Exception(f’{path} existed before and is not empty. Need check.') [rank0]: Exception: ./adapt_runs/qwen3_5_w4a8/step1/transformed_model existed before and is not empty. Need check.
def mkdirs(path):
if os.path.isdir(path) and os.listdir(path):
bak = f"{path}.bak_{time.strftime('%m%d_%H%M%S')}"
os.rename(path, bak)
print(f"[warn] {path} not empty, moved to {bak}")
os.makedirs(path, exist_ok=True)