Skip to content

Use multiprocessing instead of torch for MPFuture#668

Open
mryab wants to merge 2 commits into
masterfrom
mpfuture-sharedmemory
Open

Use multiprocessing instead of torch for MPFuture#668
mryab wants to merge 2 commits into
masterfrom
mpfuture-sharedmemory

Conversation

@mryab
Copy link
Copy Markdown
Member

@mryab mryab commented Jan 3, 2026

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 3, 2026

Codecov Report

❌ Patch coverage is 83.07692% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.31%. Comparing base (d20e810) to head (70fc5c3).
⚠️ Report is 27 commits behind head on master.

Files with missing lines Patch % Lines
hivemind/utils/mpfuture.py 80.00% 8 Missing ⚠️
hivemind/averaging/control.py 88.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #668      +/-   ##
==========================================
- Coverage   85.39%   85.31%   -0.09%     
==========================================
  Files          81       96      +15     
  Lines        8006     8609     +603     
==========================================
+ Hits         6837     7345     +508     
- Misses       1169     1264      +95     
Files with missing lines Coverage Δ
hivemind/averaging/control.py 93.85% <88.00%> (-0.32%) ⬇️
hivemind/utils/mpfuture.py 92.37% <80.00%> (-0.97%) ⬇️

... and 34 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

mryab added 2 commits January 5, 2026 00:58
- Revert hivemind/averaging/control.py to torch-based implementation
  (averaging module already depends on torch, no benefit from SharedMemory)
- Move torch.multiprocessing.set_sharing_strategy() call from mpfuture.py
  to hivemind/__init__.py (global setting for all torch shared memory)
@mryab mryab force-pushed the mpfuture-sharedmemory branch from 61b2019 to cdded76 Compare January 4, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant