Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem about running eval.sh #3

Closed
euminds opened this issue Mar 16, 2022 · 2 comments
Closed

Problem about running eval.sh #3

euminds opened this issue Mar 16, 2022 · 2 comments

Comments

@euminds
Copy link

euminds commented Mar 16, 2022

"""
#!/usr/bin/env bash
set -x

export NCCL_LL_THRESHOLD=0

CONFIG=$1
GPUS=$1
CPUS=$[GPUS*2]
PORT=${PORT:-8886}

CONFIG_NAME=${CONFIG##/}
CONFIG_NAME=${CONFIG_NAME%.
}

OUTPUT_DIR="./checkpoints/eval"
if [ ! -d $OUTPUT_DIR ]; then
mkdir ${OUTPUT_DIR}
fi

python -u main.py
--port=$PORT
--num_workers 4
--resume "./checkpoints/${CONFIG_NAME}/checkpoint.pth"
--output-dir ${OUTPUT_DIR}
--config $CONFIG ${@:3}
--eval
2>&1 | tee -a ${OUTPUT_DIR}/train.log
"""
I have two A100, so set GPUS is 2. All other settings according to ReadME.md
but I got a problem when running eval.sh
"""
File "eval.sh", line 4
export NCCL_LL_THRESHOLD=0
^
SyntaxError: invalid syntax

"""

@ChangyaoTian
Copy link
Owner

Did you follow the standard execution cmd 'bash xxx' in README.md?

@euminds
Copy link
Author

euminds commented Mar 16, 2022

I know what happend. Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants