Skip to content

Commit

Permalink
lighthouse, manager: remove room support (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4l3k authored Jan 13, 2025
1 parent e0f76e1 commit 97ad397
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 186 deletions.
16 changes: 4 additions & 12 deletions proto/torchft.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ message Quorum {
}

message LighthouseQuorumRequest {
// room_id is the specific quorum channel to use. All workers/replicas
// participating in the quorum must specify the same channel.
// Multiple channels can be active simultaneously.
string room_id = 1;
QuorumMember requester = 2;
QuorumMember requester = 1;
}

message LighthouseQuorumResponse {
Expand All @@ -73,13 +69,9 @@ service LighthouseService {
}

message ManagerQuorumRequest {
// room_id is the specific quorum channel to use. All workers/replicas
// participating in the quorum must specify the same channel.
// Multiple channels can be active simultaneously.
string room_id = 1;
int64 rank = 2;
int64 step = 3;
string checkpoint_server_addr = 4;
int64 rank = 1;
int64 step = 2;
string checkpoint_server_addr = 3;
}

message ManagerQuorumResponse {
Expand Down
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,17 @@ impl ManagerClient {
})
}

#[pyo3(signature = (room_id, rank, step, checkpoint_server_addr, timeout=None))]
#[pyo3(signature = (rank, step, checkpoint_server_addr, timeout=None))]
fn quorum(
&mut self,
py: Python<'_>,
room_id: String,
rank: i64,
step: i64,
checkpoint_server_addr: String,
timeout: Option<Duration>,
) -> Result<(i64, i64, i64, String, String, i64, Option<i64>, i64, bool), StatusError> {
py.allow_threads(move || {
let mut request = tonic::Request::new(ManagerQuorumRequest {
room_id: room_id,
rank: rank,
step: step,
checkpoint_server_addr: checkpoint_server_addr,
Expand Down
Loading

0 comments on commit 97ad397

Please sign in to comment.