tests: the app preview and launch list know the two Unsloth sets

This commit is contained in:
Niko1221 committed 2026-10-30 18:41:24 +01:00
1 parent 6923421a61
commit ffaa6ad78c
2 files changed
+8 -6

No files matched your search

+6 -4
View File
@@ -11,6 +11,8 @@ from strata_control import dsv41_sets, models
T = dsv41_sets.tables()
ISTA = [m for m in T["sets"] if m.startswith("IST-DAS")] # the Unsloth UD-IQ1 sets have no legacy, six-shard or re-published layouts (tools/test_setup_udlow.py)
def files_of(model, legacy=False, engram="official", drop=(), wrong=(), layout=None):
entry = T["sets"][model]
pinned = dict(entry["six"] if layout == "six" else entry["legacy"] if legacy else entry["shards"])
@@ -35,11 +37,11 @@ class DeepSeekPreview(unittest.TestCase):
return models.plan_import(str(target)), folder
def test_the_tables_come_from_setup_and_cover_the_three_official_sizes(self):
self.assertEqual(sorted(T["sets"]), ["IST-DAS-1.75bpw", "IST-DAS-2.00bpw", "IST-DAS-2.25bpw"])
self.assertEqual(sorted(T["sets"]), ["IST-DAS-1.75bpw", "IST-DAS-2.00bpw", "IST-DAS-2.25bpw", "UD-IQ1_M", "UD-IQ1_S"])
self.assertEqual(len(T["engram"]), 2)
def test_each_official_set_is_recognised_with_its_size_name(self):
for model in T["sets"]:
for model in ISTA:
for legacy in (False, True):
if legacy and not T["sets"][model]["legacy"]:
continue # 1.75 has no first-release names
@@ -88,7 +90,7 @@ class DeepSeekPreview(unittest.TestCase):
self.assertFalse(any("not supported" in m for m in plan["messages"]))
def test_the_four_shard_files_with_the_republished_first_shard_are_the_set_4237(self):
for model in T["sets"]:
for model in ISTA:
plan, folder = self.preview(files_of(model, layout="four-newer-first"))
self.assertEqual(plan["file_set_status"], "plausible", (model, plan["issues"]))
self.assertEqual(plan["candidate_selection"]["model"], model)
@@ -102,7 +104,7 @@ class DeepSeekPreview(unittest.TestCase):
self.assertEqual(plan["missing_shards"], [first])
def test_the_six_shard_files_are_the_set(self):
for model in T["sets"]:
for model in ISTA:
plan, folder = self.preview(files_of(model, layout="six"))
self.assertEqual(plan["file_set_status"], "plausible", (model, plan["issues"]))
self.assertEqual((plan["candidate_selection"]["family"], plan["candidate_selection"]["model"]), ("deepseek41", model))
+2 -2
View File
@@ -36,10 +36,10 @@ class LaunchDeepSeek(unittest.TestCase):
def test_the_model_is_in_the_list(self):
rows = [r for r in catalog(self.hw).rows() if r.family == "deepseek41"]
self.assertEqual([r.model for r in rows], ["IST-DAS-2.00bpw", "IST-DAS-2.25bpw", "IST-DAS-1.75bpw", "UD-Q8_K_XL"])
self.assertEqual([r.model for r in rows], ["IST-DAS-2.00bpw", "IST-DAS-2.25bpw", "IST-DAS-1.75bpw", "UD-IQ1_S", "UD-IQ1_M", "UD-Q8_K_XL"])
self.assertEqual([r.download_gb for r in rows[:3]], [256.8, 273.8, 239.3])
self.assertEqual(catalog(self.hw).resolve("ist-das-2.25bpw"), ("deepseek41", "IST-DAS-2.25bpw"))
r = rows[3]
r = rows[5]
self.assertEqual((r.id, r.download_gb, r.verdict, r.images), ("deepseek-v4.1-flash-ud-q8_k_xl", 508.4, "fits", True)) # 0.2.7: pictures through the engine's own tower
self.assertEqual(catalog(self.hw).resolve("ud-q8_k_xl"), ("deepseek41", "UD-Q8_K_XL"))
self.assertEqual(catalog(self.hw).max_context("deepseek41", "UD-Q8_K_XL"), 8192)