This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from microsoft/hlu/update_entailment_notebook…
…_running_time Hlu/update entailment notebook running time
- Loading branch information
Showing
3 changed files
with
125 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/integration/test_notebooks_entailment_multinli_bert.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
import pytest | ||
import papermill as pm | ||
from tests.notebooks_common import OUTPUT_NOTEBOOK, KERNEL_NAME | ||
|
||
|
||
@pytest.mark.gpu | ||
@pytest.mark.integration | ||
def test_entailment_multinli_bert(notebooks): | ||
notebook_path = notebooks["entailment_multinli_bert"] | ||
pm.execute_notebook( | ||
notebook_path, | ||
OUTPUT_NOTEBOOK, | ||
parameters={ | ||
"TRAIN_DATA_USED_PERCENT": 0.001, | ||
"DEV_DATA_USED_PERCENT": 0.01, | ||
"NUM_EPOCHS": 1, | ||
}, | ||
kernel_name=KERNEL_NAME, | ||
) |