#!/bin/bash # Extract full error from rank0 in training log grep '\[rank0\]' /home/hku/rl4phyx/sft_training.log | grep -v 'WARNING\|UserWarning\|FutureWarning\|Loading\|OMP_NUM' > /home/hku/rl4phyx/error_extract.txt echo "=== Error extract ===" cat /home/hku/rl4phyx/error_extract.txt echo "=== END ==="