Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Swarm Split Learning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INDA_ML
Swarm Split Learning
Commits
6abb3d39
Commit
6abb3d39
authored
10 months ago
by
Tim Tobias Bauerle
Browse files
Options
Downloads
Patches
Plain Diff
Reduced server GPU memory for Parallel Swarm Learning
parent
e4ab5445
Branches
Branches containing commit
No related tags found
2 merge requests
!18
Merge in main
,
!14
Experiment configs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
edml/core/server.py
+8
-1
8 additions, 1 deletion
edml/core/server.py
with
8 additions
and
1 deletion
edml/core/server.py
+
8
−
1
View file @
6abb3d39
...
...
@@ -335,7 +335,14 @@ class DeviceServer:
self
.
_lr_scheduler
.
step
(
round_no
+
1
)
# epoch=1
else
:
self
.
_lr_scheduler
.
step
()
# delete references and free GPU memory manually
server_batch
=
None
server_labels
=
None
server_gradients
=
None
client_gradients
=
None
concatenated_client_gradients
=
None
mean_tensor
=
None
torch
.
cuda
.
empty_cache
()
return
(
self
.
node_device
.
client
.
get_weights
(),
self
.
get_weights
(),
...
...
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