Skip to content
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

fix: use_calib is not configured properly #1414

Merged
merged 2 commits into from
Oct 11, 2021

Conversation

ShiningZhang
Copy link
Collaborator

@ShiningZhang ShiningZhang commented Oct 11, 2021

  1. server.py运行bin文件时,原本use_calib默认为False,执行的命令行未能正确传递use_calib参数,使的use_calib参数传递到bin/serving时始终为True,因此在TRT int8模式时,会进入calib模式。此模式下,paddle会创建fp32的TRT CalibratorEngine处理请求,同时会统计分析请求数据。正常逻辑应为use_calib=False,此时paddle会正常加载模型,若模型为普通模型,则会使用fp32模式处理模型。
  2. 修改了server.py文件,使的use_calib可以正常传参。并参照paddle api的描述修改了use_calib的描述。

@paddle-bot-old
Copy link

Thanks for your contribution!

Copy link
Collaborator

@TeslaZhao TeslaZhao left a comment

Choose a reason for hiding this comment

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

LGTM

@TeslaZhao TeslaZhao merged commit 086605b into PaddlePaddle:develop Oct 11, 2021
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