Skip to content

Commit

Permalink
feat: allow set num_replicas_per_device for CUDA to increase throughput
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Oct 3, 2023
1 parent 375675c commit 1afba47
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/tabby/src/serve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,6 @@ fn fallback() -> routing::MethodRouter {
}

fn valid_args(args: &ServeArgs) {
if args.device == Device::Cuda && args.num_replicas_per_device != 1 {
fatal!("CUDA device only supports 1 replicas per device");
}

if args.device == Device::Cpu && (args.device_indices.len() != 1 || args.device_indices[0] != 0)
{
fatal!("CPU device only supports device indices = [0]");
Expand Down

0 comments on commit 1afba47

Please sign in to comment.