Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pytorchjob
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engin Eren
Pytorchjob
Commits
e05ea40a
Commit
e05ea40a
authored
2 years ago
by
Engin Eren
Browse files
Options
Downloads
Patches
Plain Diff
training with single energies
parent
cb390740
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Test
Pipeline
#3879419
passed
2 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pytorch_job_regressor_nccl_singlePod.yaml
+0
-50
0 additions, 50 deletions
pytorch_job_regressor_nccl_singlePod.yaml
pytorch_job_wgan_nccl.yaml
+3
-3
3 additions, 3 deletions
pytorch_job_wgan_nccl.yaml
wgan.py
+1
-1
1 addition, 1 deletion
wgan.py
with
4 additions
and
54 deletions
pytorch_job_regressor_nccl_singlePod.yaml
deleted
100644 → 0
+
0
−
50
View file @
cb390740
apiVersion
:
"
kubeflow.org/v1"
kind
:
"
PyTorchJob"
metadata
:
name
:
"
pytorch-dist-regressor-nccl"
spec
:
pytorchReplicaSpecs
:
Master
:
replicas
:
1
restartPolicy
:
OnFailure
template
:
metadata
:
annotations
:
sidecar.istio.io/inject
:
"
false"
spec
:
volumes
:
-
name
:
eos
hostPath
:
path
:
/var/eos
-
name
:
krb-secret-vol
secret
:
secretName
:
krb-secret
-
name
:
nvidia-driver
hostPath
:
path
:
/opt/nvidia-driver
type
:
"
"
containers
:
-
name
:
pytorch
image
:
registry.hub.docker.com/engineren/pytorchjob:regCuda10debug
imagePullPolicy
:
Always
env
:
-
name
:
PATH
value
:
/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/nvidia-driver/bin
-
name
:
LD_LIBRARY_PATH
value
:
/opt/nvidia-driver/lib64
-
name
:
PYTHONUNBUFFERED
value
:
"
1"
command
:
[
sh
,
-c
]
args
:
-
cp /secret/krb-secret-vol/krb5cc_1000 /tmp/krb5cc_0 && chmod 600 /tmp/krb5cc_0 && python -u regressor.py --backend nccl;
volumeMounts
:
-
name
:
eos
mountPath
:
/eos
-
name
:
krb-secret-vol
mountPath
:
"
/secret/krb-secret-vol"
-
name
:
nvidia-driver
mountPath
:
/opt/nvidia-driver
resources
:
limits
:
nvidia.com/gpu
:
1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pytorch_job_
regressor
_nccl.yaml
→
pytorch_job_
wgan
_nccl.yaml
+
3
−
3
View file @
e05ea40a
...
...
@@ -37,7 +37,7 @@ spec:
command
:
[
sh
,
-c
]
args
:
-
cp /secret/krb-secret-vol/krb5cc_1000 /tmp/krb5cc_0 && chmod 600 /tmp/krb5cc_0
&& python -u
regressor
.py --backend nccl --epochs 1;
&& python -u
wgan
.py --backend nccl --epochs 1
0 --exp wganv0
;
volumeMounts
:
-
name
:
eos
mountPath
:
/eos
...
...
@@ -49,7 +49,7 @@ spec:
limits
:
nvidia.com/gpu
:
1
Worker
:
replicas
:
1
replicas
:
2
restartPolicy
:
OnFailure
template
:
metadata
:
...
...
@@ -81,7 +81,7 @@ spec:
command
:
[
sh
,
-c
]
args
:
-
cp /secret/krb-secret-vol/krb5cc_1000 /tmp/krb5cc_0 && chmod 600 /tmp/krb5cc_0
&& python -u
regressor
.py --backend nccl --epochs 1;
&& python -u
wgan
.py --backend nccl --epochs 1
0 --exp wganv0
;
volumeMounts
:
-
name
:
eos
mountPath
:
/eos
...
...
This diff is collapsed.
Click to expand it.
wgan.py
+
1
−
1
View file @
e05ea40a
...
...
@@ -261,7 +261,7 @@ def run(args):
print
(
"
loading data
"
)
dataset
=
HDF5Dataset
(
'
/eos/user/e/eneren/
run_prod75k/hdf5/training_75
k.hdf5
'
,
transform
=
None
,
train_size
=
75
000
)
dataset
=
HDF5Dataset
(
'
/eos/user/e/eneren/
scratch/40GeV40
k.hdf5
'
,
transform
=
None
,
train_size
=
40
000
)
sampler
=
DistributedSampler
(
dataset
,
shuffle
=
True
)
train_loader
=
DataLoader
(
dataset
,
batch_size
=
args
.
batch_size
,
sampler
=
sampler
,
num_workers
=
1
,
pin_memory
=
False
)
...
...
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