We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73c497 commit f78abd6Copy full SHA for f78abd6
libero/lifelong/main.py
@@ -3,6 +3,7 @@
3
os.environ["TOKENIZERS_PARALLELISM"] = "false"
4
import sys
5
import json
6
+import multiprocessing
7
import pprint
8
import time
9
from pathlib import Path
@@ -265,4 +266,7 @@ def main(hydra_cfg):
265
266
267
268
if __name__ == "__main__":
269
+ # Set the multiprocessing start method to 'spawn'
270
+ if multiprocessing.get_start_method(allow_none=True) != "spawn":
271
+ multiprocessing.set_start_method("spawn", force=True)
272
main()
0 commit comments