Skip to content

Commit 3ddf51c

Browse files
committed
fix in unitttest
1 parent 552fe2d commit 3ddf51c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/cli/launcher_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
class TestLauncherMain(unittest.TestCase):
3232
def setUp(self):
33+
if multiprocessing.get_start_method(allow_none=True) != "spawn":
34+
multiprocessing.set_start_method("spawn", force=True)
3335
self._orig_argv = sys.argv.copy()
3436
self.config = get_template_config()
3537
self.config.checkpoint_root_dir = get_checkpoint_path()

trinity/common/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
LOG_DIR_ENV_VAR,
1717
LOG_LEVEL_ENV_VAR,
1818
LOG_NODE_IP_ENV_VAR,
19-
MAX_MODEL_LEN,
2019
PLUGIN_DIRS_ENV_VAR,
2120
TRAINER_NAME,
2221
PromptType,

0 commit comments

Comments
 (0)