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

During word2vec trainig, save_inference_model report NoneType error #31184

Closed
lidanqing-intel opened this issue Feb 24, 2021 · 3 comments
Closed
Assignees

Comments

@lidanqing-intel
Copy link
Contributor

Hi, @luotao1
During training word2vec model, save_inference_model report NoneType error
Build Paddle with following options

cmake ..  -DCMAKE_BUILD_TYPE=Release -DWITH_PYTHON=ON -DPY_VERSION=3.6 -DWITH_AVX=ON -DWITH_DISTRIBUTE=ON

Reproduction the training:

cd Fleet/2.0benchmark/ps/static/word2vec
python -u ../train.py -c benchmark.yaml

The output has following error

Epoch 0 Var LOSS        mean_0.tmp_0      - place: CPUPlace
  - shape: [1]
  - layout: NCHW
  - dtype: float
  - data: [2.74647]
2021-02-24 01:17:59,517 - INFO - Epoch: 0, using time 28.5967116355896 second, ips 36027.394097921366 word/sec.
Traceback (most recent call last):
  File "../train.py", line 245, in <module>
    benchmark_main.run()
  File "../train.py", line 65, in run
    self.run_worker()
  File "../train.py", line 125, in run_worker
    self.infer_target_var)
  File "/home/li/miniconda3/envs/myenv_python3.6/lib/python3.6/site-packages/paddle/distributed/fleet/base/fleet_base.py", line 546, in save_inference_model
    self._runtime_handle._save_inference_model(
AttributeError: 'NoneType' object has no attribute '_save_inference_model'
@paddle-bot-old
Copy link

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

@lidanqing-intel lidanqing-intel changed the title During word2vec trainig, save inference model report NoneType error During word2vec trainig, save_inference_model report NoneType error Feb 24, 2021
@luotao1
Copy link
Contributor

luotao1 commented Feb 25, 2021

Please see #30560 (comment)

@paddle-bot-old
Copy link

Are you satisfied with the resolution of your issue?

YES
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants