Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-mv/blob/main/provenance/fixtures/real-waldo-aien-chain/run-inputs/train-and-export.sh # interplane-mv INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-mv / provenance / fixtures / real-waldo-aien-chain / run-inputs / train-and-export.sh` 79 lines ยท 3607 bytes Raw Blame History 1 #!/bin/sh 2 # Train the tool-call model: structured conversations -> SFT with chatml-v1 -> Hugging Face export. 3 set -eu 4 T=$HOME/.claude/jobs/`6c731f18`/tmp/ipx76; S=$HOME/.claude/jobs/`bb9e2577`/tmp/waldo29 5 export PATH=$S/venvB/bin:$S/tools/go/bin:$PATH GOPATH=$S/gopath GOCACHE=$S/gocache GOFLAGS=-buildvcs=false 6 W=$T/train2/work; rm -rf $W; mkdir -p $W/source/raw 7 binary=$W/waldo; (cd $T/waldo && go build -o $binary ./cmd/waldo) 8 export WALDO_CONFIG=$W/config.json 9 cp $T/train2/conversations.jsonl $W/source/raw/conversations.jsonl 10 fb=$(wc -c < $W/source/raw/conversations.jsonl | tr -d ' ') 11 fs=$(sha256sum $W/source/raw/conversations.jsonl | awk '{print $1}') 12 tree=$(printf '%s\t%s\t%s\n' "$fs" "$fb" conversations.jsonl | sha256sum | awk '{print $1}') 13 cat > $W/source/manifest.json </dev/null 24 $binary config set index $W/idx >/dev/null 25 $binary config set lookaside file://$W/look >/dev/null 26 $binary config set lookaside.cache $W/cache >/dev/null 27 $binary config set lookaside.cache.max-size 64MiB >/dev/null 28 $binary config set lookaside.scratch $W/scratch >/dev/null 29 $binary config set ingest.staging $W/staging >/dev/null 30 $binary config set model.root $W/models >/dev/null 31 $binary config set model.backend pytorch >/dev/null 32 cat > $W/provider.json </dev/null 36 dest=$W/idx/post-train/sft/aien-toolcall-own 37 $binary index ingest $W/source $dest >/dev/null 38 c=; for d in $W/staging/*/contribution; do [ -d $d ] && c=$d; done 39 cp -R $c/. $W/idx/ 40 cat > $W/model.yaml <