We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50d16db commit c77352bCopy full SHA for c77352b
train.py
@@ -1,9 +1,12 @@
1
+# flake8: noqa: E402
2
import argparse
3
import json
4
import os
5
-import pytorch_lightning as pl
6
+# Disable tokenizer parallelism to avoid deadlocks due to forking
7
+os.environ["TOKENIZERS_PARALLELISM"] = "false"
8
9
+import pytorch_lightning as pl
10
import src.data_loaders as module_data
11
import torch
12
from pytorch_lightning.callbacks import ModelCheckpoint
0 commit comments