diff --git a/crates/llm-chain-gemma/src/context.rs b/crates/llm-chain-gemma/src/context.rs index b9105576..03f78890 100644 --- a/crates/llm-chain-gemma/src/context.rs +++ b/crates/llm-chain-gemma/src/context.rs @@ -45,7 +45,11 @@ impl GemmaContext { // Typically the downloaded model data is compressed and set as cache. // TODO: consider the case of non-compressed one? let path = m.to_path(); - gcpp_LoaderArgs_SetCache(largs, path.as_ptr() as *const i8, path.len() as ffi::c_uint); + gcpp_LoaderArgs_SetCache( + largs, + path.as_ptr() as *const i8, + path.len() as ffi::c_uint, + ); // TODO: consider adding the option for tokenizer file. let parent = Path::new(&path).parent(); if parent.is_none() { @@ -54,7 +58,11 @@ impl GemmaContext { ))); } if let Some(tokenizer_path) = parent.unwrap().join("tokenizer.spm").to_str() { - gcpp_LoaderArgs_SetTokenizer(largs, tokenizer_path.as_ptr() as *const i8, tokenizer_path.len() as ffi::c_uint); + gcpp_LoaderArgs_SetTokenizer( + largs, + tokenizer_path.as_ptr() as *const i8, + tokenizer_path.len() as ffi::c_uint, + ); } else { return Err(ExecutorCreationError::InvalidValue(String::from( "conversion from path to str for tokenizer",