commit bf343acac9bb65a56df2c28db0e071fdfd0c0509
parent 887ae02e3fbce46806c55d98d779b92f457f2349
Author: Vineet Kumar <git@vineetk.net>
Date: Sat, 14 Nov 2026 20:22:02 +0100
packages/machine-learning: add my reasoning-effort cli flag patch to strata-rdna3
it just sets the default when not passed in the api request
Diffstat:
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/epistemia/packages/machine-learning.scm b/epistemia/packages/machine-learning.scm
@@ -233,7 +233,41 @@ index c8f60b61..ec17bb20 100644
+ STRATA_SHARED_ALIGN16_INT4(s_u, ED_NC * 2 * ED_HB);
__shared__ float s_ds[ED_NC * ED_HB];
const int tid = threadIdx.x;
- const int sw = tid / LANES, t = tid % LANES;")))))
+ const int sw = tid / LANES, t = tid % LANES;")
+ (plain-file "strata-rdna3-default_reasoning_effort.patch" "\
+diff --git a/serve/server.py b/serve/server.py
+index 0ded16f8..6a7bee00 100644
+--- a/serve/server.py
++++ b/serve/server.py
+@@ -8168,6 +8168,9 @@ def main(argv=None, *, lifecycle_event=None, interrupt_exit_code: int = 0) -> in
+ help=\"the mock engine's answer (default: a short greeting); given more than once, requests get \"
+ \"them in turn and the last one repeats\")
+ ap.add_argument(\"--port\", type=int, default=8095)
++ ap.add_argument(\"--reasoning-effort\", metavar=\"LEVEL\", choices=[\"none\", \"low\", \"medium\", \"high\", \"xhigh\"],
++ help=\"default thinking level (none, low, medium, high, xhigh); overrides the config, \"
++ \"while requests and shared Chat settings can override it\")
+ ap.add_argument(\"--ready-file\", help=\"write a JSON instance record once the API is bound and model state is known\")
+ ap.add_argument(\"--owner-fd\", type=int, help=argparse.SUPPRESS)
+ ap.add_argument(\"--shutdown-timeout\", type=float, default=None,
+@@ -8295,6 +8298,8 @@ def main(argv=None, *, lifecycle_event=None, interrupt_exit_code: int = 0) -> in
+ ap.error(\"--batch-groups conflicts with the saved engine args\")
+ cfg[\"args\"] = [*cfg[\"args\"], \"--batch-groups\", a.batch_groups]
+ lift_reasoning_effort_arg(cfg)
++ if a.reasoning_effort is not None:
++ cfg[\"reasoning_effort\"] = \"high\" if a.reasoning_effort == \"xhigh\" else a.reasoning_effort
+ if a.replicas is not None:
+ cfg[\"replicas\"] = a.replicas
+ if a.gpu is not None:
+@@ -8499,7 +8504,8 @@ def main(argv=None, *, lifecycle_event=None, interrupt_exit_code: int = 0) -> in
+ except ValueError as e:
+ raise SystemExit(f\"[strata] config {e}\")
+ if svc.config_effort:
+- print(f\"[strata] thinking level: {svc.config_effort} (reasoning_effort in the config; a request, or the \"
++ effort_source = \"--reasoning-effort\" if a.reasoning_effort is not None else \"reasoning_effort in the config\"
++ print(f\"[strata] thinking level: {svc.config_effort} ({effort_source}; a request, or the \"
+ \"Chat settings shared with other apps, can set its own)\", flush=True)
+ svc.codex_thread_titles = cfg.get(\"codex_thread_titles\") is True # #923: opt-in, off by default
+ svc.codex_compaction_cache = cfg.get(\"codex_compaction_cache\") is True # #924: opt-in, off by default")))))
(build-system cmake-build-system)
(arguments
(list #:tests? #f ;; failing tests require rocm-capable gpu, which I don't see a way to fix without changing guix-daemon chroot