-
Notifications
You must be signed in to change notification settings - Fork 535
[Enhancement] One script to export bert for classification/regression/QA #705
Conversation
Codecov Report
|
Codecov Report
@@ Coverage Diff @@
## master #705 +/- ##
=========================================
+ Coverage 89.23% 89.3% +0.06%
=========================================
Files 65 65
Lines 5953 5991 +38
=========================================
+ Hits 5312 5350 +38
Misses 641 641
|
Job PR-705/1 is complete. |
Job PR-705/2 is complete. |
Job PR-705/3 is complete. |
Job PR-705/4 is complete. |
Job PR-705/5 is complete. |
Job PR-705/6 is complete. |
Job PR-705/7 is complete. |
Thank you for the contribution. I will have a try! |
Job PR-705/8 is complete. |
Job PR-705/9 is complete. |
@eric-haibin-lin How to run classification model inference? |
Thanks @eric-haibin-lin ! I'll help test the export base script. |
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.
max_length config
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.
Thank you for the great effort, @eric-haibin-lin . It looks good to me. Now approved!
Job PR-705/10 is complete. |
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.
Thanks! HybridBert works well with both gluon and symbolic forward:)
…/QA (dmlc#705) * rename folder * rename folder * draft for export * suppport qa,regression, classification * add readme and tasks * fix lint * fix unit test * fix test * remove test_bert_static_base_export * address comments * update default seq len
Hi, is there any guide on how to use the export script? I would like to export a fine-tuned Bert model. The code I'm using to train the model is this. |
Description
This PR unifies
static_export_squad.py
andstatic_export_base.py
by introducing a "task" argument toexport.py
. Currently it supports: classification, regression and question_answering.The PR also renames the StaticXXX classes to HybridXXX classes, in case we change the implementation with control flow operators to support variable length inputs in the future.
Checklist
Essentials
Changes
Comments