实用指南:3分钟轻松实现微信QQ防撤回,全面保护你的聊天记录
2026/6/14 17:24:00
Exception ignored in atexit callback: <function _start_and_connect_service.<locals>.teardown_atexit> BrokenPipeError: [Errno 32] Broken pipe Exception ignored in: <function ResourceTracker.__del__ at 0x...> AttributeError: '_thread.RLock' object has no attribute '_recursion_count'这些是非关键错误(Non-critical errors),发生在程序正常退出时的清理过程中。
BrokenPipeError: [Errno 32] Broken pipe原因:
影响:
AttributeError: '_thread.RLock' object has no attribute '_recursion_count'原因:
__del__析构函数中影响:
# 查看最新的 checkpointls-lh /root/autodl-tmp/verl/checkpoints/verl_example_gsm8k/deepseek_llm_7b_function_rm/# 查看 checkpoint 内容cat/root/autodl-tmp/verl/checkpoints/verl_example_gsm8k/deepseek_llm_7b_function_rm/latest_checkpointed_iteration.txt从日志可以看到:
Synced 5 W&B file(s)https://wandb.ai/xxx/verl_example_gsm8k/runs/ny8yfg5m从日志可以看到训练指标已经记录:
actor/pg_loss: 0.00065actor/ppo_kl: 0.00011critic/advantages/mean: 0.0这些错误不影响训练结果,可以安全忽略。训练已经成功完成。
如果不想看到这些错误信息,可以在脚本中添加:
# 在脚本开头添加exportWANDB_SILENT=true# 或exportPYTHONWARNINGS="ignore::UserWarning"如果问题持续,可以尝试更新相关包:
pipinstall--upgrade wandb multiprocess# 抑制 atexit 错误exportPYTHONUNBUFFERED=1# 或者在 Python 代码中importwarnings warnings.filterwarnings('ignore')