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

develop版本文档,测试例运行报错 #70622

Open
chengyi192 opened this issue Jan 4, 2025 · 2 comments
Open

develop版本文档,测试例运行报错 #70622

chengyi192 opened this issue Jan 4, 2025 · 2 comments
Assignees
Labels

Comments

@chengyi192
Copy link

chengyi192 commented Jan 4, 2025

paddle版本:paddlepaddle_gpu-3.0.0.dev20250102-cp310-cp310-linux_x86_64.whl
develop文档:https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/paddle_v3_features/auto_parallel_cn.html#dongzhuanjingxunlian

文档4.5动转静训练中示例代码运行报错:

示例只给出了关键代码,因此将代码加入到4.43D混合训练代码中,再运行:
opt = paddle.optimizer.AdamW(learning_rate=0.001, parameters=model.parameters())
opt = dist.shard_optimizer(opt)
#添加动转静代码
dist_model = dist.to_static(
    model, dataloader, paddle.mean, opt
)

dist_model.train()
for step, inputs in enumerate(dataloader()):
    data = inputs
    loss = dist_model(data)
    print(step, loss)
exit()

报错log:
INFO 2025-01-04 01:39:23,426 helper.py:274] start to build program for mode = train.
--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   paddle::pybind::static_api_mean(_object*, _object*, _object*)
1   CallStackRecorder::AttachToOps()
2   CallStackRecorder::GetOpCallstackInfo()

----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
  [TimeInfo: *** Aborted at 1735954764 (unix time) try "date -d @1735954764" if you are using GNU date ***]
  [SignalInfo: *** SIGSEGV (@0x0) received by PID 7624 (TID 0x7f4bf7efa740) from PID 0 ***]
@tianshuo78520a
Copy link
Contributor

@warrentdrew

@warrentdrew
Copy link
Contributor

您好,感谢反馈,问题已复现并反馈到相关同学

@sunzhongkai588 sunzhongkai588 assigned pkuzyc and unassigned zhwesky2010 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants