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++
test: pin the short-context rope table (§4, no factor-2 fallback in the window)
Jakub Luwierski29f3aec04dd1
diff --git a/tools/test_setup_rope.py b/tools/test_setup_rope.pyindex 8e90f5287..85b47f989 100644--- a/tools/test_setup_rope.py+++ b/tools/test_setup_rope.py@@ -98,6 +98,24 @@ class ResolveRope(unittest.TestCase):self.assertEqual(setup.resolve_rope(393216, "yarn", None), ("yarn", 1.5))self.assertEqual(setup.resolve_rope(524288, "yarn", None), ("yarn", 2.0))+ # ---- the short-context item's own table: no factor-2 fallback inside the trained window, for either+ # method, with the explicit override column kept verbatim+ def test_the_short_context_table(self):+ cases = [+ (131072, None, "yarn", 1.0), # --context 131072 --rope-scaling yarn+ (262144, None, "yarn", 1.0), # --context 262144 --rope-scaling yarn+ (393216, None, "yarn", 1.5),+ (524288, None, "yarn", 2.0),+ (131072, 2.0, "yarn", 2.0), # --rope-scale 2 is kept inside the window+ ]+ for ctx, scale, method, want in cases:+ self.assertEqual(setup.resolve_rope(ctx, method, scale), (method, want), f"ctx {ctx}")++ def test_linear_gets_the_same_rule_as_yarn(self):+ # the old fallback applied to both methods, so the fix must too+ self.assertEqual(setup.resolve_rope(131072, "linear", None), ("linear", 1.0))+ self.assertEqual(setup.resolve_rope(393216, "linear", None), ("linear", 1.5))+if __name__ == "__main__":unittest.main()