Skip to content

Commit

Permalink
fix nb workers
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Nov 6, 2024
1 parent 0d7151a commit 9292e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delft/sequenceLabelling/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def train_model(self, local_model, x_train, y_train, f_train=None,
model=local_model,
external_callbacks=callbacks
)
nb_workers = 0
nb_workers = 6
multiprocessing = self.training_config.multiprocessing

# multiple workers should work with transformer layers, but not with ELMo due to GPU memory limit (with GTX 1080Ti 11GB)
Expand Down

0 comments on commit 9292e2a

Please sign in to comment.