Browse Source

[fix] issue#771

jingyaogong 6 months ago
parent
commit
4497610ec0

+ 1 - 0
trainer/train_agent.py

@@ -4,6 +4,7 @@ import sys
 __package__ = "trainer"
 __package__ = "trainer"
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 
+import datasets  # noqa: F401  # Windows pyarrow/torch DLL conflict workaround (issue #771)
 import re
 import re
 import gc
 import gc
 import json
 import json

+ 1 - 0
trainer/train_distillation.py

@@ -4,6 +4,7 @@ import sys
 __package__ = "trainer"
 __package__ = "trainer"
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 
+import datasets  # noqa: F401  # Windows pyarrow/torch DLL conflict workaround (issue #771)
 import argparse
 import argparse
 import time
 import time
 import warnings
 import warnings

+ 1 - 0
trainer/train_dpo.py

@@ -4,6 +4,7 @@ import sys
 __package__ = "trainer"
 __package__ = "trainer"
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 
+import datasets  # noqa: F401  # Windows pyarrow/torch DLL conflict workaround (issue #771)
 import argparse
 import argparse
 import time
 import time
 import warnings
 import warnings

+ 1 - 0
trainer/train_full_sft.py

@@ -4,6 +4,7 @@ import sys
 __package__ = "trainer"
 __package__ = "trainer"
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 
+import datasets  # noqa: F401  # Windows pyarrow/torch DLL conflict workaround (issue #771)
 import argparse
 import argparse
 import time
 import time
 import warnings
 import warnings

+ 1 - 0
trainer/train_grpo.py

@@ -4,6 +4,7 @@ import sys
 __package__ = "trainer"
 __package__ = "trainer"
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 
+import datasets  # noqa: F401  # Windows pyarrow/torch DLL conflict workaround (issue #771)
 import argparse
 import argparse
 import math
 import math
 import re
 import re

+ 1 - 0
trainer/train_lora.py

@@ -4,6 +4,7 @@ import sys
 __package__ = "trainer"
 __package__ = "trainer"
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 
+import datasets  # noqa: F401  # Windows pyarrow/torch DLL conflict workaround (issue #771)
 import argparse
 import argparse
 import time
 import time
 import warnings
 import warnings

+ 1 - 0
trainer/train_ppo.py

@@ -4,6 +4,7 @@ import sys
 __package__ = "trainer"
 __package__ = "trainer"
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 
+import datasets  # noqa: F401  # Windows pyarrow/torch DLL conflict workaround (issue #771)
 import argparse
 import argparse
 import math
 import math
 import re
 import re

+ 1 - 0
trainer/train_pretrain.py

@@ -4,6 +4,7 @@ import sys
 __package__ = "trainer"
 __package__ = "trainer"
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 
+import datasets  # noqa: F401  # Windows pyarrow/torch DLL conflict workaround (issue #771)
 import argparse
 import argparse
 import time
 import time
 import warnings
 import warnings