The error occurs because Slurm requires either --gpus or --ntasks (or -n) to be specified when using --gpus-per-task or --tres-per-task. The --wrap option does not implicitly set --ntasks, so you need to explicitly define the number of tasks.
Solution
Add --ntasks=1 (or -n 1) to your command to specify that each array job should run as a single task. This resolves the validation error.
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.