-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use PeerID exclusively to address MoE experts (#479)
Changed declare_experts / RemoteExpert to use only p2p peer ID, not the whole multiaddress. This slightly reduces the code complexity and gives you an easier time sharing experts with dynamic IP. It also fixes one DHT edge case i've discovered when working on it. Minor changes: - fixed an edge case: previously, DHT would **freeze** if accessing DHT.peer_id or otherwise calling .run_coroutine from inside another run_coroutine - merged RemoteExpertInfo and UidEndpoint into one structure (ExpertInfo), now in expert_uid.py - extracted expert_uid.py from hivemind.moe.server to hivemind.moe in order to avoid circular imports - renamed get_expert_stub into get_server_stub since it is not expert-specific Co-authored-by: Aleksandr Borzunov <[email protected]> Co-authored-by: Pavel Samygin <[email protected]> Co-authored-by: Max Ryabinin <[email protected]>
- Loading branch information
1 parent
c49802a
commit 25366a1
Showing
14 changed files
with
130 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.