Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix KPI_EXTRACTION deadlock and missing EXPERIMENT_NAME strings to unblock CDP processing #185

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions notebooks/demo2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
BASE_INFER_KPI_FOLDER = DATA_FOLDER / "infer_KPI"
BASE_INFER_RELEVANCE_FOLDER = DATA_FOLDER / "infer_relevance"

EXPERIMENT_NAME = "test-demo-2"
SAMPLE_SIZE = "small"
EXPERIMENT_NAME = "test-demo-4"
SAMPLE_SIZE = "medium"


DATA_S3_PREFIX = f"{EXPERIMENT_NAME}/pipeline_run/{SAMPLE_SIZE}"
Expand Down
4 changes: 3 additions & 1 deletion notebooks/demo2/config_farm_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import os
from farm.modeling.prediction_head import TextClassificationHead
import torch
import multiprocessing as mp # ??? should this be torch.multiprocessing ???

from logging import getLogger, WARNING, INFO, DEBUG


Expand Down Expand Up @@ -124,7 +126,7 @@ def __init__(self, project_name):
self.grad_acc_steps = 1
self.run_cv = False # running cross-validation won't save a model
self.xval_folds = 5

self.num_processes = mp.cpu_count() - 1 or 1

class MLFlowConfig(Config):
"""MLFlowConfig class."""
Expand Down
4 changes: 2 additions & 2 deletions notebooks/demo2/config_qa_farm_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# or any hugging face model e.g. deepset/roberta-base-squad2, a-ware/roberta-large-squadv2
# Full list at huggingface.co/models
base_lm_model = "a-ware/roberta-large-squadv2"
project_name = ""
project_name = "test_nodeadlock"


class QAConfig(Config):
Expand Down Expand Up @@ -135,7 +135,7 @@ def __init__(self, project_name):
if self.run_cv:
self.evaluate_every = 0
self.xval_folds = 5

self.num_processes = 1

class QAMLFlowConfig(QAConfig):
"""QAMLFlowConfig class."""
Expand Down
Loading