Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Fixing some of the simple tests #4991

Merged
merged 5 commits into from
Mar 24, 2023
Merged
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
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ commands:
python -m pip install --progress-bar off torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
python -m pip install --progress-bar off 'fairscale~=0.4.0'
python -m pip install --progress-bar off pytorch-pretrained-bert
python -m pip install --progress-bar off 'transformers==4.3.3'
python -m pip install --progress-bar off 'transformers==4.20'
python -m pip install --progress-bar off 'fairseq==0.10.0'
python -m pip install --progress-bar off 'faiss-gpu==1.7.0'
python -m pip uninstall dataclasses -y
Expand All @@ -127,7 +127,7 @@ commands:
- run:
name: Install torch CPU and dependencies
command: |
python -m pip install --progress-bar off 'transformers==4.3.3'
python -m pip install --progress-bar off 'transformers==4.20'
python -m pip install --progress-bar off 'torch==1.11.0'
python -c 'import torch; print("Torch version:", torch.__version__)'
python -m torch.utils.collect_env
Expand All @@ -139,7 +139,7 @@ commands:
name: Install torch CPU and dependencies
command: |
python -m pip install --progress-bar off 'torch==1.11.0+cpu' 'torchvision==0.12.0+cpu' 'torchaudio==0.11.0+cpu' -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install --progress-bar off 'transformers==4.3.3'
python -m pip install --progress-bar off 'transformers==4.20'
python -c 'import torch; print("Torch version:", torch.__version__)'
python -m torch.utils.collect_env

Expand Down
2 changes: 1 addition & 1 deletion parlai/crowdsourcing/tasks/model_chat/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def run_task(cfg: DictConfig, task_directory: str, world_module=None):
# Default to a task-specific name to avoid soft-block collisions
soft_block_mturk_workers(cfg=cfg, db=db, soft_block_qual_name=soft_block_qual_name)

# TODO: this maybe moved to the parent class: SharedModelChatTaskState
# TODO: this maybe moved to the parent class: SharedModelChatTaskState
if cfg.mephisto.blueprint.allowed_worker_qualification is not None:
use_qualifications = [
make_qualification_dict(
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ datasets<2.2.2,>=1.4.1
docutils<0.16,>=0.14
emoji==0.5.4
fairscale~=0.4.1
docformatter==1.3.0
docformatter~=1.4.0
flake8-bugbear==19.8.0
flake8==3.7.8
fuzzywuzzy==0.18.0
Expand Down
8 changes: 8 additions & 0 deletions tests/test_clearml_logger.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#!/usr/bin/env python3

# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import unittest
import parlai.utils.testing as testing_utils


def setUpModule():
unittest.defaultTestLoader.parallelism = 1


class TestClearMLLogger(unittest.TestCase):
@testing_utils.skipUnlessClearML
def test_task_init(self):
from clearml import Task

Expand Down