Skip to content

Add tests for flat_strip()#1289

Merged
jeswan merged 2 commits intojs/feature/easy_add_modelfrom
js/test/flat_strip
Mar 11, 2021
Merged

Add tests for flat_strip()#1289
jeswan merged 2 commits intojs/feature/easy_add_modelfrom
js/test/flat_strip

Conversation

@jeswan
Copy link
Collaborator

@jeswan jeswan commented Mar 8, 2021

Adds tests for flat_strip() as requested at #1288 (comment)

@jeswan jeswan requested a review from zphang as a code owner March 8, 2021 01:42
@jeswan jeswan changed the base branch from master to js/feature/easy_add_model March 8, 2021 01:42
@jeswan jeswan requested a review from HaokunLiu as a code owner March 8, 2021 01:42
@jeswan jeswan force-pushed the js/test/flat_strip branch from bde83f0 to 796028d Compare March 8, 2021 01:43
@jeswan jeswan changed the title Add test for flat_strip() Add tests for flat_strip() Mar 8, 2021
@codecov
Copy link

codecov bot commented Mar 8, 2021

Codecov Report

Merging #1289 (d059814) into js/feature/easy_add_model (18caa40) will increase coverage by 0.38%.
The diff coverage is n/a.

Impacted file tree graph

@@                      Coverage Diff                      @@
##           js/feature/easy_add_model    #1289      +/-   ##
=============================================================
+ Coverage                      49.36%   49.74%   +0.38%     
=============================================================
  Files                            162      162              
  Lines                          11168    11168              
=============================================================
+ Hits                            5513     5556      +43     
+ Misses                          5655     5612      -43     
Impacted Files Coverage Δ
jiant/shared/model_resolution.py 46.15% <0.00%> (+1.53%) ⬆️
...tasks/lib/templates/hacky_tokenization_matching.py 60.00% <0.00%> (+46.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18caa40...d059814. Read the comment docs.

Copy link
Collaborator

@zphang zphang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you tweak this to support a list of test cases? Otherwise, LGTM

@jeswan
Copy link
Collaborator Author

jeswan commented Mar 11, 2021

Can you tweak this to support a list of test cases? Otherwise, LGTM

Added!

@jeswan jeswan merged commit c9c0410 into js/feature/easy_add_model Mar 11, 2021
@jeswan jeswan deleted the js/test/flat_strip branch March 11, 2021 00:55
jeswan added a commit that referenced this pull request May 4, 2021
* Update to Transformers v4.3.3 (#1266)

* use default return_dict in taskmodels and remove hidden state context manager in models.

* return hidden states in output of model wrapper

* Switch to task model/head factories instead of embedded if-else statements (#1268)

* Use jiant transformers model wrapper instead of if-else. Use taskmodel and head factory instead of if-else.

* switch to ModelArchitectures enum instead of strings

* Refactor get_output_from_encoder() to be member of JiantTaskModel (#1283)

* refactor getting output from encoder to be member function of jiant model

* switch to explicit encode() in jiant transformers model

* fix simple runscript test

* update to tokenizer 0.10.1

* Add tests for flat_strip() (#1289)

* add flat_strip test

* add list to test cases flat_strip

* mlm_weights(), feat_spec(), flat_strip() if-else refactors (#1288)

* moves remaining if-else statments to jiant model or replaces with model agnostic method

* switch from jiant_transformers_model to encoder

* fix bug in flat_strip()

* Move tokenization logic to central JiantModelTransformers method (#1290)

* move model specific tokenization logic to JiantTransformerModels

* implement abstract methods for JiantTransformerModels

* fix tasks circular import (#1296)

* Add DeBERTa (#1295)

* Add DeBERTa with sanity test

* fix tasks circular import

* [WIP] add deberta tests

* Revert "fix tasks circular import"

This reverts commit f924640.

* deberta tests passing with transformers 6472d8

* switch to deberta-v2

* fix get_mlm_weights_dict() for deberta-v2

* update to transformers 4.5.0

* mark deberta test_export as slow

* Update test_tokenization_normalization.py

* add guide to add a model

* fix test_expor_model tests

* minor pytest fixes (add num_labels for rte, overnight flag fix)

* bugfix for simple api notebook

* bugfix for #1310

* bugfix for #1306: simple api notebook path name

* squad running

* 2nd bugfix for #1310: not all tasks have num_labels property

* simple api notebook back to roberta-base

* run test matrix for more steps to compare to master

* save last/best model test fix

Co-authored-by: Jesse Swanson <js11133Wnyu.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants