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

dsv41: --score writes end_line in the segment file (quant_quality.py compare reads it)

Niko1221d17c32d6a3f8
diff --git a/src/dsv41/ds4_main.cpp b/src/dsv41/ds4_main.cpp
index 68751c666..2d594fe9c 100644
--- a/src/dsv41/ds4_main.cpp
+++ b/src/dsv41/ds4_main.cpp
@@ -621,7 +621,7 @@ int score(strata::ds4::Model& m, const std::string& ids_path, const std::string&
a += (size_t) T;
}
std::fprintf(sj, "%s{\"name\": \"%s\", \"first_line\": %lld, \"n\": %lld, \"ppl\": %.6f, \"top1\": %.6f}", si ? ", " : "",
- segs[si].name.c_str(), first, cnt, std::exp(sum_nll / (double) std::max(1LL, cnt)),
+ segs[si].name.c_str(), first, first + cnt, cnt, std::exp(sum_nll / (double) std::max(1LL, cnt)),
(double) top1 / (double) std::max(1LL, cnt));
std::fprintf(stderr, "score %s: %lld positions, ppl %.4f, top-1 %.4f (%.0f s)\n", segs[si].name.c_str(), cnt,
std::exp(sum_nll / (double) std::max(1LL, cnt)), (double) top1 / (double) std::max(1LL, cnt),
@@ -705,7 +705,7 @@ int main(int argc, char** argv) {
return 2;
}
}
- if (o.pack.empty() || (!serve_mode && ids_s.empty() && enc_rgb.empty())) {
+ if (o.pack.empty() || (!serve_mode && ids_s.empty() && enc_rgb.empty() && score_ids.empty())) {
usage();
return 2;
}