Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Berzelius Benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xuan Gu
Berzelius Benchmarks
Commits
4452535a
Commit
4452535a
authored
1 year ago
by
Xuan Gu
Browse files
Options
Downloads
Patches
Plain Diff
Update file run_benchmark_single_node.sh
parent
35e3509f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PyTorch/Segmentation/nnUNet/run_benchmark_single_node.sh
+6
-6
6 additions, 6 deletions
PyTorch/Segmentation/nnUNet/run_benchmark_single_node.sh
with
6 additions
and
6 deletions
PyTorch/Segmentation/nnUNet/run_benchmark_single_node.sh
+
6
−
6
View file @
4452535a
...
...
@@ -3,8 +3,10 @@
MODULE_NAME
=
nnunet_for_pytorch
MODULE_VERSION
=
21.11.0
WORK_DIR
=
/proj/nsc_testing/xuan/berzelius-benchmarks/PyTorch/Segmentation/nnUNet
SBATCH_DIR
=
$WORK_DIR
/benchmark_dim
${
1
}
_nodes
${
2
}
_gpus
${
3
}
_batchsize
${
4
}
_iteration
${
5
}
.sbatch
LOG_DIR
=
benchmark_dim
${
1
}
_nodes
${
2
}
_gpus
${
3
}
_batchsize
${
4
}
_amp_iteration
${
5
}
.json
cat
<<
EOT
>
$
WORK_DIR
/benchmark_dim
${
1
}
_nodes
${
2
}
_gpus
${
3
}
_batchsize
${
4
}
_iteration
${
5
}
.sbatch
cat
<<
EOT
>
$
SBATCH_DIR
#!/bin/bash
...
...
@@ -23,13 +25,11 @@ CONTAINER_DIR=/proj/nsc_testing/xuan/containers/${MODULE_NAME}_${MODULE_VERSION}
mkdir -p
$WORK_DIR
/sbatch_out
cd
$WORK_DIR
rm -f results/benchmark_dim
${
1
}
_nodes
${
2
}
_gpus
${
3
}
_batchsize
${
4
}
_tf32_iteration
${
5
}
.json
srun apptainer exec --nv -B
${
PWD
}
/data:/data -B
${
PWD
}
/results:/results
$CONTAINER_DIR
bash -c "cd /workspace/nnunet_pyt && python scripts/benchmark.py --mode train --gpus
${
3
}
--dim
${
1
}
--batch_size
${
4
}
--nodes
${
2
}
--logname='benchmark_dim
${
1
}
_nodes
${
2
}
_gpus
${
3
}
_batchsize
${
4
}
_tf32_iteration
${
5
}
.json'"
rm -f results/
benchmark_dim
${
1
}
_nodes
${
2
}
_gpus
${
3
}
_batchsize
${
4
}
_amp_iteration
${
5
}
.json
srun apptainer exec --nv -B
${
PWD
}
/data:/data -B
${
PWD
}
/results:/results
$CONTAINER_DIR
bash -c "cd /workspace/nnunet_pyt && python scripts/benchmark.py --mode train --gpus
${
3
}
--dim
${
1
}
--batch_size
${
4
}
--nodes
${
2
}
--amp --logname='
benchmark_dim
${
1
}
_nodes
${
2
}
_gpus
${
3
}
_batchsize
${
4
}
_amp_iteration
${
5
}
.json
'"
rm -f results/
$LOG_DIR
srun apptainer exec --nv -B
${
PWD
}
/data:/data -B
${
PWD
}
/results:/results
$CONTAINER_DIR
bash -c "cd /workspace/nnunet_pyt && python scripts/benchmark.py --mode train --gpus
${
3
}
--dim
${
1
}
--batch_size
${
4
}
--nodes
${
2
}
--amp --logname='
$LOG_DIR
'"
EOT
sbatch scripts/benchmark_dim
${
1
}
_nodes
${
2
}
_gpus
${
3
}
_batchsize
${
4
}
_iteration
${
5
}
.sbatch
\ No newline at end of file
sbatch
$SBATCH_DIR
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment