yeyupiaoling / PPASR

基于PaddlePaddle实现端到端中文语音识别,从入门到实战,超简单的入门案例,超实用的企业项目。支持当前最流行的DeepSpeech2、Conformer、Squeezeformer模型
Apache License 2.0
797 stars 131 forks source link

FatalError: `Erroneous arithmetic operation` is detected by the operating system. #164

Closed yourengod closed 11 months ago

yourengod commented 12 months ago
/xxx/lib/python3.8/site-packages/paddle/fluid/dygraph/amp/auto_cast.py:328: UserWarning: For float16, amp only support NVIDIA GPU with Compute Capability 7.0 or higher, current GPU is: NVIDIA GeForce GTX TITAN X, with Compute Capability: 5.2.
  warnings.warn(

--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   arange_ad_func(paddle::experimental::Tensor const&, paddle::experimental::Tensor const&, paddle::experimental::Tensor const&, paddle::experimental::DataType, phi::Place)
1   paddle::experimental::arange(paddle::experimental::Tensor const&, paddle::experimental::Tensor const&, paddle::experimental::Tensor const&, paddle::experimental::DataType, phi::Place const&)
2   void phi::ArangeKernel<long, phi::GPUContext>(phi::GPUContext const&, phi::DenseTensor const&, phi::DenseTensor const&, phi::DenseTensor const&, phi::DenseTensor*)

----------------------
Error Message Summary:
----------------------
FatalError: `Erroneous arithmetic operation` is detected by the operating system.
  [TimeInfo: *** Aborted at 1690252553 (unix time) try "date -d @1690252553" if you are using GNU date ***]
  [SignalInfo: *** SIGFPE (@0x7f7e27e2b9dd) received by PID 486069 (TID 0x7f7eb717e280) from PID 669170141 ***]

浮点数例外 (核心已转储)

python train.py时报的错误。 with paddle.amp.auto_cast(enable=self.configs.train_conf.get('enable_amp', False), level='O1'): 这里的auto_cast是False。问题不知道出在那里。请指教一下?谢谢了。

yeyupiaoling commented 12 months ago

看报错信息应该是你尝试使用半精度训练,但是你的显卡并不支持。 你是不是修改了配置文件,里面有个参数是指定半精度训练的。