Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Progress words: a file being repaired after a wrong SHA-256 says so in plain words

Niko122131ca248fbe4e
diff --git a/strata_control/progress_words.py b/strata_control/progress_words.py
index bd8344a89..dddf46fb3 100644
--- a/strata_control/progress_words.py
+++ b/strata_control/progress_words.py
@@ -65,6 +65,11 @@ def describe(step: int | None, lines: list[str], download: dict | None = None) -
return Words("engine", "Checking the engine for this PC")
if step == 5:
last = recent[-1] if recent else ""
+ for line in reversed(recent): # a file with a wrong SHA-256 is read again and only the bad parts rewritten
+ if "were damaged; downloading only those parts" in line:
+ return Words("repair", "Some parts of a model file were damaged; downloading only those parts again")
+ if CHECKING_RE.search(line) or "were different and have been written again" in line:
+ break
if dl_file.startswith("checking") or CHECKING_RE.search(last):
return Words("verify", "Checking that the model files are complete (a few minutes for a big model; nothing is downloaded)")
if "vision" in dl_file or "picture" in dl_file or "mmproj" in dl_file:
diff --git a/tests/terminal/test_progress_words.py b/tests/terminal/test_progress_words.py
index ea8efd705..16b1bb8dc 100644
--- a/tests/terminal/test_progress_words.py
+++ b/tests/terminal/test_progress_words.py
@@ -63,6 +63,15 @@ class StepWords(unittest.TestCase):
self.assertEqual(phase, "verify")
self.assertEqual(p["download"]["percent"], 20)
+ def test_a_damaged_file_is_repaired_in_plain_words_and_the_second_check_is_checking(self):
+ damaged = " Some parts of Qwen3.8-Flash-Next-Gyro-S-TQ1_0.gguf were damaged; downloading only those parts again."
+ lines = HEAD + STEP5 + [MODEL_PROGRESS, CHECK, damaged, " Qwen3.8-Flash-Next-Gyro-S-TQ1_0.gguf: 12.00 / 58.49 GB (20%) "]
+ _p, label, phase = prog(lines)
+ self.assertEqual(phase, "repair")
+ self.assertEqual(label, "Some parts of a model file were damaged; downloading only those parts again")
+ done = lines + [" 2 of 1186 parts were different and have been written again; checking the whole file again ..."]
+ self.assertEqual(prog(done)[2], "download")
+
def test_the_picture_reader(self):
lines = HEAD + STEP5 + [" [ok] model files present", " vision encoder: 0.30 / 0.91 GB (33%) "]
self.assertEqual(prog(lines)[1:], ("Downloading the picture reader", "pictures"))