mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix clippy errors
This commit is contained in:
parent
5ef0be4a5e
commit
c6133ebda7
@ -84,6 +84,7 @@ pub struct Args {
|
||||
}
|
||||
|
||||
impl Args {
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
model_config: Option<Config>,
|
||||
tokenizer_config: Option<String>,
|
||||
@ -189,6 +190,12 @@ impl fmt::Display for SystemInfo {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Env {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Env {
|
||||
pub fn new() -> Self {
|
||||
let nvidia_env = nvidia_smi();
|
||||
|
Loading…
Reference in New Issue
Block a user