Skip to content

Commit

Permalink
Fixed Clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-be committed Nov 10, 2021
1 parent a97b657 commit 3578231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pipelines/generation_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@ pub trait LanguageGenerator<T: LMHeadModel, V: Vocab, U: Tokenizer<V>>:
length_penalty,
num_beam_groups,
diversity_penalty,
forced_bos_token_id: forced_bos_token_id.into(),
forced_bos_token_id,
bad_word_ids,
};

Expand Down
2 changes: 1 addition & 1 deletion src/pipelines/summarization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl SummarizationOption {
}

/// Interface method to generate() of the particular models.
pub fn generate<'a, S>(&self, prompt_texts: Option<&[S]>) -> Vec<String>
pub fn generate<S>(&self, prompt_texts: Option<&[S]>) -> Vec<String>
where
S: AsRef<str> + Sync,
{
Expand Down

0 comments on commit 3578231

Please sign in to comment.