From ae4e99c8005286756de6d418c1b004c08e7d75a9 Mon Sep 17 00:00:00 2001 From: kigland Date: Sun, 1 Mar 2026 16:41:18 +0800 Subject: [PATCH] fix: correct PYTHONBUFFERED typo to PYTHONUNBUFFERED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The environment variable `PYTHONBUFFERED` is not recognized by Python. The correct variable name is `PYTHONUNBUFFERED`, which disables output buffering for stdout/stderr. Additionally, the canonical value for enabling unbuffered mode is `1`, not `16`. Without this fix, Python output buffering remains at its default, which can cause delayed or missing log output — particularly problematic when debugging long-running RL training jobs. --- openclaw-opd/run_qwen3_4b_openclaw_opd.sh | 2 +- openclaw-rl/run_qwen3_4b_openclaw_rl.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openclaw-opd/run_qwen3_4b_openclaw_opd.sh b/openclaw-opd/run_qwen3_4b_openclaw_opd.sh index 6519f218e..43c722f78 100644 --- a/openclaw-opd/run_qwen3_4b_openclaw_opd.sh +++ b/openclaw-opd/run_qwen3_4b_openclaw_opd.sh @@ -11,7 +11,7 @@ pkill -9 python set -ex -export PYTHONBUFFERED=16 +export PYTHONUNBUFFERED=1 NUM_GPUS=${NUM_GPUS:-8} ACTOR_GPUS=${ACTOR_GPUS:-4} diff --git a/openclaw-rl/run_qwen3_4b_openclaw_rl.sh b/openclaw-rl/run_qwen3_4b_openclaw_rl.sh index 4cd973ff3..3e7c12e09 100755 --- a/openclaw-rl/run_qwen3_4b_openclaw_rl.sh +++ b/openclaw-rl/run_qwen3_4b_openclaw_rl.sh @@ -11,7 +11,7 @@ pkill -9 python set -ex -export PYTHONBUFFERED=16 +export PYTHONUNBUFFERED=1 NUM_GPUS=${NUM_GPUS:-8} ACTOR_GPUS=${ACTOR_GPUS:-4}