mkg20001/ai-wasteland-local main
Shell changes working directoryExecutes a child process
SHA-25640b6856615c49e8d8600fcdc1bdefa0bfcddc35e24b21a469530e7fb8000997a
MaleculeH₂(F₂Po₃)
Evidence
1#!/usr/bin/env bash
2#
3# The offline model, end to end and repeatable.
4#
5# ./model.sh corpus [n] compose and score training data
6# ./model.sh extr …
11:16… rules [file] publish what the schemas permit, for the decoder
12# ./model.sh serve [port] an OpenAI-shaped endpoint in front of it
13# ./model.sh calibrate [file] correlate rollout events with final completion
14# ./model.sh test the trainer's own tests
15# ./model.sh all [n] …
26:10… ry of weights says how it was made.
27#
28set -uo pipefail
29
30root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
31
32# ---------------------------------------------------------------------------
155:21… — "what was this trained with?" — has no answer.
156record() {
157 mkdir -p "$AIW_MODEL_DIR"
158 {
159 echo "# Written by model.sh. The parameters this model was trained with."
160 echo "# Re-run with: env \$(grep -v '^#' run.env | xargs) ./model.sh train"
161 for var in A …
246:45… $AIW_MODEL_DIR" "${1:-8080}"
247 ;;
248
249 calibrate)
250 exec "$root/calibrate-rollouts.sh" "${1:-$root/build/rollouts.jsonl}"
251 ;;
252
253 test)
254 ( cd "$root/trainer" && in_shell cargo test )
255 ;;
256
257 all)
258 "$0" corpus "${1:-2000}" || exit 1
259 "$0" train || exit 1
260 samples="$root/trainer/data/samples.jsonl"
261 "$0" sample "${AI …