Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Mar 27, 2024
1 parent 8e0fdf1 commit a159880
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions atoma-inference/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ pub enum ModelConfig {
Llama(LlamaConfig),
Llama2(Llama2Config),
Mamba(MambaConfig),
Mixtral8x7b(MixtralConfig),
Mistral(MistralConfig),
StableDiffusion(StableDiffusionConfig),
Mixtral8x7b(Box<MixtralConfig>),
StableDiffusion(Box<StableDiffusionConfig>),
}

impl From<ModelType> for ModelConfig {
Expand All @@ -74,6 +74,8 @@ pub enum ModelCache {

pub trait ModelApi {
fn load(model_specs: ModelSpecs, var_builder: VarBuilder) -> Self;

#[allow(clippy::too_many_arguments)]
fn run(
&self,
input: String,
Expand Down

0 comments on commit a159880

Please sign in to comment.