Gitlab Community Edition Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
deep-learning-with-gpu-cores
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AG-Compute-public
deep-learning-with-gpu-cores
Commits
2d6abbef
Commit
2d6abbef
authored
6 months ago
by
GOESTERN-0860650
Browse files
Options
Downloads
Patches
Plain Diff
added trainig script for testing run in kisski
parent
ff2e3b2a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/submit_train_dlc_kisski.sh
+37
-0
37 additions, 0 deletions
code/submit_train_dlc_kisski.sh
with
37 additions
and
0 deletions
code/submit_train_dlc_kisski.sh
0 → 100644
+
37
−
0
View file @
2d6abbef
#!/bin/bash
#SBATCH --job-name=train-nn-gpu-dlc
#SBATCH -t 00:20:00 # estimated time # TODO: adapt to your needs
#SBATCH -p kisski # the partition you are training on (i.e., which nodes), for nodes see sinfo -o "%25N %5c %10m %32f %10G %18P " | grep gpu
#SBATCH -G A100:1 # take 1 GPU, see https://www.hlrn.de/doc/display/PUB/GPU+Usage for more options
#SBATCH --mem-per-gpu=5G # setting the right constraints for the splitted gpu partitions
#SBATCH --nodes=1 # total number of nodes
#SBATCH --ntasks=1 # total number of tasks
#SBATCH --cpus-per-task=4 # number cores per task
#SBATCH --output=./slurm_files/slurm-%x-%j.out # where to write output, %x give job name, %j names job id
#SBATCH --error=./slurm_files/slurm-%x-%j.err # where to write slurm error
module load apptainer
# Printing out some info.
echo
"Submitting job with sbatch from directory:
${
SLURM_SUBMIT_DIR
}
"
echo
"Home directory:
${
HOME
}
"
echo
"Working directory:
$PWD
"
echo
"Current node:
${
SLURM_NODELIST
}
"
pwd
ls
# For debugging purposes.
echo
""
echo
"test environment"
echo
"-----------------------------------------------------------------------"
apptainer
exec
--nv
--bind
$PWD
/scratch/projects/workshops/gpu-workshop/dlc-dlwgpu.sif python
${
PWD
}
/test_env.py
echo
"-----------------------------------------------------------------------"
# Run the script:
echo
""
echo
"model training"
echo
"-----------------------------------------------------------------------"
apptainer
exec
--nv
--bind
/scratch,
$PWD
/scratch/projects/workshops/gpu-workshop/dlc-dlwgpu.sif python
-u
${
PWD
}
/train_with_logger.py
-l
~/
${
SLURM_JOB_NAME
}
_
${
SLURM_JOB_ID
}
-t
True
-p
True
-d
True
-s
False
-f
True
#TODO adapt path
echo
"-----------------------------------------------------------------------"
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