-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Compression API Supports ERNIE-M and more Pretrained models #3234
Changes from all commits
6aa43ab
0a717cc
4b1d370
463ce91
4a908a5
e221215
5fcd497
d0c1f22
1d10df1
29bdba6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,10 +147,10 @@ def print_config(self, args=None, key=""): | |
'weight_quantize_type', 'input_infer_model_path' | ||
] | ||
default_arg_dict = { | ||
"width_mult_list": [0.75], | ||
'batch_size_list': [1], | ||
"width_mult_list": ['3/4'], | ||
'batch_size_list': [4, 8, 16], | ||
'algo_list': ['mse', 'KL'], | ||
'batch_num_list': [4, 8, 16] | ||
'batch_num_list': [1] | ||
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. 请教一下,batch_num_list这个参数是什么含义了? 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. 校准数据是通过data_loader提供的,batch_num是离线量化要跑的batch数,也属于一个超参,batch_num_list是该参数要搜索的list。比如 |
||
} | ||
logger.info("=" * 60) | ||
if args is None: | ||
|
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.
这里和下面的例子,是不是把input_ids 和 token_type_ids key写上,和Trainer相关的代码一致?
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.
感谢提醒,已经补充