pycorrector icon indicating copy to clipboard operation
pycorrector copied to clipboard

有什么缩小模型的方式吗?在使用T5训练的时候,想降低模型的大小

Open HJT9328 opened this issue 1 year ago • 2 comments

修改了config.json中的torch.dtype float32->float16 不生效,然后尝试在train.py中设置fp16:True 在查看checkpoint的时候发现模型也没有明显的大小变化,有什么好的方案来压缩模型大小吗?

HJT9328 avatar Jul 27 '23 07:07 HJT9328

模型蒸馏

shibing624 avatar Jul 27 '23 08:07 shibing624

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.(由于长期不活动,机器人自动关闭此问题,如果需要欢迎提问)

stale[bot] avatar Dec 27 '23 07:12 stale[bot]