Skip to content

Commit d53f14c

Browse files
add sys_path
1 parent 2d1f9cf commit d53f14c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llm/auto_parallel/llama/run_pretrain_auto.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ def main():
455455
mock_layers()
456456

457457
if "replace_with_parallel_cross_entropy" in training_args.tensor_parallel_config:
458+
utils_path = "/workspace/PaddleNLP/llm/utils"
459+
sys.path.append(utils_path)
460+
458461
from replace_ops import replace_cross_entropy
459462

460463
replace_cross_entropy()

0 commit comments

Comments
 (0)