Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Feb 20, 2025
1 parent c52e005 commit 3a01040
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mistralrs-core/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ impl Engine {
let req = format!("{}\n", serde_json::to_string(&request).unwrap());
writer.write_all(req.as_bytes()).unwrap();
}
info!("Send to all workers!");
info!("Replicated request to all workers!");
};

let is_chat = matches!(
Expand Down
4 changes: 2 additions & 2 deletions mistralrs-core/src/pipeline/normal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ impl Loader for NormalLoader {
cmd.env(FLAG, serde_json::to_string(&data)?);
cmd.env("MISTRALRS_MN_WORKER_ID", worker_rank.to_string());

cmd.stdout(std::process::Stdio::null());
// cmd.stdout(std::process::Stdio::null());
cmd.stderr(std::process::Stdio::null());
cmd.stdin(std::process::Stdio::null());
// cmd.stdin(std::process::Stdio::null());

children.push(cmd.spawn().expect("Failed to spawn process"));
}
Expand Down
2 changes: 2 additions & 0 deletions mistralrs-quant/src/distributed/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ impl QuantMethod for RowParallelLayer {

fn forward(&self, a: &Tensor) -> Result<Tensor> {
let mut xs = self.weight.forward(a)?;
eprintln!("comm start");
xs = self.all_reduce.apply(&xs)?;
eprintln!("comm end");
if let Some(bias) = &self.bias {
xs = xs.broadcast_add(bias)?;
}
Expand Down

0 comments on commit 3a01040

Please sign in to comment.