Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Scribe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Ala
Scribe
Commits
7e74d72e
Commit
7e74d72e
authored
9 months ago
by
Julien B.
Browse files
Options
Downloads
Patches
Plain Diff
fix(trainer): add debug
parent
472a4acc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/internal_services/background_worker.py
+1
-0
1 addition, 0 deletions
api/internal_services/background_worker.py
microservices/trainer/trainer.py
+2
-1
2 additions, 1 deletion
microservices/trainer/trainer.py
with
3 additions
and
1 deletion
api/internal_services/background_worker.py
+
1
−
0
View file @
7e74d72e
...
...
@@ -53,6 +53,7 @@ def process_trainer():
finetuned_repo_name
=
job
.
job_data
[
'
finetuned_repo_name
'
],
huggingface_token
=
job
.
job_data
[
'
huggingface_token
'
],
)
logger
.
debug
(
request
)
responses
=
stub
.
StartTraining
(
request
)
for
response
in
responses
:
logger
.
debug
(
f
"
gRPC message :
{
response
.
status
}
"
)
...
...
This diff is collapsed.
Click to expand it.
microservices/trainer/trainer.py
+
2
−
1
View file @
7e74d72e
...
...
@@ -28,11 +28,12 @@ class TrainerServicer(trainer_pb2_grpc.TrainerServicer):
def
StartTraining
(
self
,
request
,
context
):
def
response_messages
():
print
(
"
reception d
'
un event
"
)
print
(
"
event received
"
)
global
is_busy
if
not
is_busy
:
is_busy
=
True
print
(
f
"
incoming request :
{
request
}
"
)
training_process
(
training_data
=
request
.
training_data
,
fondation_model_id
=
request
.
fondation_model_id
,
...
...
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