-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Move test model folders #17034
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
Merged
Merged
Move test model folders #17034
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
babdc23
test - to be revert
ydshieh 8ff0bde
temp change to generate new cache - to be reverted
ydshieh d09b62b
temp change to generate new cache - to be reverted
ydshieh 75ff03c
clean-up
ydshieh ffbcad9
move test model folders (TODO: fix imports and others)
ydshieh 7851bdb
fix (potentially partially) imports (in model test modules)
ydshieh fed0b1d
fix (potentially partially) imports (in tokenization test modules)
ydshieh c439b16
fix (potentially partially) imports (in feature extraction test modules)
ydshieh f35f1c5
fix import utils.test_modeling_tf_core
ydshieh 2d801d2
fix path ../fixtures/
ydshieh 7d1d1a5
fix imports about generation.test_generation_flax_utils
ydshieh ab59261
fix more imports
ydshieh ae4827b
fix fixture path
ydshieh faba7b6
fix get_test_dir
ydshieh 8c9600e
update module_to_test_file
ydshieh 732ca46
fix get_tests_dir from wrong transformers.utils
ydshieh 16e269e
update config.yml (CircleCI)
ydshieh 6b52d1f
fix style
ydshieh e971915
remove missing imports
ydshieh 4b0320e
update new model script
ydshieh 8b470d0
update check_repo
ydshieh 3dad271
update SPECIAL_MODULE_TO_TEST_MAP
ydshieh 790f0d9
fix style
ydshieh c31b9c9
add __init__
ydshieh 39966aa
update self-scheduled
ydshieh c90b35c
fix add_new_model scripts
ydshieh 579cdbf
check one way to get location back
ydshieh fa9cfd4
python setup.py build install
ydshieh 021ae85
fix import in test auto
ydshieh 825581f
update self-scheduled.yml
ydshieh b83abd8
update slack notification script
ydshieh 0e44f67
Add comments about artifact names
ydshieh 9bc8e1a
fix for yolos
ydshieh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 | ||||
---|---|---|---|---|---|---|
|
@@ -14,7 +14,6 @@ | |||||
# limitations under the License. | ||||||
|
||||||
import importlib | ||||||
import os | ||||||
import sys | ||||||
import tempfile | ||||||
import unittest | ||||||
|
@@ -24,15 +23,15 @@ | |||||
from transformers.models.auto.configuration_auto import CONFIG_MAPPING, AutoConfig | ||||||
from transformers.models.bert.configuration_bert import BertConfig | ||||||
from transformers.models.roberta.configuration_roberta import RobertaConfig | ||||||
from transformers.testing_utils import DUMMY_UNKNOWN_IDENTIFIER | ||||||
from transformers.testing_utils import DUMMY_UNKNOWN_IDENTIFIER, get_tests_dir | ||||||
|
||||||
|
||||||
sys.path.append(str(Path(__file__).parent.parent.parent / "utils")) | ||||||
sys.path.append(str(Path(__file__).parent.parent.parent.parent / "utils")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if the number of
Suggested change
but it's totally ok like it is right now. |
||||||
|
||||||
from test_module.custom_configuration import CustomConfig # noqa E402 | ||||||
|
||||||
|
||||||
SAMPLE_ROBERTA_CONFIG = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../fixtures/dummy-config.json") | ||||||
SAMPLE_ROBERTA_CONFIG = get_tests_dir("fixtures/dummy-config.json") | ||||||
|
||||||
|
||||||
class AutoConfigTest(unittest.TestCase): | ||||||
|
This file contains hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit difficult to read, may I propose a simplified version which I hope is easier to follow, plus it adds some new lines and additionally removes
__pycache__
dir which shouldn't be in the results.Here is just the python snippet:
which I tested with, I hope I plugged it in correctly above - i.e. untested.