mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
Easier to parse.
This commit is contained in:
parent
497d1518be
commit
e19d6f3589
@ -987,7 +987,7 @@ fn compute_type(num_shard: usize) -> Option<String>{
|
|||||||
let output = String::from_utf8(output.stdout).ok()?;
|
let output = String::from_utf8(output.stdout).ok()?;
|
||||||
let fullname = output.split("\n").nth(1)?;
|
let fullname = output.split("\n").nth(1)?;
|
||||||
let cardname = fullname.replace(" ", "-").to_lowercase();
|
let cardname = fullname.replace(" ", "-").to_lowercase();
|
||||||
let compute_type = format!("{num_shard}x{cardname}");
|
let compute_type = format!("{num_shard}-{cardname}");
|
||||||
Some(compute_type)
|
Some(compute_type)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user