dmlc / gluon-nlp

NLP made easy
https://nlp.gluon.ai/
Apache License 2.0
2.55k stars 538 forks source link

Add adapter #1545

Open xinyual opened 3 years ago

xinyual commented 3 years ago

Description

add adapter and bias-finetune to finetune-script

Checklist

Essentials

Changes

Comments

cc @dmlc/gluon-nlp-team

codecov[bot] commented 3 years ago

Codecov Report

Merging #1545 (43327de) into master (1326258) will decrease coverage by 0.71%. The diff coverage is 78.94%.

:exclamation: Current head 43327de differs from pull request most recent head e25bcb3. Consider uploading reports for the commit e25bcb3 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1545      +/-   ##
==========================================
- Coverage   82.20%   81.48%   -0.72%     
==========================================
  Files          68       68              
  Lines        8540     8432     -108     
==========================================
- Hits         7020     6871     -149     
- Misses       1520     1561      +41     
Impacted Files Coverage Δ
src/gluonnlp/layers.py 86.72% <ø> (ø)
src/gluonnlp/models/transformer.py 97.89% <70.00%> (-0.64%) :arrow_down:
src/gluonnlp/models/bert.py 94.42% <88.88%> (-0.39%) :arrow_down:
conftest.py 76.31% <0.00%> (-9.94%) :arrow_down:
src/gluonnlp/data/loading.py 76.55% <0.00%> (-7.39%) :arrow_down:
src/gluonnlp/data/filtering.py 78.26% <0.00%> (-4.35%) :arrow_down:
src/gluonnlp/utils/lazy_imports.py 58.42% <0.00%> (-2.25%) :arrow_down:
src/gluonnlp/data/tokenizers/yttm.py 81.73% <0.00%> (-1.02%) :arrow_down:
src/gluonnlp/torch/models/transformer.py 27.23% <0.00%> (-0.92%) :arrow_down:
src/gluonnlp/data/tokenizers/spacy.py 65.33% <0.00%> (-0.91%) :arrow_down:
... and 24 more

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 5ff0519...e25bcb3. Read the comment docs.