mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
fix: remove dev test that relies on local file
This commit is contained in:
parent
3db6f0bb39
commit
a86e726079
@ -669,7 +669,7 @@ pub(crate) struct ErrorResponse {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use std::path::Path;
|
||||
|
||||
use tokenizers::Tokenizer;
|
||||
|
||||
pub(crate) async fn get_tokenizer() -> Tokenizer {
|
||||
@ -679,14 +679,6 @@ mod tests {
|
||||
Tokenizer::from_file(filename).unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hub_tokenizer_config() {
|
||||
let config = HubTokenizerConfig::from_file(Path::new("tokenizer.json"));
|
||||
assert_eq!(config.chat_template, Some("test".to_string()));
|
||||
assert_eq!(config.bos_token, Some("test".to_string()));
|
||||
assert_eq!(config.eos_token, Some("test".to_string()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hub_nested_tokens_tokenizer_config() {
|
||||
// this is a subset of the tokenizer.json file
|
||||
|
Loading…
Reference in New Issue
Block a user