Add GLM 5.3 Flash support
This commit is contained in:
1 parent
9a33c61ea6
commit
46d6a976a5
31 files changed
+7806
-447
No files matched your search
+11
-3
@@ -205,7 +205,9 @@ fn verify(
|
||||
path.display()
|
||||
));
|
||||
}
|
||||
if let Some(support) = artifact.support {
|
||||
if artifact.vision {
|
||||
crate::engine::validate_vision_artifact(path)?;
|
||||
} else if let Some(support) = artifact.support {
|
||||
crate::engine::validate_model_artifact(path, model, support)?;
|
||||
}
|
||||
Ok(DownloadOutcome::Complete)
|
||||
@@ -330,8 +332,8 @@ mod tests {
|
||||
Some(ModelChoice::DeepSeekV4Flash0731)
|
||||
);
|
||||
assert!(ModelChoice::from_id("unknown").is_none());
|
||||
assert_eq!(MODEL_CHOICES.len(), 3);
|
||||
assert_eq!(MANAGED_ARTIFACTS.len(), 4);
|
||||
assert_eq!(MODEL_CHOICES.len(), 4);
|
||||
assert_eq!(MANAGED_ARTIFACTS.len(), 6);
|
||||
assert_eq!(ModelChoice::Glm52.main_artifact().size, 211_075_856_448);
|
||||
assert_eq!(
|
||||
ModelChoice::DeepSeekV4Flash0731.main_artifact().size,
|
||||
@@ -339,6 +341,7 @@ mod tests {
|
||||
);
|
||||
assert_eq!(ModelChoice::DeepSeekV4Flash0731.artifacts(true).count(), 2);
|
||||
assert_eq!(ModelChoice::Glm52.artifacts(true).count(), 1);
|
||||
assert_eq!(ModelChoice::Glm53Flash.artifacts(true).count(), 2);
|
||||
|
||||
let id = SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
@@ -366,6 +369,7 @@ mod tests {
|
||||
size: 0,
|
||||
sha256: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
support: None,
|
||||
vision: false,
|
||||
};
|
||||
let partial = empty.partial_path(ModelChoice::DeepSeekV4Flash0731, &models_path);
|
||||
fs::create_dir_all(partial.parent().unwrap()).unwrap();
|
||||
@@ -393,6 +397,7 @@ mod tests {
|
||||
&EngineArtifacts {
|
||||
model: installed.clone(),
|
||||
support: None,
|
||||
vision: None,
|
||||
},
|
||||
)
|
||||
.is_err()
|
||||
@@ -404,6 +409,7 @@ mod tests {
|
||||
&EngineArtifacts {
|
||||
model: installed,
|
||||
support: None,
|
||||
vision: None,
|
||||
},
|
||||
)
|
||||
.is_err()
|
||||
@@ -428,6 +434,7 @@ mod tests {
|
||||
size: 3,
|
||||
sha256: "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",
|
||||
support: None,
|
||||
vision: false,
|
||||
};
|
||||
let verified_bytes = AtomicU64::new(999);
|
||||
|
||||
@@ -593,6 +600,7 @@ mod tests {
|
||||
size: 10,
|
||||
sha256: "unused",
|
||||
support: None,
|
||||
vision: false,
|
||||
};
|
||||
let partial = artifact.partial_path(ModelChoice::DeepSeekV4Flash0731, &directory);
|
||||
fs::create_dir_all(partial.parent().unwrap()).unwrap();
|
||||
|
||||
Reference in new issue
Block a user