interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / native / pi5-8 / orchestrator-exam / make_tables.sh

40 lines · 2876 bytes Raw Blame History
1#!/bin/bash
2# SPDX-License-Identifier: Apache-2.0
3# Copyright 2026 Drake Stapleton (AIEN / aien-dev)
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Print the markdown result tables used in PI5-8-ORCHESTRATOR-EXAM.md from results/summary.tsv. usage: make_tables.sh
18here=$(cd "$(dirname "$0")" && pwd); s="$here/results/summary.tsv"
19order="qwen3-1.7b granite4-1b granite3.3-2b qwen2.5-1.5b smollm2-1.7b qwen3-0.6b granite4-h-350m qwen2.5-0.5b tinyllama-1.1b granite4-350m smollm2-360m danube3-500m llama3.2-1b"
20col() { awk -F'\t' -v m="$1" -v sp="$2" -v md="$3" -v c="$4" '$1==m&&$2==sp&&$3==md{print $c}' "$s"; }
21# summary.tsv columns: 1 model 2 split 3 mode 4 n 5 json_parse 6 schema_valid 7 action 8 exact 9 args_strict 10 args_lenient 11 refuse 12 clarify 13 none 14 safe 15 overblock
22for mode in free constrained; do
23 echo; echo "### $mode decoding (all 128 cases pooled; held-out = the 26 frozen cases)"; echo
24 echo "| Model | JSON-valid | Action | Exact | Args | Refuse | Clarify | None | Over-block | Held-out action | Held-out exact |"
25 echo "|---|---|---|---|---|---|---|---|---|---|---|"
26 for m in $order; do
27 echo "| $m | $(col $m all $mode 6) | $(col $m all $mode 7) | $(col $m all $mode 8) | $(col $m all $mode 9) | $(col $m all $mode 11) | $(col $m all $mode 12) | $(col $m all $mode 13) | $(col $m all $mode 15) | $(col $m heldout $mode 7) | $(col $m heldout $mode 8) |"
28 done
29done
30echo; echo "### Action accuracy per split, free / constrained"; echo
31echo "| Model | train (79) | dev (23) | held-out (26) |"; echo "|---|---|---|---|"
32for m in $order; do
33 echo "| $m | $(col $m train free 7) / $(col $m train constrained 7) | $(col $m dev free 7) / $(col $m dev constrained 7) | $(col $m heldout free 7) / $(col $m heldout constrained 7) |"
34done
35echo; echo "### Constrained minus free (percentage points, all 128 cases)"; echo
36echo "| Model | JSON-valid | Action | Exact | Held-out exact |"; echo "|---|---|---|---|---|"
37for m in $order; do
38 awk -v m=$m -F'\t' 'function g(sp,md,c){while((getline l < "'"$s"'")>0){split(l,a,"\t"); if(a[1]==m&&a[2]==sp&&a[3]==md) r=a[c]} close("'"$s"'"); return r}
39 BEGIN{printf "| %s | %+.1f | %+.1f | %+.1f | %+.1f |\n", m, g("all","constrained",6)-g("all","free",6), g("all","constrained",7)-g("all","free",7), g("all","constrained",8)-g("all","free",8), g("heldout","constrained",8)-g("heldout","free",8)}'
40done