Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ClearML demo
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
MDT Research IT Solutions
ClearML demo
Commits
74e92302
Commit
74e92302
authored
1 year ago
by
Brummans, Nick
Browse files
Options
Downloads
Patches
Plain Diff
update for agent to work with demo
parent
e923e73f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
controller.py
+3
-3
3 additions, 3 deletions
controller.py
stage_one.py
+1
-1
1 addition, 1 deletion
stage_one.py
stage_two.py
+1
-1
1 addition, 1 deletion
stage_two.py
with
5 additions
and
5 deletions
controller.py
+
3
−
3
View file @
74e92302
...
...
@@ -17,7 +17,7 @@ pipe.add_parameter(
'
data/mnist_png/testing
'
)
pipe
.
set_default_execution_queue
(
"
d
efault
"
)
pipe
.
set_default_execution_queue
(
"
d
ocker_image
"
)
# pipe.set_default_execution_queue('test')
# Adding the first stage to the pipeline, a clone of the base tasks will be created and used
...
...
@@ -39,8 +39,8 @@ pipe.add_step(name='stage_train',
)
# Starting the pipeline
pipe
.
start_locally
(
run_pipeline_steps_locally
=
True
)
#
pipe.start_locally(run_pipeline_steps_locally=True)
# comment line above and uncomment line below to run scrips on queue test on which agents are listening
#
pipe.start(queue='
test
')
pipe
.
start
(
queue
=
'
docker_image
'
)
print
(
'
done
'
)
This diff is collapsed.
Click to expand it.
stage_one.py
+
1
−
1
View file @
74e92302
from
clearml
import
Task
,
Dataset
Task
.
add_requirements
(
"
-r ./requirements.txt
"
)
#
Task.add_requirements("-r ./requirements.txt")
task
=
Task
.
init
(
project_name
=
"
pipeline
"
,
task_name
=
"
pipeline step 1 dataset artifact
"
,
output_uri
=
True
)
...
...
This diff is collapsed.
Click to expand it.
stage_two.py
+
1
−
1
View file @
74e92302
...
...
@@ -75,7 +75,7 @@ def validate(model, testloader, criterion):
epoch_acc
=
100.
*
(
valid_running_correct
/
len
(
testloader
.
dataset
))
return
epoch_loss
,
epoch_acc
Task
.
add_requirements
(
"
-r ./requirements.txt
"
)
#
Task.add_requirements("-r ./requirements.txt")
task
=
Task
.
init
(
project_name
=
"
pipeline
"
,
task_name
=
"
pipeline step 2 train model
"
,
output_uri
=
True
)
...
...
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