use std::path::PathBuf;
#[allow(dead_code)]
pub fn get_test_model_path() -> PathBuf {
std::env::var("BIT_TEST_MODEL_PATH")
.map(PathBuf::from)
.unwrap_or_else(|_| {
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../benchmark/tiny-converted")
})
}
#[allow(dead_code)]
pub fn get_test_model_safetensors() -> PathBuf {
get_test_model_path().join("model.safetensors")
}
#[allow(dead_code)]
pub fn get_tinyllama_model_path() -> PathBuf {
std::env::var("BIT_TEST_TINYLLAMA_PATH")
.map(PathBuf::from)
.unwrap_or_else(|_| {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("../../benchmark/tinyllama-1.1b-converted")
})
}
#[allow(dead_code)]
pub fn get_tinyllama_model_safetensors() -> PathBuf {
get_tinyllama_model_path().join("model.safetensors")
}
#[allow(dead_code)]
pub fn get_gguf_model_path() -> PathBuf {
std::env::var("BIT_TEST_GGUF_PATH")
.map(PathBuf::from)
.unwrap_or_else(|_| {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("../../models/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf")
})
}