You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
示例只给出了关键代码,因此将代码加入到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 ***]
The text was updated successfully, but these errors were encountered:
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动转静训练中示例代码运行报错:
The text was updated successfully, but these errors were encountered: