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++

ngram: the PLE size-mismatch message says a longer-than-its-table file is a bad download (#657)

Niko1221bea064293f2d
diff --git a/src/kernels/ngram.cpp b/src/kernels/ngram.cpp
index 406213c30..4667745fb 100644
--- a/src/kernels/ngram.cpp
+++ b/src/kernels/ngram.cpp
@@ -304,6 +304,8 @@ bool PleTable::open(const std::string& gguf_path, std::string& err, const PleIoO
(unsigned long long) t->offset, (unsigned long long) have,
(unsigned long long) impl_->file->data_start());
err = buf;
+ if (alone && have > need) // #657: extra bytes after the table: a damaged or wrong file, not a format question
+ err += "; the file is longer than its table - delete it and its .done mark and run setup again";
close();
return false;
}