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
256386b3
Unverified
Commit
256386b3
authored
2 years ago
by
Xuan Gu
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update benchmark_nnunet_pytorch_berzelius.sh
parent
2e1a879a
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
benchmark_nnunet_pytorch_berzelius.sh
+14
-4
14 additions, 4 deletions
benchmark_nnunet_pytorch_berzelius.sh
with
14 additions
and
4 deletions
benchmark_nnunet_pytorch_berzelius.sh
+
14
−
4
View file @
256386b3
#!/bin/bash
#SBATCH -A nsc
#SBATCH --nodes=1
#SBATCH --gres=gpu:8
#SBATCH --ntasks-per-node=8
#SBATCH --time=0-01:00:00
#SBATCH --reservation=your-reservation
#SBATCH -o benchmark.out
dim
=
2
nodes
=
1
...
...
@@ -9,12 +19,12 @@ for gpus in 1 2 3 4 5 6 7 8; do
echo
dim
$dim
, nodes
$nodes
, gpus
$gpus
, batch_size
$batch_size
, tf32, iteration
$iteration
rm
-f
results/benchmark_dim
${
dim
}
_nodes
${
nodes
}
_gpus
${
gpus
}
_batchsize
${
batch_size
}
_tf32_iteration
${
iteration
}
.json
python scripts/benchmark.py
--mode
train
--gpus
$gpus
--dim
$dim
--batch_size
$batch_size
--nodes
$nodes
--logname
=
"benchmark_dim
${
dim
}
_nodes
${
nodes
}
_gpus
${
gpus
}
_batchsize
${
batch_size
}
_tf32_iteration
${
iteration
}
.json"
singularity
exec
--nv
-B
${
PWD
}
/data:/data
-B
${
PWD
}
/results:/results nvidia_nnu-net_for_pytorch.sif
python scripts/benchmark.py
--mode
train
--gpus
$gpus
--dim
$dim
--batch_size
$batch_size
--nodes
$nodes
--logname
=
"benchmark_dim
${
dim
}
_nodes
${
nodes
}
_gpus
${
gpus
}
_batchsize
${
batch_size
}
_tf32_iteration
${
iteration
}
.json"
echo
dim
$dim
, nodes
$nodes
, gpus
$gpus
, batch_size
$batch_size
, amp, iteration
$iteration
rm
-f
results/benchmark_dim
${
dim
}
_nodes
${
nodes
}
_gpus
${
gpus
}
_batchsize
${
batch_size
}
_amp_iteration
${
iteration
}
.json
python scripts/benchmark.py
--mode
train
--gpus
$gpus
--dim
$dim
--batch_size
$batch_size
--nodes
$nodes
--amp
--logname
=
"benchmark_dim
${
dim
}
_nodes
${
nodes
}
_gpus
${
gpus
}
_batchsize
${
batch_size
}
_amp_iteration
${
iteration
}
.json"
singularity
exec
--nv
-B
${
PWD
}
/data:/data
-B
${
PWD
}
/results:/results nvidia_nnu-net_for_pytorch.sif
python scripts/benchmark.py
--mode
train
--gpus
$gpus
--dim
$dim
--batch_size
$batch_size
--nodes
$nodes
--amp
--logname
=
"benchmark_dim
${
dim
}
_nodes
${
nodes
}
_gpus
${
gpus
}
_batchsize
${
batch_size
}
_amp_iteration
${
iteration
}
.json"
done
done
...
...
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