Skip to content

Commit

Permalink
Merge pull request #84 from tplr-ai/fix/exclude-self-from-gather
Browse files Browse the repository at this point in the history
fix: exclude miners own uid from gather
  • Loading branch information
joellidin authored Feb 15, 2025
2 parents 2976921 + b2e7e6e commit 52df65b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Run Tests with Coverage
run: |
uv run pytest tests/ -v --cov=src --cov-report=xml --cov-report=term
uv run --prerelease=allow pytest tests/ -v --cov=src --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion neurons/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ async def run(self):
gather_task = asyncio.create_task(
self.comms.gather(
my_uid=self.uid,
uids=self.peers,
uids=[uid for uid in self.peers if uid != self.uid],
window=step_window,
key="gradient",
timeout=72,
Expand Down

0 comments on commit 52df65b

Please sign in to comment.