mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 11:24:53 +00:00
add validation
This commit is contained in:
parent
2896a7c410
commit
33e8565738
@ -148,6 +148,10 @@ fn main() -> ExitCode {
|
||||
Some(num_shard) => num_shard,
|
||||
}
|
||||
};
|
||||
if num_shard < 1 {
|
||||
panic!("`num_shard` cannot be < 1");
|
||||
}
|
||||
|
||||
if num_shard > 1 {
|
||||
tracing::info!("Sharding model on {num_shard} processes");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user