I got this error while running the evaluation for the LLaDA-V model:
Total 17 evaluation tasks to execute
scripts/evaluate.sh: line 144: syntax error near unexpected token `done'
scripts/evaluate.sh: line 144: `done'
It worked fine after I deleted the extra if statement.
Here’s the fix I applied:
# Brief wait to avoid CPU spinning too frequently
if [ $FINISHED_TASKS -lt$TOTAL_TASKS ]; then # Only sleep when there are unfinished tasks
sleep 10 # Can adjust wait time based on actual situation
fi
done