| fix: add low precision opt verification
Co-authored-by: yulelanmei<huangyijie8@huawei.com>
# message auto-generated for no-merge-commit merge:
!4504 merge master into master
fix: add low precision opt verification
Created-by: yulelanmei
Commit-by: yulelanmei
Merged-by: ascend-robot
Description: Fix [#1398](https://gitcode.com/Ascend/MindSpeed-LLM/issues/1398)
## What this PR does / why we need it?
The low precision optimizer features: --quant-states & --quant-grads are incompatible with --swap-optimizer, but no verification right now.
## Does this PR introduce any user-facing change?
When user uses both parameters, a verification message is displayed.
## How was this patch tested?
Turn on both parameters in a train script in addition.
See merge request: Ascend/MindSpeed-LLM!4504 | 7 天前 |