Keep runtime files inside application support
This commit is contained in:
@@ -1019,13 +1019,17 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn installed_ds4_fixture_opens_and_renders_a_prompt() {
|
||||
let path = Path::new(
|
||||
"../ds4/gguf/DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix.gguf",
|
||||
);
|
||||
let path = crate::model::engine_artifacts(
|
||||
ModelChoice::DeepSeekV4Flash,
|
||||
false,
|
||||
false,
|
||||
&crate::app::models_path(),
|
||||
)
|
||||
.model;
|
||||
if !path.exists() {
|
||||
return;
|
||||
}
|
||||
let model = Model::open_main(path, ModelChoice::DeepSeekV4Flash).unwrap();
|
||||
let model = Model::open_main(&path, ModelChoice::DeepSeekV4Flash).unwrap();
|
||||
let summary = model.summary();
|
||||
assert_eq!(summary.model, ModelChoice::DeepSeekV4Flash);
|
||||
assert_eq!(summary.vocabulary_size, 129_280);
|
||||
@@ -1223,18 +1227,32 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn installed_dspark_fixture_passes_the_target_layout() {
|
||||
let path = Path::new("../ds4/gguf/DeepSeek-V4-Flash-DSpark-support.gguf");
|
||||
let path = crate::model::engine_artifacts(
|
||||
ModelChoice::DeepSeekV4Flash,
|
||||
false,
|
||||
true,
|
||||
&crate::app::models_path(),
|
||||
)
|
||||
.mtp
|
||||
.unwrap();
|
||||
if path.exists() {
|
||||
validate_model_artifact(path, ModelChoice::DeepSeekV4Flash, true).unwrap();
|
||||
validate_model_artifact(&path, ModelChoice::DeepSeekV4Flash, true).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn installed_legacy_mtp_fixture_passes_the_target_layout() {
|
||||
let path = Path::new("../ds4/gguf/DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf");
|
||||
let path = crate::model::engine_artifacts(
|
||||
ModelChoice::DeepSeekV4Flash,
|
||||
true,
|
||||
false,
|
||||
&crate::app::models_path(),
|
||||
)
|
||||
.mtp
|
||||
.unwrap();
|
||||
if path.exists() {
|
||||
assert_eq!(
|
||||
validate_support(&Gguf::open(path).unwrap(), &FLASH).unwrap(),
|
||||
validate_support(&Gguf::open(&path).unwrap(), &FLASH).unwrap(),
|
||||
SupportKind::LegacyMtp
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user