Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TSR_ConceptExtraction
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antonia Holzapfel San Martin
TSR_ConceptExtraction
Commits
acc3c2a3
Commit
acc3c2a3
authored
1 year ago
by
andres
Browse files
Options
Downloads
Patches
Plain Diff
bugs
parent
88798517
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+3
-3
3 additions, 3 deletions
README.md
data/config/experiment/sweep_models_lr.yaml
+1
-1
1 addition, 1 deletion
data/config/experiment/sweep_models_lr.yaml
with
4 additions
and
4 deletions
README.md
+
3
−
3
View file @
acc3c2a3
...
@@ -80,7 +80,7 @@ python runs/01_train_model.py training.epochs=2 training.seed=7
...
@@ -80,7 +80,7 @@ python runs/01_train_model.py training.epochs=2 training.seed=7
```
bash
```
bash
# Execute multiple runs with different model sizes using Hydra's multirun feature
# Execute multiple runs with different model sizes using Hydra's multirun feature
# This command will run the script for each combination of the specified values
# This command will run the script for each combination of the specified values
python runs/01_train_model.py
--multirun
training.epochs
=
2 model.num_layers
=
1,2,3
python runs/01_train_model.py
--multirun
training.epochs
=
2 model.
object.
num_layers
=
1,2,3
# Execute multiple runs as defined in a configuration file
# Execute multiple runs as defined in a configuration file
python runs/01_train_model.py +experiment
=
sweep_models_lr
python runs/01_train_model.py +experiment
=
sweep_models_lr
...
@@ -91,10 +91,10 @@ python runs/01_train_model.py +experiment=sweep_models_lr
...
@@ -91,10 +91,10 @@ python runs/01_train_model.py +experiment=sweep_models_lr
```
bash
```
bash
# Execute multiple runs with Hydra's joblib launcher
# Execute multiple runs with Hydra's joblib launcher
# This will run the script for each combination of the specified values using joblib for parallel execution
# This will run the script for each combination of the specified values using joblib for parallel execution
python runs/01_train_model.py
--multirun
training.epochs
=
2 model.num_layers
=
1,2,3 +launcher
=
joblib
python runs/01_train_model.py
--multirun
training.epochs
=
2 model.
object.
num_layers
=
1,2,3 +launcher
=
joblib
# Or use Hydra's slurm launcher for running on a Slurm-based cluster
# Or use Hydra's slurm launcher for running on a Slurm-based cluster
python runs/01_train_model.py
--multirun
training.epochs
=
2 model.num_layers
=
1,2,3 +launcher
=
slurm
python runs/01_train_model.py
--multirun
training.epochs
=
2 model.
object.
num_layers
=
1,2,3 +launcher
=
slurm
# Or use Slurm with GPU support, running the script with multiple seed values
# Or use Slurm with GPU support, running the script with multiple seed values
python runs/01_train_model.py
--multirun
training.epochs
=
2 training.seed
=
0,1,2,3,4 +launcher
=
slurmgpu
python runs/01_train_model.py
--multirun
training.epochs
=
2 training.seed
=
0,1,2,3,4 +launcher
=
slurmgpu
...
...
This diff is collapsed.
Click to expand it.
data/config/experiment/sweep_models_lr.yaml
+
1
−
1
View file @
acc3c2a3
# @package _global_
# @package _global_
defaults
:
defaults
:
-
override /training
:
defaul
t
-
override /training
:
shor
t
hydra
:
hydra
:
mode
:
MULTIRUN
mode
:
MULTIRUN
...
...
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