Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Jul 19, 2024
1 parent c2a320c commit 2048c02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion tokenizers/src/normalizers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use serde::{Deserialize, Serialize};

use crate::{NormalizedString, Normalizer};
use pyo3_special_method_derive::AutoDisplay;
use serde::{Deserialize, Serialize};

/// Wrapper for known Normalizers.
#[derive(Clone, Debug, Deserialize, Serialize, AutoDisplay)]

Check warning on line 23 in tokenizers/src/normalizers/mod.rs

View workflow job for this annotation

GitHub Actions / Check everything builds

unused borrow that must be used
Expand Down
9 changes: 1 addition & 8 deletions tokenizers/src/tokenizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1347,13 +1347,6 @@ where
#[cfg(test)]
mod tests {
use super::Tokenizer;

#[cfg(feature = "http")]
#[test]
fn test_from_pretrained() {
let tok = Tokenizer::from_pretrained("Qwen/Qwen2-7B-Instruct".to_string(), None);
println!("ROCK!")

use crate::AddedToken;
use crate::Tokenizer;

Expand Down Expand Up @@ -1407,4 +1400,4 @@ mod tests {
let decoded = tokenizer.decode(encoded.get_ids(), false);
assert_eq!(decoded.unwrap(), "Hey! how is this token: д")
}
}
}

0 comments on commit 2048c02

Please sign in to comment.