generate: the in-window scaling note stops claiming YaRN's magnitude correction (TODO 22)

The note fired for every scaled run inside the trained 262144 and its text
named YaRN's magnitude correction even for linear, whose resolved mscale
is exactly 1.  Split in two: the in-window warning now only says that no
position needs the extension while the resolved scaling still applies to
every angle, and the magnitude explanation became its own note, printed
only when YaRN is resolved and its magnitude multiplier differs from 1
(yarn factor 1 inside the window stays quiet; linear never sees it).  The
main rope scaling line is unchanged, the numbers it prints already carry
the resolved mscale.

Diagnostics only.  Checked on the rebased tree: none prints nothing,
linear 2 prints the in-window note without the magnitude line, yarn 2
prints both (mscale 1.069315), yarn factor 1 prints the in-window note
only, and yarn 2 past the trained window prints the magnitude note
without the in-window one.
This commit is contained in:
Jakub Luwierski authored and Niko1221 committed 2026-09-30 16:31:31 +02:00
1 parent 8e2f46ca8c
commit a8e56761a6
1 file changed
+7 -2
+7 -2
View File
@@ -1509,9 +1509,14 @@ int main(int argc, char** argv) {
(long long) o.max_context, rope_cfg.orig_ctx);
if ((double) o.max_context <= rope_cfg.orig_ctx)
std::fprintf(stderr,
"strata generate: note: the context is within the trained %.0f - the angles barely move, "
"but YaRN's magnitude correction applies everywhere\n",
"strata generate: note: the context is within the trained %.0f - no position needs the "
"extension, and the resolved scaling still applies to every angle\n",
rope_cfg.orig_ctx);
if (rope_cfg.type == RST::YaRN && rope_cfg.mscale() != 1.0)
std::fprintf(stderr,
"strata generate: note: YaRN's magnitude correction scales cos and sin by %.6f "
"at every position\n",
rope_cfg.mscale());
}
}
strata::core::NativeEmbed native_embed;