mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
DeepSeek V4.1-Flash leaves every user page, as written in par/dsout/DOCS-DRAFTS.md: - README.md and its 7 translations lose the DeepSeek block; docs/media/models/deepseek.svg is removed with its credit lines. - MODELS, INSTALL, docs/README, MAC, TROUBLESHOOTING, AMD_HIP, DOCKER, INTEL, MULTI_GPU, TERMINAL_LAUNCH, AI_SETUP, AI_REFERENCE, MEDIA_KIT, DETAILS, SAFETY, DGX_SPARK_LINUX, STRIX_HALO, STRIX_HALO_WINDOWS, AGENTS.md and the packaging pages (README, UPDATES, ENGINE-COMPONENT, mac/README): DeepSeek sections, rows and clauses deleted; the eight approved new sentences. STRIX_HALO's WSL sentence (true for every AMD engine) moves to the Quick start. - The three links to DEEPSEEK41.md anchors that no longer exist (MODELS.md twice, TERMINAL_LAUNCH.md once) went with their sections, so the link check passes again. - docs/data/capabilities.json drops the deepseek41 family; docs/CAPABILITIES.md and the cap blocks regenerated by tools/capability_table.py --write. MEDIA_KIT.md has no cap block left, so tools/capability_table.py no longer lists it; tools/test_capability_table.py points its two contradiction tests at qwen38 / qwen36 and loses the DeepSeek-on-a-Mac test. - docs/SETTINGS.md: the three STRATA_DS4_* rows go (count 280 -> 277). The page is not fully regenerated: tools/settings_register.py --docs would also change seven rows that are not about DeepSeek and were already out of date on f-own-int 9bef5255d; they wait for the owner. - The four approved help texts lose their [DRAFT] prefix: strata launch --context, and "choose the Qwen engine" (strata components use / remove). Kept on purpose: DeepSeek as a cloud provider and search key, every DeepSeek Harness mention, docs/release-notes-*.md and history/, docs/DEEPSEEK41.md and DEEPSEEK_MAC.md (the five-line page).
50 lines
1.9 KiB
Python
50 lines
1.9 KiB
Python
"""The capability table (docs/data/capabilities.json) against the release's packages and the pages that quote it."""
|
|
import copy
|
|
import os
|
|
import sys
|
|
import unittest
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
import capability_table as ct # noqa: E402
|
|
|
|
|
|
class CapabilityTable(unittest.TestCase):
|
|
def setUp(self):
|
|
self.cap = ct.read_json(ct.DATA)
|
|
self.release = ct.read_json(ct.RELEASE)
|
|
|
|
def test_pages_and_table_are_what_the_generator_writes(self):
|
|
self.assertEqual(ct.validate(self.cap, self.release), [])
|
|
self.assertEqual(ct.read(ct.OUT).replace("\r\n", "\n"), ct.page(self.cap, self.release))
|
|
for p in ct.PAGES:
|
|
text = ct.read(p)
|
|
self.assertTrue(ct.MARK_RE.search(text), p)
|
|
self.assertEqual(ct.render(self.cap, self.release, text), text, p)
|
|
|
|
def test_a_package_contradicts_a_no(self):
|
|
cap = copy.deepcopy(self.cap)
|
|
{f["id"]: f for f in cap["families"]}["qwen38"]["cells"]["mac"]["supported"] = "no"
|
|
problems = ct.validate(cap, self.release)
|
|
self.assertTrue(any("qwen38 on mac is marked 'no'" in p for p in problems), problems)
|
|
|
|
def test_a_yes_without_a_package_is_reported(self):
|
|
cap = copy.deepcopy(self.cap)
|
|
{f["id"]: f for f in cap["families"]}["qwen36"]["cells"]["intel_linux"]["supported"] = "yes"
|
|
problems = ct.validate(cap, self.release)
|
|
self.assertTrue(any("no package for it" in p for p in problems), problems)
|
|
|
|
def test_qwen36_packages_are_the_cuda_and_hip_engines_only(self):
|
|
fam = {f["id"]: f for f in self.cap["families"]}["qwen36"]
|
|
pk = ct.packages(self.release, fam)
|
|
self.assertNotIn("mac", pk)
|
|
self.assertNotIn("intel_linux", pk)
|
|
self.assertIn("nvidia_win", pk)
|
|
|
|
def test_no_page_keeps_the_old_mac_sentence(self):
|
|
for p in ct.PAGES:
|
|
self.assertNotIn("no DeepSeek yet", ct.read(p))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|