mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::path::Path;
|
|
||||||
use tokenizers::Tokenizer;
|
use tokenizers::Tokenizer;
|
||||||
|
|
||||||
pub(crate) async fn get_tokenizer() -> Tokenizer {
|
pub(crate) async fn get_tokenizer() -> Tokenizer {
|
||||||
@ -679,14 +679,6 @@ mod tests {
|
|||||||
Tokenizer::from_file(filename).unwrap()
|
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]
|
#[test]
|
||||||
fn test_hub_nested_tokens_tokenizer_config() {
|
fn test_hub_nested_tokens_tokenizer_config() {
|
||||||
// this is a subset of the tokenizer.json file
|
// this is a subset of the tokenizer.json file
|
||||||
|
Loading…
Reference in New Issue
Block a user