Closed brownsugar123 closed 2 years ago
#!/bin/bash
HASH=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 4 | head -n 1)
GPU=$1
name=${USER}_pymarl_GPU_${GPU}_${HASH}
echo "Launching container named '${name}' on GPU '${GPU}'"
# Launches a docker container using our image, and runs the provided command
if hash nvidia-docker 2>/dev/null; then
cmd=nvidia-docker
else
cmd=docker
fi
NV_GPU="$GPU" ${cmd} run \
--name $name \
--user $(id -u):$(id -g) \
-v `pwd`:/pymarl \
-t pymarl:1.0 \
${@:2}
This is the content of my run.sh file
When I run the following command, there is an error in the title.
bash run.sh $GPU python3 src/main.py --config=qmix --env-config=sc2 with env_args.map_name=2s3z
How to solve this problem.Please help!!!!!!