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

Added support for masked language modeling (bidirectional models) #211

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

added comment explaining BERT layer assignment

08433e3
Select commit
Loading
Failed to load commit list.
Open

Added support for masked language modeling (bidirectional models) #211

added comment explaining BERT layer assignment
08433e3
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Nov 10, 2023 in 22m 35s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #211 Added support for masked language modeling (bidirectional models).
Any changes that have been made to the main branch before the build ran are also included.

Jobs and Stages

This build has five jobs, running in two sequential stages.

Stage 1: test

This stage passed.

Job Python ENV OS State
1367.1 3.8 public 3.8 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux passed
1367.2 3.8 private 3.8 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux passed
1367.3 3.9 public 3.9 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux passed
1367.4 3.9 private 3.9 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux passed

Stage 2: Automerge check

This stage passed.

Job ENV OS State
1367.5 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux passed

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Xenial)
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "env": [
    "global={:PYTEST_SETTINGS=>\"\\\"not requires_gpu and not memory_intense and not slow and not travis_slow\\\"\"}={:MODIFIES_PLUGIN=>\"\\\"False\\\"\"}={:PLUGIN_ONLY=>\"\\\"False\\\"\"}={:WEB_SUBMISSION=>\"\\\"False\\\"\"}"
  ],
  "install": [
    "python -m pip install -e \".[test]\"",
    "wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh",
    "bash miniconda.sh -b -p $HOME/miniconda",
    "source \"$HOME/miniconda/etc/profile.d/conda.sh\"",
    "hash -r",
    "conda config --set always_yes yes --set changeps1 no",
    "conda update -q conda",
    "conda info -a",
    "pip list",
    "conda install -yc conda-forge singularity"
  ],
  "before_script": [
    "git fetch --depth=50 origin refs/heads/main:refs/heads/main"
  ],
  "script": [
    "CHANGED_FILES=$( echo $(git diff --name-only main $TRAVIS_PULL_REQUEST_SHA -C $TRAVIS_BUILD_DIR) | tr '\\n' ' ' )",
    "if [ \"$TRAVIS_PULL_REQUEST\" ]; then \n  TESTING_NEEDED=$( python -c \"from brainscore_core.plugin_management.parse_plugin_changes import get_testing_info; get_testing_info(\\\"${CHANGED_FILES}\\\", 'brainscore_language')\" ) && \n  read MODIFIES_PLUGIN PLUGIN_ONLY <<< $TESTING_NEEDED && echo MODIFIES_PLUGIN: $MODIFIES_PLUGIN && echo PLUGIN_ONLY: $PLUGIN_ONLY; \nfi\n",
    "if [ \"$MODIFIES_PLUGIN\" = \"True\" ]; then python -c \"from brainscore_core.plugin_management.parse_plugin_changes import run_changed_plugin_tests; run_changed_plugin_tests(\\\"${CHANGED_FILES}\\\", 'brainscore_language')\"; fi",
    "if [ \"$PRIVATE_ACCESS\" = 1 ] && [ -n \"${GITHUB_TOKEN}\" ] && [ \"$PLUGIN_ONLY\" = \"False\" ]; then pytest -m \"private_access and $PYTEST_SETTINGS\"; fi",
    "if [ \"$PRIVATE_ACCESS\" != 1 ] && [ \"$PLUGIN_ONLY\" = \"False\" ]; then pytest -m \"not private_access and $PYTEST_SETTINGS\" --ignore \"tests/test_submission\"; fi"
  ],
  "after_failure": [
    "PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep \"title\" | head -1)",
    "if [[ \"$PR_TITLE\" = \"brain-score.org (user:\"* ]]; then WEB_SUBMISSION=\"True\"; fi",
    "if $WEB_SUBMISSION = \"True\"; then\n  BRAINSCORE_UID=$(<<<$PR_TITLE | sed -E 's/.*\\(user:([^)]+)\\).*/\\1/') && \n  python -c \"from brainscore_language.submission.endpoints import send_email_to_submitter; send_email_to_submitter(\\\"${BRAINSCORE_UID}\\\", 'language', \\\"${$TRAVIS_PULL_REQUEST}\\\", \\\"${$GMAIL_USERNAME}\\\", \\\"${GMAIL_PASSWORD}\\\")\"; \nfi\n"
  ],
  "jobs": {
    "include": [
      {
        "name": "3.8 public",
        "python": "3.8"
      },
      {
        "name": "3.8 private",
        "python": "3.8",
        "env": [
          {
            "PRIVATE_ACCESS": "1"
          }
        ]
      },
      {
        "name": "3.9 public",
        "python": "3.9"
      },
      {
        "name": "3.9 private",
        "python": "3.9",
        "env": [
          {
            "PRIVATE_ACCESS": "1"
          }
        ]
      },
      {
        "stage": "Automerge check",
        "install": [
          "skip"
        ],
        "if": "type = pull_request",
        "script": [
          "if [ \"$PLUGIN_ONLY\" = \"True\" ]; then bash ${TRAVIS_BUILD_DIR}/.github/workflows/travis_trigger.sh $GH_WORKFLOW_TRIGGER $TRAVIS_PULL_REQUEST_SHA $PLUGIN_ONLY; fi"
        ]
      }
    ]
  }
}