This commit is contained in:
OlivierDehaene 2023-07-18 16:18:56 +02:00
parent de892fb434
commit 160a50af77

View File

@ -369,12 +369,6 @@ fn shard_manager(
// Copy current process env
let mut envs: Vec<(OsString, OsString)> = env::vars_os().collect();
// Use cuda allocator. It leads to less memory fragmentation
// envs.push((
// "PYTORCH_CUDA_ALLOC_CONF".into(),
// "backend:cudaMallocAsync".into(),
// ));
// Torch Distributed Env vars
envs.push(("RANK".into(), rank.to_string().into()));
envs.push(("WORLD_SIZE".into(), world_size.to_string().into()));