Compare commits

..
3 Commits
Author SHA1 Message Date
shinyobjectz a74be6e670 zoo: cargo-shear told ureq is used (by zoo/rust/models.rs, taken in through #[path]) 2026-12-06 10:33:18 -08:00
shinyobjectz 28a6af658d zoo: Qwen3-VL-8B out of unrender's pipeline (the text head takes SigLIP 2's crop vector) 2026-12-06 10:29:05 -08:00
shinyobjectz d6fedd066d zoo: every model raea and its projects run, managed in one place by target
zoo/zoo.tsv is the catalog: one row per model and target (cloud, mac, windows, linux; desktop for one build on all
three), with its runtime, weights, where it lives, licence and the date it was last decided. zoo/check.sh checks the
rules: every model says something for every target, all of a key's rows carry the same reviewed date (a change on the
cloud is decided on the desktop the same day, and the other way round), and --code lists model ids in code that no row
names. zoo/python/raea_zoo.py is the Python API (target, entry, use, models, device); the Rust API, raea_sys_ml::models,
now lives at zoo/rust/models.rs and is built into raea-sys-ml by a path attribute, so no caller changes. The release's
models.tsv and the Modal upload script point at the zoo for what they deliver. 53 models: unrender's 18 in its pipeline
plus its planned and bench arms, and the engine's; 22 rows still unverified and 5 with parity owed, listed by the check.
2026-12-06 10:27:19 -08:00
15 changed files with 398 additions and 613 deletions

No files matched your search

-176
View File
@@ -1,176 +0,0 @@
// The joins bench: the same picks from real talking takes cut five ways, each clip written out to be heard again.
// bun bench.ts DATA OUT TAKE... (run.sh runs it; DATA holds TAKE.wav, 16 kHz mono, and TAKE.words.json)
//
// Picks: every other sentence (twice, odd and even), and every other clause (cut at , ; : too: the hard case, edges
// inside connected speech). Arms, each on the same spans except B:
// A raea cut today (edgesOf, src/joins.ts)
// B the feed host today (apps/app/host/take.ts cut: 0.06 s pads, pauses over 0.4 s cut out); sentences only
// D A mended without measuring: a lead-in and tail of 0.06 s at least where words abut, the grid outward
// M measured placement: from where the sound starts and stops, on quiet, frame grid included
// H M where the take has quiet beside the edge, A where it hasn't
// Writes OUT/<arm>-<take>-<pick>.wav (the clips with 0.8 s of silence between) and OUT/clips.json for judge.ts.
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
import { edgesOf, joinsOf, levelsOfWav, type Levels, type Word } from "../../src/joins.ts";
import { cut as feedCut, type Sentence } from "../../../../apps/app/host/take.ts";
const [data, out, ...takes] = process.argv.slice(2);
if (!data || !out || !takes.length) throw new Error("bench.ts DATA OUT TAKE...");
mkdirSync(out, { recursive: true });
const FPS = 30;
const RATE = 16000;
// ---- arm D: A's shares with a floor, rounded away from the words -----------------------------------------------
function mended(ws: Word[], spans: [number, number][], least = 0.06): [number, number][] {
const sf = 1 / FPS;
const mid = (w: Word) => (w.from + w.to) / 2;
return spans.map(([i, j], k): [number, number] => {
const before = i > 0 ? ws[i].from - ws[i - 1].to : 0.4;
const after = j + 1 < ws.length ? ws[j + 1].from - ws[j].to : 0.6;
const lo = i > 0 ? mid(ws[i - 1]) : 0;
const hi = j + 1 < ws.length ? mid(ws[j + 1]) : Infinity;
let a = Math.max(lo, ws[i].from - Math.max(least, Math.min(before * 0.6, 0.12)));
let b = Math.min(hi, ws[j].to + Math.max(least, Math.min(after * 0.7, k + 1 === spans.length ? 0.35 : 0.22)));
const af = Math.floor(a / sf + 1e-6) * sf;
const bc = Math.ceil(b / sf - 1e-6) * sf;
a = af >= lo ? af : Math.ceil(a / sf - 1e-6) * sf;
b = bc <= hi ? bc : Math.floor(b / sf + 1e-6) * sf;
return [Math.max(0, a), Math.max(a + sf, b)];
});
}
// ---- arms M and H: placed on the take's sound ------------------------------------------------------------------
const quietAt = (lv: Levels, k: number) => k < 0 || k >= lv.db.length || lv.db[k] < lv.quiet;
/** the end of the last quiet run (4 hops) going back from hi to lo, and where that run began */
function onset(lv: Levels, lo: number, hi: number) {
let run = 0;
for (let k = Math.floor(hi / 0.01); k >= Math.floor(lo / 0.01); k--) {
if (!quietAt(lv, k)) { run = 0; continue; }
if (++run < 4) continue;
let start = k;
while (start - 1 >= Math.floor(lo / 0.01) && quietAt(lv, start - 1)) start--;
return { at: (k + run) * 0.01, quietFrom: start * 0.01 };
}
}
/** the start of the first quiet run going on from lo to hi, and where it ends */
function release(lv: Levels, lo: number, hi: number) {
let run = 0;
for (let k = Math.floor(lo / 0.01); k <= Math.floor(hi / 0.01); k++) {
if (!quietAt(lv, k)) { run = 0; continue; }
if (++run < 4) continue;
let end = k;
while (end + 1 <= Math.floor(hi / 0.01) && quietAt(lv, end + 1)) end++;
return { at: (k - run + 1) * 0.01, quietTo: (end + 1) * 0.01 };
}
}
function quietest(lv: Levels, a: number, b: number) {
let best = Math.floor(a / 0.01);
for (let k = best; k <= Math.floor(b / 0.01); k++) if (k >= 0 && k < lv.db.length && lv.db[k] < lv.db[best]) best = k;
return best * 0.01 + 0.005;
}
/** M (fallback "quietest") or H (fallback A's edge) */
function measured(ws: Word[], spans: [number, number][], lv: Levels, fallback: "quietest" | "A"): { edges: [number, number][]; quiet: [boolean, boolean][] } {
const sf = 1 / FPS;
const mid = (w: Word) => (w.from + w.to) / 2;
const padded = edgesOf(ws, spans, FPS);
const end = lv.db.length * 0.01;
const quiet: [boolean, boolean][] = [];
const edges = spans.map(([i, j], s): [number, number] => {
const [first, last] = [ws[i], ws[j]];
const loA = i > 0 ? Math.max(mid(ws[i - 1]), first.from - 0.8) : Math.max(0, first.from - 0.8);
const hiB = j + 1 < ws.length ? Math.min(mid(ws[j + 1]), last.to + 1.2) : Math.min(end, last.to + 1.2);
let a: number;
const on = onset(lv, loA, first.from);
if (on) {
a = on.at - Math.min(0.12, (on.at - on.quietFrom) * 0.6);
const [lo, up] = [Math.floor(a / sf + 1e-6) * sf, Math.ceil(a / sf - 1e-6) * sf];
a = lo >= on.quietFrom ? lo : up < on.at ? up : lo;
} else a = fallback === "A" ? padded[s][0] : Math.floor(quietest(lv, loA, first.from) / sf + 1e-6) * sf;
let b: number;
const off = release(lv, last.to, hiB);
if (off) {
b = off.at + Math.min(s + 1 === spans.length ? 0.35 : 0.22, (off.quietTo - off.at) * 0.7);
const [lo, up] = [Math.floor(b / sf + 1e-6) * sf, Math.ceil(b / sf - 1e-6) * sf];
b = up <= off.quietTo ? up : lo > off.at ? lo : up;
} else b = fallback === "A" ? padded[s][1] : Math.ceil(quietest(lv, last.to, hiB) / sf - 1e-6) * sf;
quiet.push([!!on, !!off]);
return [Math.max(0, a), Math.max(a + sf, b)];
});
return { edges, quiet };
}
// ---- WAV in and out --------------------------------------------------------------------------------------------
function pcmOf(bytes: Uint8Array): Int16Array {
const v = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
for (let p = 12; p + 8 <= v.byteLength; ) {
const size = v.getUint32(p + 4, true);
if (String.fromCharCode(...bytes.subarray(p, p + 4)) === "data") return new Int16Array(bytes.slice(p + 8, p + 8 + size).buffer);
p += 8 + size + (size & 1);
}
throw new Error("no data chunk");
}
function wavOf(pcm: Int16Array): Uint8Array {
const b = new Uint8Array(44 + pcm.length * 2);
const v = new DataView(b.buffer);
const s = (o: number, t: string) => [...t].forEach((c, i) => v.setUint8(o + i, c.charCodeAt(0)));
s(0, "RIFF"); v.setUint32(4, 36 + pcm.length * 2, true); s(8, "WAVE"); s(12, "fmt ");
v.setUint32(16, 16, true); v.setUint16(20, 1, true); v.setUint16(22, 1, true); v.setUint32(24, RATE, true);
v.setUint32(28, RATE * 2, true); v.setUint16(32, 2, true); v.setUint16(34, 16, true); s(36, "data"); v.setUint32(40, pcm.length * 2, true);
new Int16Array(b.buffer, 44).set(pcm);
return b;
}
// ---- the picks, cut and written --------------------------------------------------------------------------------
type Clip = { take: string; a: number; b: number; at: number; len: number; want?: [number, number]; q?: [boolean, boolean] };
const clips: Record<string, Clip[]> = {};
const words: Record<string, Word[]> = {};
const runs = (ws: Word[], ends: RegExp) => {
const out: [number, number][] = [];
let s = 0;
ws.forEach((w, i) => { if (ends.test(w.text) || i === ws.length - 1) { out.push([s, i]); s = i + 1; } });
return out;
};
for (const take of takes) {
const bytes = new Uint8Array(readFileSync(`${data}/${take}.wav`));
const pcm = pcmOf(bytes);
const lv = levelsOfWav(bytes);
const raw = JSON.parse(readFileSync(`${data}/${take}.words.json`, "utf8")) as { text: string; start_ms: number; end_ms: number }[];
const ws: Word[] = raw.filter((w) => w.text.trim()).map((w) => ({ text: w.text.trim(), from: w.start_ms / 1000, to: w.end_ms / 1000 }));
words[take] = ws;
const sents = runs(ws, /[.?!]$/);
const clauses = runs(ws, /[.?!,;:]$/);
const sentences: Sentence[] = sents.map(([a, b], i) => ({ i, start: ws[a].from, end: ws[b].to, text: "", words: ws.slice(a, b + 1).map((w) => ({ text: w.text, start: w.from, end: w.to })) }));
for (const pick of [0, 1, 2]) {
const picked = sents.map((_, i) => i).filter((i) => i % 2 === pick);
const spans = pick < 2 ? picked.map((i) => sents[i]) : clauses.filter((_, i) => i % 2 === 1);
const h = measured(ws, spans, lv, "A");
// the flag raea cut prints, on the edges it places
const flags = joinsOf(ws, spans, lv, edgesOf(ws, spans, FPS)).quiet;
const arms: Record<string, [number, number][]> = {
A: edgesOf(ws, spans, FPS),
...(pick < 2 ? { B: feedCut(sentences, picked, FPS).segments } : {}),
D: mended(ws, spans),
M: measured(ws, spans, lv, "quietest").edges,
H: h.edges,
};
for (const [arm, segs] of Object.entries(arms)) {
const key = `${arm}-${take}-${pick}`;
const gap = new Int16Array(Math.round(0.8 * RATE));
const parts: Int16Array[] = [];
let at = 0;
clips[key] = segs.map(([a, b], n) => {
const seg = pcm.subarray(Math.round(a * RATE), Math.round(b * RATE));
const c: Clip = { take, a, b, at: at / RATE, len: seg.length / RATE, ...(arm === "B" ? {} : { want: spans[n], q: flags[n] }) };
parts.push(seg, gap);
at += seg.length + gap.length;
return c;
});
const all = new Int16Array(at);
let o = 0;
for (const p of parts) { all.set(p, o); o += p.length; }
writeFileSync(`${out}/${key}.wav`, wavOf(all));
}
}
}
writeFileSync(`${out}/clips.json`, JSON.stringify(clips));
writeFileSync(`${out}/words.json`, JSON.stringify(words));
console.log(`${Object.keys(clips).length} clip files, ${Object.values(clips).reduce((n, c) => n + c.length, 0)} clips`);
-105
View File
@@ -1,105 +0,0 @@
// The joins bench's judge: each clip heard again (parakeet-mlx, OUT/heard/*.json, run.sh), and each edge graded.
// bun judge.ts OUT
//
// An edge's word is its span's first (last) word that isn't a filler or bare punctuation. lost: it isn't among the
// first (last) three words heard in the clip. bleed: it is, but a word was heard before (after) it: the neighbour's.
// A defect is either. Heard words go to the clip their middle falls in; a clip heard empty (parakeet sometimes skips
// a file's tail) is left out of every comparison it's in. Paired comparisons are A against each arm on the same edges
// (an exact sign test on the edges where they differ); B cuts different spans and is only compared overall.
// Then: does "no pause beside the edge" (joins.ts) find the defects, and does a gap in the transcript?
import { readFileSync } from "node:fs";
import { wordsOf } from "../../src/heard.ts";
const out = process.argv[2];
if (!out) throw new Error("judge.ts OUT");
type Clip = { take: string; a: number; b: number; at: number; len: number; want?: [number, number]; q?: [boolean, boolean] };
const clips = JSON.parse(readFileSync(`${out}/clips.json`, "utf8")) as Record<string, Clip[]>;
const words = JSON.parse(readFileSync(`${out}/words.json`, "utf8")) as Record<string, { text: string; from: number; to: number }[]>;
const norm = (s: string) => s.toLowerCase().replace(/[^\p{L}\p{N}']/gu, "");
const FILL = new Set(["uh", "um", "uhm", "mm", "hmm", "er", "ah", "oh"]);
const real = (n: string) => !!n && !FILL.has(n);
type Edge = { lost: boolean; bleed: boolean; quiet?: boolean; gap?: number } | null;
const graded: Record<string, Edge[]> = {};
for (const [key, cs] of Object.entries(clips)) {
const heard = JSON.parse(readFileSync(`${out}/heard/${key}.json`, "utf8")) as { sentences: { tokens: { text: string; start: number; end: number }[] }[] };
const byClip = cs.map(() => [] as string[]);
for (const w of heard.sentences.flatMap((s) => wordsOf(s.tokens))) {
const n = norm(w.text);
if (!real(n)) continue;
const m = (w.start + w.end) / 2;
const k = cs.findIndex((c) => m >= c.at - 0.3 && m < c.at + c.len + 0.3);
if (k >= 0) byClip[k].push(n);
}
graded[key] = cs.flatMap((c, i) => {
const ws = words[c.take];
const span = c.want ? ws.slice(c.want[0], c.want[1] + 1) : ws.filter((w) => (w.from + w.to) / 2 >= c.a && (w.from + w.to) / 2 <= c.b);
const exp = span.map((w) => norm(w.text)).filter(real);
return [0, 1].map((side): Edge => {
if (!exp.length || !byClip[i].length) return null;
const want = side === 0 ? exp[0] : exp[exp.length - 1];
const seq = side === 0 ? byClip[i] : [...byClip[i]].reverse();
const k = seq.slice(0, 3).indexOf(want);
const gap = c.want && (side === 0 ? (c.want[0] > 0 ? ws[c.want[0]].from - ws[c.want[0] - 1].to : 9) : (c.want[1] + 1 < ws.length ? ws[c.want[1] + 1].from - ws[c.want[1]].to : 9));
return { lost: k < 0, bleed: k > 0, quiet: c.q?.[side], gap };
});
});
}
const pct = (x: number, n: number) => `${((100 * x) / Math.max(1, n)).toFixed(1)}%`;
const arms = [...new Set(Object.keys(graded).map((k) => k.split("-")[0]))].sort();
console.log("Overall (every judged edge of each arm)");
for (const arm of arms) {
const e = Object.entries(graded).filter(([k]) => k.startsWith(`${arm}-`)).flatMap(([, v]) => v).filter((x): x is NonNullable<Edge> => !!x);
const [l, b] = [e.filter((x) => x.lost).length, e.filter((x) => x.bleed).length];
console.log(` ${arm} ${String(e.length).padStart(4)} edges lost ${pct(l, e.length).padStart(6)} bleed ${pct(b, e.length).padStart(6)} defects ${pct(l + b, e.length).padStart(6)}`);
}
console.log("Sentence picks only (where B, which cuts by sentence, can be compared)");
for (const arm of arms) {
const e = Object.entries(graded).filter(([k]) => k.startsWith(`${arm}-`) && !k.endsWith("-2")).flatMap(([, v]) => v).filter((x): x is NonNullable<Edge> => !!x);
const [l, b] = [e.filter((x) => x.lost).length, e.filter((x) => x.bleed).length];
console.log(` ${arm} ${String(e.length).padStart(4)} edges lost ${pct(l, e.length).padStart(6)} bleed ${pct(b, e.length).padStart(6)} defects ${pct(l + b, e.length).padStart(6)}`);
}
/** exact two-sided sign test */
function sign(x: number, y: number) {
const n = x + y;
let p = 0;
let c = 1;
for (let i = 0; i <= n; i++) {
if (i <= Math.min(x, y)) p += c;
c = (c * (n - i)) / (i + 1);
}
return Math.min(1, (2 * p) / 2 ** n);
}
console.log("\nPaired against A (same spans; edges where exactly one of the two has the defect)");
for (const arm of arms.filter((a) => a !== "A" && a !== "B")) {
const row: string[] = [];
for (const f of ["lost", "bleed"] as const) {
let [onlyA, onlyX] = [0, 0];
for (const [k, va] of Object.entries(graded)) {
if (!k.startsWith("A-")) continue;
const vx = graded[arm + k.slice(1)];
va.forEach((a, i) => {
const x = vx?.[i];
if (!a || !x) return;
if (a[f] && !x[f]) onlyA++;
if (!a[f] && x[f]) onlyX++;
});
}
row.push(`${f}: A only ${onlyA}, ${arm} only ${onlyX} (p=${sign(onlyA, onlyX).toFixed(3)})`);
}
console.log(` ${arm} ${row.join(" ")}`);
}
console.log("\nDo flags find A's defects?");
const ea = Object.entries(graded).filter(([k]) => k.startsWith("A-")).flatMap(([, v]) => v).filter((x): x is NonNullable<Edge> => !!x);
const defects = ea.filter((e) => e.lost || e.bleed).length;
const flag = (name: string, f: (e: NonNullable<Edge>) => boolean) => {
const fl = ea.filter(f);
const hit = fl.filter((e) => e.lost || e.bleed).length;
const rest = ea.length - fl.length;
console.log(` ${name.padEnd(30)} flags ${pct(fl.length, ea.length).padStart(6)} of edges, finds ${pct(hit, defects).padStart(6)} of defects; defects ${pct(hit, fl.length)} flagged vs ${pct(defects - hit, rest)} not`);
};
flag("no pause beside it (joins.ts)", (e) => e.quiet === false);
for (const g of [0.05, 0.1]) flag(`transcript gap under ${g} s`, (e) => (e.gap ?? 9) < g);
-42
View File
@@ -1,42 +0,0 @@
#!/bin/bash
# The joins bench: real talking takes cut five ways by raea cut's edges and the ones tried against them, every clip
# heard again by parakeet-mlx, every edge graded (bench.ts says the arms, judge.ts the grades). It decided what
# `raea cut` measures (src/joins.ts) against docs/keep-or-replace.md's rubric; rerun it when either changes.
#
# engine/cli/bench/joins/run.sh DATA [OUT]
#
# DATA holds each take as TAKE.wav (16 kHz mono 16-bit: `raea media audio TAKE --rate 16000 --mono -o TAKE.wav`) beside
# its TAKE.words.json (raea cut's transcript). Takes are a person's footage: DATA and OUT stay outside the repository,
# and so do the numbers per take (the rubric doc keeps only totals). OUT defaults to DATA/out.
# Needs bun and parakeet-mlx (tools/ensure.sh parakeet-mlx). Hearing runs a few files at a time and picks up where it
# stopped, so a run the memory guard ends can be started again.
set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd)
root=$(cd "$here/../../../.." && pwd)
data=$(cd "${1:?run.sh DATA [OUT]}" && pwd)
out=${2:-$data/out}
mkdir -p "$out/heard"
out=$(cd "$out" && pwd)
case "$out/" in "$root"/*) echo "run.sh: OUT ($out) is inside the repository; keep a person's takes and numbers out of it" >&2; exit 2 ;; esac
takes=()
for w in "$data"/*.words.json; do
t=$(basename "$w" .words.json)
[ -f "$data/$t.wav" ] && takes+=("$t")
done
[ ${#takes[@]} -gt 0 ] || { echo "run.sh: no TAKE.wav beside a TAKE.words.json in $data" >&2; exit 2; }
bun "$here/bench.ts" "$data" "$out" "${takes[@]}"
parakeet=$(command -v parakeet-mlx || bash "$root/tools/ensure.sh" parakeet-mlx)
while :; do
todo=()
for f in "$out"/*.wav; do
k=$(basename "$f" .wav)
[ -f "$out/heard/$k.json" ] || todo+=("$f")
done
[ ${#todo[@]} -eq 0 ] && break
"$parakeet" "${todo[@]:0:8}" --output-format json --output-dir "$out/heard" > /dev/null
done
bun "$here/judge.ts" "$out"
-135
View File
@@ -1,135 +0,0 @@
// `raea cut` reads the take's sound to say which cuts have no pause to sit in (src/joins.ts): a gap in the transcript
// isn't a pause until the recording is quiet there. The takes are synthetic: tone bursts for words over a low hiss.
import { describe, expect, test } from "bun:test";
import { edgesOf, joinsOf, levelsOf, levelsOfWav, type Word } from "../src/joins.ts";
const RATE = 16000;
/** A take: hiss at -60 dBFS throughout, a 220 Hz tone at -12 dBFS from each [from, to] */
function take(seconds: number, sounds: [number, number][]): Int16Array {
const pcm = new Int16Array(seconds * RATE);
let seed = 1;
for (let i = 0; i < pcm.length; i++) {
seed = (seed * 1103515245 + 12345) % 2 ** 31;
const t = i / RATE;
const hiss = (seed / 2 ** 31 - 0.5) * 2 * 0.001;
const tone = sounds.some(([a, b]) => t >= a && t < b) ? 0.25 * Math.sin(2 * Math.PI * 220 * t) : 0;
pcm[i] = Math.round((hiss + tone) * 32767);
}
return pcm;
}
function wav(pcm: Int16Array, channels = 1): Uint8Array {
const n = pcm.length * channels;
const b = new Uint8Array(44 + n * 2);
const v = new DataView(b.buffer);
const s = (o: number, t: string) => [...t].forEach((c, i) => v.setUint8(o + i, c.charCodeAt(0)));
s(0, "RIFF"); v.setUint32(4, 36 + n * 2, true); s(8, "WAVE"); s(12, "fmt ");
v.setUint32(16, 16, true); v.setUint16(20, 1, true); v.setUint16(22, channels, true); v.setUint32(24, RATE, true);
v.setUint32(28, RATE * 2 * channels, true); v.setUint16(32, 2 * channels, true); v.setUint16(34, 16, true);
s(36, "data"); v.setUint32(40, n * 2, true);
// the first channel is the take; any other is silent
for (let i = 0; i < pcm.length; i++) v.setInt16(44 + i * 2 * channels, pcm[i], true);
return b;
}
// four words: "one" and "two" said straight on, a pause, then "three" "four" straight on. The transcript's tokens abut
// throughout, as parakeet's do, so its gaps can't tell the pause from the run-on, and it starts "three" at 1.3 s where
// the take is still quiet until 1.6 s
const words: Word[] = [
{ text: "one", from: 0.5, to: 0.9 },
{ text: "two", from: 0.9, to: 1.3 },
{ text: "three", from: 1.3, to: 2.0 },
{ text: "four", from: 2.0, to: 2.4 },
];
const sounds: [number, number][] = [[0.5, 1.3], [1.6, 2.0], [2.0, 2.4]];
describe("raea cut's joins: a cut with no pause beside it is said", () => {
const lv = levelsOf(take(3, sounds), RATE);
test("the take's quiet line sits between its hiss and its words", () => {
expect(lv.floor).toBeLessThan(-55);
expect(lv.quiet).toBeGreaterThan(lv.floor);
expect(lv.quiet).toBeLessThan(-30);
});
test("a cut placed in the pause before a word the transcript starts early is fine", () => {
// word times alone: nothing quiet between the middle of "two" and where the transcript starts "three"
expect(joinsOf(words, [[2, 3]], lv).quiet[0][0]).toBe(false);
// raea cut puts that edge on the frame after 1.3 s, inside the quiet the transcript gave to "three"
const placed = joinsOf(words, [[2, 3]], lv, [[40 / 30, 2.6]]);
expect(placed.quiet).toEqual([[true, true]]);
expect(placed.notes).toEqual([]);
});
test("a line that starts on a word said straight on from the last is noted, both words named", () => {
const { quiet, notes } = joinsOf(words, [[1, 1]], lv);
expect(quiet[0][0]).toBe(false);
expect(notes[0]).toContain(`"two" at 0.90 s follows "one" with no pause in the take`);
expect(notes[0]).toContain("start the line where the take pauses");
});
test("an end that runs on into the next word is noted; an end before a pause isn't", () => {
const runsOn = joinsOf(words, [[2, 2]], lv, [[40 / 30, 2.0]]);
expect(runsOn.quiet).toEqual([[true, false]]);
expect(runsOn.notes).toHaveLength(1);
expect(runsOn.notes[0]).toContain(`"three" at 2.00 s runs on into "four"`);
expect(joinsOf(words, [[0, 1]], lv).quiet[0][1]).toBe(true);
});
test("the take's own start and end count as quiet", () => {
expect(joinsOf(words, [[0, 3]], lv).quiet).toEqual([[true, true]]);
});
test("a WAV reads as its PCM does, and a stereo WAV by its first channel", () => {
const pcm = take(1, [[0.2, 0.6]]);
const mono = levelsOfWav(wav(pcm));
const stereo = levelsOfWav(wav(pcm, 2));
const direct = levelsOf(pcm, RATE);
expect(Array.from(mono.db)).toEqual(Array.from(direct.db));
expect(Array.from(stereo.db)).toEqual(Array.from(direct.db));
});
test("a WAV that isn't 16-bit PCM is refused, not misread", () => {
const b = wav(take(1, []));
new DataView(b.buffer).setUint16(34, 24, true);
expect(() => levelsOfWav(b)).toThrow("16-bit PCM");
});
});
describe("raea cut's edges: where each cut goes, from the word times", () => {
const ws: Word[] = [
{ text: "so", from: 1.0, to: 1.2 },
{ text: "we", from: 1.5, to: 1.7 },
{ text: "went", from: 1.7, to: 2.1 },
{ text: "Um.", from: 3.0, to: 3.0 },
{ text: "home", from: 3.4, to: 3.9 },
];
test("a share of the gap either side, the grid inward: as raea cut has always placed them", () => {
// "we went": 0.3 s before (lead 0.12), 0.9 s after (tail 0.22, not the last span); "home": the last, 0.6 s tail
expect(edgesOf(ws, [[1, 2], [4, 4]], 30)).toEqual([
[Math.ceil(1.38 * 30) / 30, Math.floor(2.32 * 30) / 30],
[Math.ceil((3.4 - 0.12) * 30) / 30, Math.floor(4.25 * 30) / 30],
]);
});
test("words that abut get no lead-in, and the grid can start the cut after the word's own start", () => {
// the bench's lost first words: "went" follows "we" with no transcript gap
const [[a]] = edgesOf([{ text: "we", from: 1.5, to: 1.71 }, { text: "went", from: 1.71, to: 2.1 }], [[1, 1]], 30);
expect(a).toBeGreaterThan(1.71);
});
test("a word the transcript gives no length is a frame long, never a cut that ends before it starts", () => {
// off the grid with its neighbours abutting, as in the bench: inward rounding put the end a frame before the start
const um: Word[] = [{ text: "so", from: 2.5, to: 3.01 }, { text: "Um.", from: 3.01, to: 3.01 }, { text: "right", from: 3.01, to: 3.5 }];
const [[a, b]] = edgesOf(um, [[1, 1]], 30);
expect(a).toBeCloseTo(91 / 30, 9);
expect(b - a).toBeCloseTo(1 / 30, 9);
});
test("a jump cut in the take near the start: the cut starts one take frame after it", () => {
const [[a]] = edgesOf(ws, [[1, 2]], 30, [1.4]);
expect(a).toBeCloseTo(Math.ceil((1.4 + 1 / 30) * 30) / 30, 9);
});
});
-131
View File
@@ -1,131 +0,0 @@
// Whether a cut around a run of words has quiet to sit in, read from the recording (`raea cut`, native.ts).
//
// A transcript's gaps say nothing about pauses: parakeet's tokens abut, so 90% of the edges `raea cut` placed on five
// talking takes had a transcript gap under 0.05 s, pause or not. The take's level does say: an edge with no quiet
// stretch between it and the word beside it had a defect (its own word clipped, or the neighbour's heard) on 34% of
// 142 edges, against 8% of 210 with quiet; it held three quarters of all defects (bench: engine/cli/bench/joins).
//
// So this measures and reports; it moves nothing. Moving an edge where the speaker runs straight on only traded a
// clipped word for the next one's sound in the same bench, and measured edges where there was quiet changed nothing
// either. What helps such a join is a different line boundary, which is the agent's call (Scarlet's rule: the tool
// measures, the model decides, code overrides only for safety).
/** A word in the take's seconds */
export type Word = { text: string; from: number; to: number };
/** The take's level in dB every HOP seconds, and the line under which it counts as quiet */
export type Levels = { db: Float32Array; floor: number; quiet: number };
export const HOP = 0.01;
const WIN = 0.02;
/** quiet this long counts as a pause */
const MIN_RUN = 4;
/** Levels of 16-bit mono PCM at `rate` Hz: RMS over 20 ms every 10 ms; quiet is under the floor (10th percentile)
* plus a share of the room up to speech (90th percentile), 6 to 15 dB. */
export function levelsOf(pcm: Int16Array, rate: number): Levels {
const hop = Math.round(rate * HOP);
const half = Math.round((rate * WIN) / 2);
const n = Math.max(1, Math.ceil(pcm.length / hop));
const db = new Float32Array(n);
for (let k = 0; k < n; k++) {
const c = k * hop + (hop >> 1);
const [a, b] = [Math.max(0, c - half), Math.min(pcm.length, c + half)];
let s = 0;
for (let i = a; i < b; i++) s += (pcm[i] / 32768) ** 2;
db[k] = 10 * Math.log10(s / Math.max(1, b - a) + 1e-12);
}
const sorted = Float32Array.from(db).sort();
const floor = sorted[Math.floor(n * 0.1)];
const loud = sorted[Math.floor(n * 0.9)];
return { db, floor, quiet: floor + Math.min(15, Math.max(6, (loud - floor) * 0.3)) };
}
/** A WAV file's levels (16-bit PCM; the first channel when there are more) */
export function levelsOfWav(bytes: Uint8Array): Levels {
const v = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
let p = 12;
let rate = 16000;
let channels = 1;
while (p + 8 <= v.byteLength) {
const id = String.fromCharCode(...bytes.subarray(p, p + 4));
const size = v.getUint32(p + 4, true);
if (id === "fmt ") {
if (v.getUint16(p + 8, true) !== 1 || v.getUint16(p + 22, true) !== 16) throw new Error("levelsOfWav reads 16-bit PCM WAV only");
channels = v.getUint16(p + 10, true);
rate = v.getUint32(p + 12, true);
} else if (id === "data") {
const frames = Math.floor(Math.min(size, v.byteLength - p - 8) / (2 * channels));
const pcm = new Int16Array(frames);
for (let i = 0; i < frames; i++) pcm[i] = v.getInt16(p + 8 + i * 2 * channels, true);
return levelsOf(pcm, rate);
}
p += 8 + size + (size & 1);
}
throw new Error("levelsOfWav: no data chunk");
}
/** Whether every hop from `a` to `b` seconds is quiet (the take's own start and end count as quiet) */
function quietThrough(lv: Levels, a: number, b: number): boolean {
for (let k = Math.floor(a / HOP); k <= Math.floor(b / HOP); k++) if (k >= 0 && k < lv.db.length && lv.db[k] >= lv.quiet) return false;
return true;
}
/** Whether there's a pause (MIN_RUN quiet hops in a row) anywhere from `a` to `b` seconds */
function pauseIn(lv: Levels, a: number, b: number): boolean {
let run = 0;
for (let k = Math.floor(a / HOP); k <= Math.floor(b / HOP); k++) {
const quiet = k < 0 || k >= lv.db.length || lv.db[k] < lv.quiet;
run = quiet ? run + 1 : 0;
if (run >= MIN_RUN) return true;
}
return false;
}
/** For each span of words [i, j] (indices into `ws`), whether its start and its end have a pause beside them: back from
* the first word's start to the middle of the word before, and on from the last word's end to the middle of the word
* after (0.8 s and 1.2 s at most, and the take's own start and end count as quiet). A note for each that doesn't,
* saying what the join may play and what to do. With `edges` (where each span's cut was placed, in seconds), an edge
* that sits in quiet itself (10 ms either side) is fine whatever the words do: the transcript can start a word before
* its sound, and the pause is then inside it. */
export function joinsOf(ws: Word[], spans: [number, number][], lv: Levels, edges?: [number, number][]): { quiet: [boolean, boolean][]; notes: string[] } {
const mid = (w: Word) => (w.from + w.to) / 2;
const said = (k: number) => `"${ws[k].text}"`;
const notes: string[] = [];
const sits = (t: number | undefined) => t !== undefined && quietThrough(lv, t - 0.01, t + 0.01);
const quiet = spans.map(([i, j], s): [boolean, boolean] => {
const first = ws[i];
const last = ws[j];
const before = i === 0 || sits(edges?.[s][0]) || pauseIn(lv, Math.max(mid(ws[i - 1]), first.from - 0.8), first.from);
const after = j + 1 === ws.length || sits(edges?.[s][1]) || pauseIn(lv, last.to, Math.min(mid(ws[j + 1]), last.to + 1.2));
if (!before)
notes.push(`${said(i)} at ${first.from.toFixed(2)} s follows ${said(i - 1)} with no pause in the take: the cut may clip ${said(i)} or keep the end of ${said(i - 1)}; start the line where the take pauses, or keep it with the words before`);
if (!after)
notes.push(`${said(j)} at ${last.to.toFixed(2)} s runs on into ${said(j + 1)} with no pause in the take: the cut may clip ${said(j)} or keep the start of ${said(j + 1)}; end the line where the take pauses, or keep it with the words after`);
return [before, after];
});
return { quiet, notes };
}
/** Where `raea cut` puts each span's cut, from the word times: a share of the gap to the word either side (transcript
* word ends run early, so a generous tail, more on the last span, and a short lead-in), off the take's own jump cuts
* (`cuts`, in seconds), on the take's frame grid, a frame long at least. Measured placement was tried against this and
* changed nothing a listener hears (bench 11-22), so the sound decides what's reported (joinsOf), not where cuts go. */
export function edgesOf(ws: Word[], spans: [number, number][], fps: number, cuts: number[] = []): [number, number][] {
const sf = 1 / fps;
return spans.map(([i, j], k): [number, number] => {
const before = i > 0 ? ws[i].from - ws[i - 1].to : 0.4;
const after = j + 1 < ws.length ? ws[j + 1].from - ws[j].to : 0.6;
let a = ws[i].from - Math.min(before * 0.6, 0.12);
let b = ws[j].to + Math.min(after * 0.7, k + 1 === spans.length ? 0.35 : 0.22);
// a jump cut in the take near a join: start one take frame after it (or end one before), never on it, or the
// other shot's last frame can show
const ca = cuts.find((c) => Math.abs(c - a) <= 0.25 && c <= ws[i].from + 0.05);
if (ca !== undefined) a = Math.max(a, ca + sf);
const cb = cuts.find((c) => Math.abs(c - b) <= 0.25 && c >= ws[j].to - 0.05);
if (cb !== undefined) b = Math.min(b, cb - sf);
// a word the transcript gives no length ("Um.") rounded inward ended before it started (bench 11-22): a frame at least
const from = Math.ceil(Math.max(a, 0) * fps) / fps;
return [from, Math.max(from + sf, Math.floor(b * fps) / fps)];
});
}
+17 -24
View File
@@ -10,7 +10,6 @@ import { basename, delimiter, dirname, extname } from "node:path";
import { brandKit, pixelsOf } from "./brand";
import { readSite, stylesOf } from "./scrape";
import { wordsOf } from "./heard";
import { edgesOf, joinsOf, levelsOfWav, type Levels } from "./joins";
import { harness, library, show, task } from "./app";
import { fromCwd } from "./show";
import { clothesHost } from "./wardrobe";
@@ -99,18 +98,6 @@ function ensure(name: string): string {
return r.status === 0 && r.stdout.trim() ? r.stdout.trim() : name;
}
/** The take's level every 10 ms (joins.ts), from its sound at 16 kHz mono; undefined when it has none to read */
function levelsOfTake(take: string): Levels | undefined {
const dir = mkdtempSync(`${tmpdir()}/raea-levels-`);
try {
const wav = `${dir}/take.wav`;
const a = spawnSync(raea, ["media", "audio", at(take), "--rate", "16000", "--mono", "-o", wav], { encoding: "utf8" });
return a.status === 0 && existsSync(wav) ? levelsOfWav(new Uint8Array(readFileSync(wav))) : undefined;
} finally {
rmSync(dir, { recursive: true, force: true });
}
}
function hearTake(take: string, out: string) {
// parakeet-mlx is Apple silicon's (MLX); elsewhere raea has no transcriber yet, so the two ways that work there
if (process.platform !== "darwin")
@@ -143,11 +130,9 @@ function cutPlan(take: string, ws: Word[], lines: string[]): { plan: [number, nu
let from = 0;
const spans: [number, number][] = [];
const notes: string[] = [];
// every line that can't be cut is named at once, so an agent fixes them in one go (Scarlet: errors name all that failed)
const misses: string[] = [];
lines.forEach((line, k) => {
const want = norm(line).split(/\s+/).filter(Boolean);
if (!want.length) return void misses.push(`line ${k + 1} is empty`);
if (!want.length) throw new Error(`line ${k + 1} is empty`);
const fits = (i: number) => want.every((t, o) => toks[i + o] === t);
const close = () => {
const n = want.length;
@@ -166,7 +151,7 @@ function cutPlan(take: string, ws: Word[], lines: string[]): { plan: [number, nu
const i = exact ?? close();
if (i === undefined) {
const near = toks.flatMap((t, n) => (t === want[0] ? [ws.slice(n, n + 10).map((w) => w.text).join(" ")] : [])).slice(0, 3);
return void misses.push(`line ${k + 1} isn't in the transcript word for word: "${line}"; it says near there: ${near.length ? near.join(" | ") : "(no match for its first word)"}`);
throw new Error(`line ${k + 1} isn't in the transcript word for word: "${line}"; it says near there: ${near.length ? near.join(" | ") : "(no match for its first word)"}`);
}
const j = Math.min(i + want.length - 1, toks.length - 1);
if (exact === undefined) notes.push(`line ${k + 1} isn't said word for word; cut where the take says "${ws.slice(i, j + 1).map((w) => w.text).join(" ")}"`);
@@ -175,13 +160,21 @@ function cutPlan(take: string, ws: Word[], lines: string[]): { plan: [number, nu
if (last && last[1] + 1 === i) last[1] = j;
else spans.push([i, j]);
});
if (misses.length) throw new Error(misses.join("\n"));
const edges = edgesOf(ws, spans, fps, cuts);
const plan = spans.map(([i, j], k): [number, number, string] => [...edges[k], ws.slice(i, j + 1).map((w) => w.text).join(" ")]);
// each edge with no pause beside it in the take, said (joins.ts): those joins hold most of the clipped words
const lv = levelsOfTake(take);
if (lv) notes.push(...joinsOf(ws, spans, lv, edges).notes);
else notes.push(`couldn't read ${take}'s sound to check that each cut sits in a pause`);
const sf = 1 / fps;
const plan = spans.map(([i, j], k): [number, number, string] => {
const before = i > 0 ? ws[i].from - ws[i - 1].to : 0.4;
const after = j + 1 < ws.length ? ws[j + 1].from - ws[j].to : 0.6;
// transcript word ends run early: a generous tail (more on the last line), a short lead-in, both inside the pause
let a = ws[i].from - Math.min(before * 0.6, 0.12);
let b = ws[j].to + Math.min(after * 0.7, k + 1 === spans.length ? 0.35 : 0.22);
// a jump cut in the take near a join: start one take frame after it (or end one before), never on it, or the
// other shot's last frame can show
const ca = cuts.find((c) => Math.abs(c - a) <= 0.25 && c <= ws[i].from + 0.05);
if (ca !== undefined) a = Math.max(a, ca + sf);
const cb = cuts.find((c) => Math.abs(c - b) <= 0.25 && c >= ws[j].to - 0.05);
if (cb !== undefined) b = Math.min(b, cb - sf);
return [Math.ceil(Math.max(a, 0) * fps) / fps, Math.floor(b * fps) / fps, ws.slice(i, j + 1).map((w) => w.text).join(" ")];
});
return { plan, notes };
}
+1
View File
@@ -1,6 +1,7 @@
#!/bin/bash
# The models raea runs on Linux, from this Mac into the Modal volume raea-models (docs/cloud-render.md, "Models"), for
# the farm's GPUs and a cloud box to mount instead of fetching them on each cold start:
# (what's here is the cloud side of zoo/zoo.tsv: every model sent has a cloud row there, zoo/README.md)
#
# MODAL_PROFILE=raea deploy/modal/models.sh # stage and upload
# deploy/modal/models.sh --dry # stage only, and list what would go
+5
View File
@@ -20,6 +20,11 @@ anyhow = "1"
# models fetched once from Hugging Face into the model cache (models.rs)
ureq = "2"
# ureq is used by zoo/rust/models.rs, which src/lib.rs takes in through #[path] from the zoo (zoo/README.md), where
# cargo-shear doesn't look
[package.metadata.cargo-shear]
ignored = ["ureq"]
# Windows x64: ONNX Runtime is loaded from onnxruntime.dll beside the executable when a model first runs, never linked
# in (#110; tools/release/onnxruntime.sh ships Microsoft's build). The static runtime ort downloads is built for AVX2, and
# its static initializers ran before main, so raea.exe stopped at start on any CPU without AVX2 or BMI2.
+2
View File
@@ -31,6 +31,8 @@ use ort::value::{DynValue, Tensor as OrtTensor, TensorElementType, ValueType};
pub use half;
pub mod feed;
mod jobs;
// the model zoo's Rust API lives with the zoo (zoo/README.md): raea_sys_ml::models is zoo/rust/models.rs
#[path = "../../../zoo/rust/models.rs"]
pub mod models;
pub use jobs::{job_key, poll, request, result};
+1
View File
@@ -1,6 +1,7 @@
# The models a release packs, downloaded by .github/workflows/release.yml into ~/.local/share/raea-models (path, URL,
# sha256; tab-separated). The URL is an asset of the public repository's models-1 release, uploaded once at the cutover
# (docs/public-first.feature PF5); the sha256 is of the copy tools/release.sh packs on the release Mac.
# Each model packed here has its desktop rows in zoo/zoo.tsv (zoo/README.md): the zoo says what runs where, this says how it ships.
# Beat This! small0 (MIT, github.com/CPJKU/beat_this), converted to ONNX for raea song
beat-this/beat_this_small0.onnx https://github.com/shinyobjectz/raea/releases/download/models-1/beat_this_small0.onnx 3f650a9f36d708d575808220a2874b0b84cf402db645b7eac2d9069a53642d4b
# raea fix's library (systems/fixes): ~46,500 problem -> fix entries from MIT, Apache-2.0, BSD, CC0 and ClawHub (MIT-0)
1 # The models a release packs, downloaded by .github/workflows/release.yml into ~/.local/share/raea-models (path, URL,
2 # sha256; tab-separated). The URL is an asset of the public repository's models-1 release, uploaded once at the cutover
3 # (docs/public-first.feature PF5); the sha256 is of the copy tools/release.sh packs on the release Mac.
4 # Each model packed here has its desktop rows in zoo/zoo.tsv (zoo/README.md): the zoo says what runs where, this says how it ships.
5 # Beat This! small0 (MIT, github.com/CPJKU/beat_this), converted to ONNX for raea song
6 beat-this/beat_this_small0.onnx
7 # raea fix's library (systems/fixes): ~46,500 problem -> fix entries from MIT, Apache-2.0, BSD, CC0 and ClawHub (MIT-0)
+70
View File
@@ -0,0 +1,70 @@
# zoo: every model raea runs, managed in one place
Shane, 12-06: one place for every model, split by where it's delivered, so no one confuses again where a model runs
or where it's referenced. The targets can differ completely (model, size, quantisation, runtime), but they're managed
here, side by side.
| file | what |
|---|---|
| `zoo.tsv` | the catalog: one row per model and target. Nothing about a model (weights, runtime, where it lives, licence) is written down anywhere else |
| `check.sh` | the rules below, checked; `--code` also lists model ids in code that no row names |
| `python/raea_zoo.py` | the Python API: which model this target runs, from where, on what device; refuses a model with no row |
| `rust/models.rs` | the Rust API, built into `raea-sys-ml` as `raea_sys_ml::models` (fetch once, the model folders) |
## Targets
| target | what it is | where models live |
|---|---|---|
| `cloud` | Modal: the render farm and cloud boxes (`sdk/cloud/deploy/modal`), and projects' Modal apps (unrender's `raea-unrender`) | volume `raea-models` (`/raea`, `/feed`, `/library`, uploaded by `sdk/cloud/deploy/modal/models.sh`); a project's own volumes |
| `mac` | the desktop app and CLI on Apple silicon: Core ML and MLX allowed | `~/.local/share/raea-models` (perception), `~/.cache/raea-feed/models` (fetched on first use), `~/.raea/models` (the app library) |
| `windows` | the desktop app and CLI on Windows | the same folders, ONNX Runtime from `onnxruntime.dll` beside the exe |
| `linux` | the CLI on Linux | the same folders |
`desktop` in a row means mac+windows+linux with one build. Split it the moment one OS runs something different.
## Rules
1. **A model runs only if it has a row for the target it runs on.** Code asks the zoo (`raea_zoo.use(key)` from
Python; the Rust API's folders from Rust). A model id in code with no row fails `check.sh --code --strict`.
2. **Every model says something for every target.** Each key's rows cover cloud, mac, windows and linux once each. A
target it never runs on gets a row with state `none` and why. A project that is cloud-and-Mac only says so once in a
`project/*` row.
3. **Parity: a change on one target is decided on the others.** All of a key's rows carry the same `reviewed` date.
Change the cloud row and the check fails until you've looked at the desktop rows and dated them too: the same
model, a different build (MLX for CUDA, int8 for bf16), or `none` or `planned` with the reason. Desktop work owes the
cloud the same. A note with `parity owed` lists what's still open; `check.sh` prints them.
4. **Delivery stays in its one place.** What a release packs is `tools/release/models.tsv` (URL and sha256); what goes
up to Modal is `sdk/cloud/deploy/modal/models.sh`. Both carry only models with a row here for that target.
## Columns of zoo.tsv
`key targets state runtime weights where licence reviewed note`, tab-separated.
- **key**: `project/model`. `raea/...` is the engine and its apps; `unrender/...` is `projects/unrender` in the
workspace repo (raea-2). The same weights used by two projects are two keys: each project decides its own targets.
- **state**: `ships` (in a release or a deploy), `dev` (a project's pipeline), `bench` (a bake-off arm), `planned`,
`none`, `found` (in code, use not traced yet).
- **reviewed**: the date a person last decided the key on every target, or `unverified` (filled in from code without
checking every target; the check counts them, and each one is worth tracing).
## Using it
```bash
zoo/check.sh --code # the rules, and model ids in code with no row
python3 zoo/python/raea_zoo.py unrender # unrender's models on this machine
python3 zoo/python/raea_zoo.py unrender --target cloud
```
```python
sys.path.insert(0, os.environ.get("RAEA_ZOO", os.path.expanduser("~/raea/zoo")) + "/python")
import raea_zoo as zoo
row = zoo.use("unrender/whisper") # this target's row; RuntimeError if it doesn't run here
dev = zoo.device() # cuda in the cloud, mps on a Mac
```
A Modal image that runs zoo-managed code adds the folder: `.add_local_dir(Path.home() / "raea" / "zoo", "/root/zoo")`
and `RAEA_ZOO=/root/zoo`.
Not models, so not here: data files that ship beside them (`fixes/fixes-library.db`, packed by the release), and chat or
image services reached over the network (Gemini, GPT, fal), which are the providers'. Hosted models we call for a
pipeline result (Whisper on OpenRouter or Groq) are rows, with their target's `where` naming the provider.
Executable
+82
View File
@@ -0,0 +1,82 @@
#!/bin/bash
# zoo/check.sh: the zoo's rules (zoo/README.md), checked on zoo/zoo.tsv.
#
# zoo/check.sh the rules: fails on a broken one
# zoo/check.sh --code also lists model ids found in code (raea, and projects/unrender when it's here) that no
# row names; --strict makes any of those a failure too
#
# Rules: every row has 9 columns, known targets and a known state; each key's rows (with its project's project/* row
# for the targets they leave) cover cloud, mac, windows and linux once each; all of a key's own rows carry the same
# reviewed value (the parity rule: a change on one target is decided on the others the same day).
set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd)
tsv="$here/zoo.tsv"
code=0 strict=0
for a in "$@"; do
case $a in --code) code=1 ;; --strict) code=1 strict=1 ;; *) echo "zoo/check.sh: unknown flag $a" >&2; exit 2 ;; esac
done
awk -F'\t' '
function expand(t, n, i, p, out) {
gsub(/desktop/, "mac+windows+linux", t); n = split(t, p, "+"); out = ""
for (i = 1; i <= n; i++) { if (!(p[i] in OK)) return "?" p[i]; out = out " " p[i] }
return out
}
BEGIN { OK["cloud"]; OK["mac"]; OK["windows"]; OK["linux"]
ST["ships"]; ST["dev"]; ST["planned"]; ST["none"]; ST["found"]; ST["bench"]; bad = 0 }
/^#/ || NF == 0 { next }
{
if (NF != 9) { printf "zoo: line %d (%s) has %d columns, not 9\n", NR, $1, NF; bad = 1; next }
key = $1; t = expand($2)
if (t ~ /\?/) { printf "zoo: line %d (%s): unknown target %s\n", NR, key, substr(t, index(t, "?") + 1); bad = 1; next }
if (!($3 in ST)) { printf "zoo: line %d (%s): unknown state %s\n", NR, key, $3; bad = 1 }
if ($8 != "unverified" && $8 !~ /^20[0-9][0-9]-[01][0-9]-[0-3][0-9]$/) { printf "zoo: line %d (%s): reviewed is %s, not a date or unverified\n", NR, key, $8; bad = 1 }
if ($8 == "unverified") unv[key] = 1
if ($9 ~ /parity owed/) owed[key] = $9
n = split(t, ts, " ")
split(key, kp, "/")
for (i = 1; i <= n; i++) {
if (kp[2] == "*") { wild[kp[1], ts[i]] = 1; continue }
if ((key, ts[i]) in cov) { printf "zoo: %s covers %s twice (line %d)\n", key, ts[i], NR; bad = 1 }
cov[key, ts[i]] = 1
}
if (kp[2] != "*") {
keys[key] = kp[1]
if (key in rev && rev[key] != $8) { printf "zoo: %s: reviewed %s on line %d but %s above: decide every target the same day (parity rule)\n", key, $8, NR, rev[key]; bad = 1 }
rev[key] = $8
}
}
END {
for (k in keys) for (o in OK) if (!((k, o) in cov) && !((keys[k], o) in wild)) { printf "zoo: %s says nothing for %s: add a row (state none, with why, if it never runs there)\n", k, o; bad = 1 }
nk = 0; for (k in keys) nk++
nu = 0; for (k in unv) nu++
printf "zoo: %d models, %d still unverified", nk, nu
no = 0; for (k in owed) no++
printf ", %d with parity owed\n", no
for (k in owed) printf " parity owed: %s: %s\n", k, owed[k]
exit bad
}
' "$tsv"
[ $code = 1 ] || exit 0
# model ids in code that no row's weights column names: Hugging Face repo ids, and folders of the perception store
listed=$(awk -F'\t' '!/^#/ && NF { print $5 " " $6 }' "$tsv")
roots=()
raea=$(cd "$here/.." && pwd)
for d in systems io runtime engine apps sdk core; do [ -d "$raea/$d" ] && roots+=("$raea/$d"); done
unrender=${UNRENDER:-$HOME/Documents/raea/raea/projects/unrender}
for d in footage tools people; do [ -d "$unrender/$d" ] && roots+=("$unrender/$d"); done
orgs='onnx-community|Xenova|mlx-community|facebook|microsoft|google|openai|Qwen|nvidia|kyutai|istupakov|Ruicheng|unsloth|depth-anything|ByteDance|meta-llama|CPJKU|pipecat-ai|apple|pyannote'
missing=$(grep -rhoE "\"($orgs)/[A-Za-z0-9._-]+\"" --include='*.rs' --include='*.ts' --include='*.py' --include='*.sh' \
--exclude-dir=node_modules --exclude-dir=target --exclude-dir=vendor --exclude-dir=.venv "${roots[@]}" 2>/dev/null |
tr -d '"' | sort -u | while read -r id; do grep -qF "$id" <<<"$listed" || echo "$id"; done)
# chat and image APIs reached over the network are services, not models we deliver
missing=$(grep -vE '^(google/gemini|openai/gpt|fal-ai/)' <<<"$missing" || true)
if [ -n "$missing" ]; then
echo "zoo: in code, named by no row:"
sed 's/^/ /' <<<"$missing"
[ $strict = 0 ] || exit 1
else
echo "zoo: every model id in code is in the zoo"
fi
+111
View File
@@ -0,0 +1,111 @@
"""raea's model zoo from Python: the one way Python code asks which model it runs here, from where, and on what device
(zoo/README.md). Everything comes from zoo/zoo.tsv; nothing about a model is written down anywhere else.
import raea_zoo as zoo # sys.path gets $RAEA_ZOO/python (default ~/raea/zoo/python)
zoo.target() # "cloud", "mac", "windows" or "linux"
zoo.entry("unrender/whisper") # this target's row: runtime, weights, where, licence, state, ...
zoo.use("unrender/whisper") # refuses a model with no row here, or one whose row here says none; logs the use
zoo.device() # torch device for this target: cuda in the cloud, mps on a Mac, else cuda or cpu
zoo.models("unrender") # {name: row} of a project's models on this target
python3 zoo/python/raea_zoo.py [PROJECT|KEY ...] [--target T] the rows for a target (default: this machine's)
The target: RAEA_TARGET if set; cloud inside a Modal container (MODAL_TASK_ID) or with UNRENDER_IN_CLOUD=1; else the
machine's OS. A use is logged as a JSON line to $RAEA_ZOO_LOG when it's set (a project points it at a per-run file).
"""
import json, os, platform, sys, time
from pathlib import Path
ZOO = Path(os.environ.get("RAEA_ZOO") or Path(__file__).resolve().parent.parent)
TSV = ZOO / "zoo.tsv"
COLS = ["key", "targets", "state", "runtime", "weights", "where", "licence", "reviewed", "note"]
TARGETS = ("cloud", "mac", "windows", "linux")
_rows = None
def target():
t = os.environ.get("RAEA_TARGET")
if t:
assert t in TARGETS, f"RAEA_TARGET={t}: one of {TARGETS}"
return t
if os.environ.get("MODAL_TASK_ID") or os.environ.get("UNRENDER_IN_CLOUD") == "1":
return "cloud"
return {"Darwin": "mac", "Windows": "windows"}.get(platform.system(), "linux")
def _targets(s):
return set(s.replace("desktop", "mac+windows+linux").split("+"))
def rows():
global _rows
if _rows is None:
_rows = []
for ln in TSV.read_text().splitlines():
if not ln.strip() or ln.startswith("#"):
continue
r = dict(zip(COLS, ln.split("\t")))
r["targets"] = _targets(r["targets"])
_rows.append(r)
return _rows
def entry(key, on=None):
"""key's row for target `on` (default this one): its own row, else its project's project/* row"""
on = on or target()
own = [r for r in rows() if r["key"] == key]
if not own:
raise KeyError(f"{key} isn't in the zoo ({TSV}): add its rows for every target before it runs")
for r in own + [r for r in rows() if r["key"] == key.split("/")[0] + "/*"]:
if on in r["targets"]:
return r
raise KeyError(f"{key} has no row for {on} in {TSV}")
def use(key, on=None):
"""the row this target runs key with; refuses a key not in the zoo, or one whose row here is state none"""
r = entry(key, on)
if r["state"] == "none":
raise RuntimeError(f"{key} doesn't run on {on or target()} ({r['note'] or 'state none in the zoo'})")
log = os.environ.get("RAEA_ZOO_LOG")
if log:
with open(log, "a") as f:
f.write(json.dumps({"model": key, "on": on or target(), "by": Path(sys.argv[0]).name, "t": round(time.time())}) + "\n")
return r
def models(project, on=None):
"""{name: row} of a project's models that have a row (not none) on this target"""
out = {}
for k in dict.fromkeys(r["key"] for r in rows() if r["key"].startswith(project + "/") and not r["key"].endswith("/*")):
r = entry(k, on)
if r["state"] != "none":
out[k.split("/", 1)[1]] = r
return out
def device(mac="mps"):
"""the torch device for this target: CUDA in the cloud; on a Mac what the caller asks for (mps), if it's there"""
import torch
if torch.cuda.is_available():
return "cuda"
if target() == "mac" and mac == "mps" and torch.backends.mps.is_available():
return "mps"
return "cpu"
if __name__ == "__main__":
args = sys.argv[1:]
on = None
if "--target" in args:
i = args.index("--target")
on = args[i + 1]
del args[i:i + 2]
on = on or target()
keys = dict.fromkeys(r["key"] for r in rows() if not r["key"].endswith("/*"))
if args:
keys = [k for k in keys if any(k == a or k.startswith(a + "/") for a in args)]
print(f"target {on} ({TSV})")
for k in keys:
r = entry(k, on)
print(f" {k:28} {r['state']:8} {r['runtime'][:60]:60} {r['weights'][:50]}")
@@ -1,3 +1,6 @@
//! raea's model zoo from Rust (zoo/README.md; built into raea-sys-ml as raea_sys_ml::models). Every model a crate
//! loads has its rows in zoo/zoo.tsv, one per target; zoo/check.sh fails on a model id in code that no row names.
//!
//! Where models' weights live: ~/.cache/raea-feed/models/<name>/ (feed::cache), each file fetched once from Hugging
//! Face. RAEA_FEED_MODELS points somewhere else (a bench, a bundled app).
+106
View File
@@ -0,0 +1,106 @@
# raea's model zoo: every model raea and its projects run, one row per model and target (zoo/README.md has the rules).
# Columns, tab-separated: key targets state runtime weights where licence reviewed note
# key project/model (raea/... is the engine; unrender/... is projects/unrender in raea-2); project/* is every model of the project
# targets cloud, mac, windows, linux joined with +; desktop = mac+windows+linux. A key's rows cover all four, once each
# state ships (in a release or a deploy) dev (a project's pipeline) bench (a bake-off arm, not in the pipeline) planned none (not on that target: the note says why) found (in code, use not traced)
# reviewed the date a person last decided this key on every target; all of a key's rows carry the same one (the parity rule), or unverified
#
# --- unrender (projects/unrender, raea-2): the scene record. Cloud = footage/cloud.py, one ephemeral Modal app raea-unrender on an L40S (UNRENDER_IN_CLOUD=1)
unrender/* windows+linux none - - - - 2026-12-06 unrender runs on Modal and the Mac only (Shane 12-06: every model on Modal for now)
unrender/transnetv2 cloud dev ONNX Runtime CUDA, footage/portable.py (port of raea song's transnet.rs) transnetv2.onnx (soCzech/TransNetV2 @85cef72) volume raea-unrender-models:/raea-models/transnetv2 MIT 2026-12-06 matches the Mac to 0.007, same peaks (gt-dev-0)
unrender/transnetv2 mac dev raea-perceive transnet (Rust, ONNX Runtime) transnetv2.onnx ~/.local/share/raea-models/transnetv2 MIT 2026-12-06
unrender/autoshot cloud dev PyTorch CUDA (footage/autoshot.py) autoshot-pytorch-weights.pth (ShotBench) volume raea-unrender-models:/raea-models/autoshot Apache-2.0 2026-12-06
unrender/autoshot mac dev PyTorch CPU autoshot-pytorch-weights.pth ~/.local/share/raea-models/autoshot Apache-2.0 2026-12-06
unrender/whisper cloud dev openai-whisper, CUDA large-v3-turbo volume raea-molmo3:/whisper MIT 2026-12-06
unrender/whisper mac dev mlx_whisper (MLX) mlx-community/whisper-large-v3-turbo HF cache MIT 2026-12-06
unrender/silero-vad cloud+mac dev silero-vad 6.3 (pip), CPU in the wheel - MIT 2026-12-06
unrender/yamnet cloud dev ONNX Runtime CUDA, footage/portable.py yamnet.onnx volume raea-unrender-models:/raea-models/yamnet Apache-2.0 2026-12-06 differs from the Mac's Core ML on borderline music/noise patches
unrender/yamnet mac dev raea-perceive sound (Core ML) yamnet.onnx ~/.local/share/raea-models/yamnet Apache-2.0 2026-12-06
unrender/resemblyzer cloud dev PyTorch CUDA pretrained.pt (in the wheel) - Apache-2.0 2026-12-06
unrender/resemblyzer mac dev PyTorch CPU pretrained.pt (in the wheel) - Apache-2.0 2026-12-06
unrender/lr-asd cloud dev PyTorch CUDA pretrain_AVA.model vendor/LR-ASD (in the image) MIT (AVA labels CC BY 4.0) 2026-12-06
unrender/lr-asd mac dev PyTorch MPS pretrain_AVA.model vendor/LR-ASD MIT (AVA labels CC BY 4.0) 2026-12-06
unrender/rapidocr cloud+mac dev rapidocr_onnxruntime 1.4.4, CPU PP-OCR det + rec (in the wheel) - Apache-2.0 2026-12-06
unrender/rtmw-x cloud dev rtmlib 0.0.16, ONNX Runtime CUDA rtmw-dw-x-l 384x288 + yolox_m humanart volume raea-molmo3:/rtmlib Apache-2.0 2026-12-06
unrender/rtmw-x mac dev rtmlib, Core ML rtmw-dw-x-l 384x288 + yolox_m humanart ~/.cache/rtmlib Apache-2.0 2026-12-06
unrender/yunet cloud dev OpenCV DNN, CPU face_detection_yunet_2023mar.onnx volume raea-unrender-models:/face/yunet MIT 2026-12-06
unrender/yunet mac dev OpenCV DNN, CPU face_detection_yunet_2023mar.onnx ~/.cache/raea/yunet MIT 2026-12-06
unrender/sface cloud dev OpenCV DNN, CPU face_recognition_sface_2021dec.onnx volume raea-unrender-models:/face/sface Apache-2.0 2026-12-06
unrender/sface mac dev OpenCV DNN, CPU face_recognition_sface_2021dec.onnx ~/.cache/raea/sface Apache-2.0 2026-12-06
unrender/vjepa cloud dev PyTorch CUDA (footage/camera.py, footage/vjmask.py) V-JEPA 2.1 ViT-B encoder_fp16.pt + camera_heads.npz + code volume raea-unrender-models:/raea-models/vjepa2_1-vitb MIT (heads: CameraBench CC BY 4.0) 2026-12-06
unrender/vjepa mac dev PyTorch MPS encoder_fp16.pt + camera_heads.npz ~/.local/share/raea-models/vjepa2_1-vitb MIT (heads: CameraBench CC BY 4.0) 2026-12-06
unrender/moge2 cloud dev PyTorch CUDA, in-process (people/moge_modal.py Geo) Ruicheng/moge-2-vitl-normal volume raea-molmo3:/hf MIT 2026-12-06
unrender/moge2 mac dev PyTorch MPS (moge_local) Ruicheng/moge-2-vitl-normal HF cache MIT 2026-12-06
unrender/qwen3vl-4b cloud dev transformers bf16 CUDA (footage/vlm.py) Qwen/Qwen3-VL-4B-Instruct volume raea-molmo3:/hf Apache-2.0 2026-12-06 on its way out (12-06): the text head moved to SigLIP; left: shot nouns (SigLIP lost, recall 0.44 vs 0.61), text re-read
unrender/qwen3vl-4b mac dev mlx-vlm 4-bit (footage/vlm.py) mlx-community/Qwen3-VL-4B-Instruct-4bit HF cache Apache-2.0 2026-12-06 on its way out, as the cloud row
unrender/qwen3vl-8b cloud none - Qwen/Qwen3-VL-8B-Instruct - Apache-2.0 2026-12-06 out of the pipeline 12-06: the text head takes a SigLIP 2 crop vector in place of its overlay and screen votes (LOCO 0.922 vs 0.920, RESULTS "12-06 consolidation")
unrender/qwen3vl-8b mac none - Qwen/Qwen3-VL-8B-Instruct - Apache-2.0 2026-12-06 out of the pipeline 12-06: the text head takes a SigLIP 2 crop vector in place of its overlay and screen votes (LOCO 0.922 vs 0.920, RESULTS "12-06 consolidation")
unrender/sam3.1 cloud dev transformers bf16 CUDA, in-process (tools/sam_modal.py Sam) unsloth/sam3.1 volume raea-molmo3:/hf SAM License 2026-12-06
unrender/sam3.1 mac dev remote: Modal app raea-unrender-sam unsloth/sam3.1 Modal SAM License 2026-12-06
unrender/sam3-video cloud dev transformers bf16 CUDA, in-process (tools/samv_modal.py Track, Track31) facebook/sam3 + unsloth/sam3.1 volume raea-molmo3:/hf SAM License 2026-12-06
unrender/sam3-video mac dev remote: Modal app raea-unrender-samv facebook/sam3 + unsloth/sam3.1 Modal SAM License 2026-12-06
unrender/siglip2 cloud dev ONNX Runtime CPU (footage/siglip.py) siglip2-base-p16-224 (onnx-community/siglip2-base-patch16-224-ONNX) volume raea-unrender-models:/raea-models/siglip2-base-p16-224 Apache-2.0 2026-12-06 text head (12-06), likeness
unrender/siglip2 mac dev ONNX Runtime CPU (never the Core ML GPU: wrong on the M5) siglip2-base-p16-224 ~/.local/share/raea-models/siglip2-base-p16-224 Apache-2.0 2026-12-06
unrender/vggt cloud planned PyTorch CUDA facebook/VGGT-1B-Commercial (gated) - VGGT License (no military use) 2026-12-06 camera path in place of LK (Shane's plan, step 2)
unrender/vggt mac planned to decide after the cloud bake-off - - VGGT License (no military use) 2026-12-06 parity owed: MoGe-2 per frame stays the Mac's answer until then
unrender/tapnext-pp cloud planned JAX or PyTorch CUDA TAPNext++ 256 / 512 - Apache-2.0 2026-12-06 rotation, spin, squash from points in SAM masks (step 3)
unrender/tapnext-pp mac planned to decide after the cloud trial - - Apache-2.0 2026-12-06 parity owed
unrender/geo-bench cloud bench PyTorch CUDA (footage/geo/geo_modal.py, footage/geo/bake.py) apple/DepthPro2-B, apple/DepthPro2-focal, depth-anything/DA3-SMALL, depth-anything/DA3-BASE, depth-anything/DA3METRIC-LARGE, depth-anything/Metric-Video-Depth-Anything-Small, facebook/map-anything-apache Modal per model: DA3 Small/Base/Metric Apache-2.0, map-anything-apache Apache-2.0, others unread here unverified depth and camera bake-off arms against MoGe-2
unrender/geo-bench mac none - - - - unverified a bake-off on Modal only
unrender/sam-3d-body cloud bench PyTorch CUDA (people/sam3db_modal.py) facebook/sam-3d-body-dinov3 Modal SAM License unverified
unrender/sam-3d-body mac none - - - - unverified Modal only
unrender/qwen2.5-vl-7b cloud bench transformers CUDA (footage/bench_camera_modal.py) Qwen/Qwen2.5-VL-7B-Instruct Modal Apache-2.0 unverified the camera bench's VLM arm
unrender/qwen2.5-vl-7b mac none - - - - unverified Modal only
#
# --- raea (the engine and its apps). Cloud = the render farm and cloud boxes: Modal volume raea-models (/raea perception, /feed, /library),
# --- uploaded by sdk/cloud/deploy/modal/models.sh. Desktop = the release (tools/release/models.tsv) or fetched on first use (zoo/rust/models.rs)
raea/beat-this cloud ships ONNX Runtime (farm) beat_this_small0.onnx (CPJKU/beat_this small0, converted) volume raea-models:/raea/beat-this MIT 2026-12-06
raea/beat-this desktop ships ONNX Runtime (systems/song beatthis.rs) beat_this_small0.onnx ~/.local/share/raea-models/beat-this; packed by tools/release/models.tsv MIT 2026-12-06
raea/transnetv2 cloud ships ONNX Runtime (farm) transnetv2.onnx volume raea-models:/raea/transnetv2 MIT 2026-12-06
raea/transnetv2 desktop ships ONNX Runtime (systems/song transnet.rs) transnetv2.onnx ~/.local/share/raea-models/transnetv2 MIT 2026-12-06 how a fresh install gets it is unchecked (not in tools/release/models.tsv)
raea/htdemucs cloud ships ONNX Runtime (farm) htdemucs_core.onnx volume raea-models:/raea/htdemucs MIT 2026-12-06
raea/htdemucs desktop ships ONNX Runtime (systems/song stems.rs) htdemucs_core.onnx ~/.local/share/raea-models/htdemucs MIT 2026-12-06 how a fresh install gets it is unchecked
raea/silero-vad cloud ships ONNX Runtime (farm) silero_vad.onnx volume raea-models:/raea/silero-vad and /feed/silero-vad MIT 2026-12-06
raea/silero-vad desktop ships ONNX Runtime (systems/song vad.rs, apps/voice turns.rs) silero_vad.onnx ~/.local/share/raea-models/silero-vad MIT 2026-12-06
raea/yamnet cloud ships ONNX Runtime (farm) yamnet.onnx volume raea-models:/raea/yamnet Apache-2.0 unverified
raea/yamnet mac ships Core ML (perception sound) and ONNX Runtime (systems/columns) yamnet.onnx ~/.local/share/raea-models/yamnet; else fetched once from the public repo's models-1 Apache-2.0 unverified
raea/yamnet windows+linux ships ONNX Runtime (systems/columns) yamnet.onnx fetched once from the public repo's models-1 Apache-2.0 unverified
raea/siglip2-224 cloud ships ONNX Runtime onnx-community/siglip2-base-patch16-224-ONNX (vision fp32, text fp16) volume raea-models:/feed (models.sh --all), else fetched on first use Apache-2.0 2026-12-06
raea/siglip2-224 desktop ships ONNX Runtime (systems/columns models.rs) onnx-community/siglip2-base-patch16-224-ONNX ~/.cache/raea-feed/models/siglip2-base-p16-224 (fetched on first use) Apache-2.0 2026-12-06
raea/clap cloud ships ONNX Runtime Xenova/clap-htsat-unfused (q8; fp32 for benches) volume raea-models:/feed (models.sh --all), else fetched on first use Apache-2.0 2026-12-06
raea/clap desktop ships ONNX Runtime (systems/columns models.rs) Xenova/clap-htsat-unfused (q8; fp32 for benches) ~/.cache/raea-feed/models/clap-htsat-unfused Apache-2.0 2026-12-06
raea/embeddinggemma-2 cloud ships ONNX Runtime onnx-community/embeddinggemma-2-ONNX (quantized) volume raea-models:/library (models.sh --all) Gemma terms 2026-12-06
raea/embeddinggemma-2 desktop ships ONNX Runtime (systems/columns models.rs, the app library) onnx-community/embeddinggemma-2-ONNX (quantized) ~/.raea/models or the feed cache Gemma terms 2026-12-06
raea/parakeet cloud ships ONNX Runtime istupakov/parakeet-tdt-0.6b-v3-onnx (int8) volume raea-models:/feed (models.sh --all) CC BY 4.0 2026-12-06
raea/parakeet desktop ships ONNX Runtime (apps/voice asr.rs) istupakov/parakeet-tdt-0.6b-v3-onnx (int8) ~/.cache/raea-feed/models/parakeet-tdt-0.6b-v3 CC BY 4.0 2026-12-06
raea/pocket-tts cloud ships ONNX Runtime kyutai/pocket-tts-without-voice-cloning english_2026-04 (int8) + voice embeddings; mlx-community/pocket-tts tokenizer volume raea-models:/feed (models.sh --all) unread here 2026-12-06
raea/pocket-tts desktop ships ONNX Runtime (systems/speech pocket) kyutai/pocket-tts-without-voice-cloning english_2026-04 (int8) + voice embeddings; mlx-community/pocket-tts tokenizer ~/.cache/raea-feed/models/pocket-tts unread here 2026-12-06
raea/smart-turn cloud ships ONNX Runtime smart-turn-v3 volume raea-models:/feed (models.sh --all) unread here unverified
raea/smart-turn desktop ships ONNX Runtime (apps/voice) smart-turn-v3 ~/.cache/raea-feed/models/smart-turn-v3 unread here unverified
raea/trustmark cloud ships ONNX Runtime TrustMark encoder_Q / decoder_Q volume raea-models:/library/trustmark MIT 2026-12-06
raea/trustmark desktop ships ONNX Runtime (io/provenance mark.rs) TrustMark encoder_Q / decoder_Q ~/.raea/models/trustmark MIT 2026-12-06
raea/rtdetr-v2 cloud+desktop ships ONNX Runtime (engine/neural score.rs) onnx-community/rtdetr_v2_r18vd-ONNX fetched on first use Apache-2.0 unverified where the farm runs it is unchecked
raea/kimodo cloud+desktop ships PyTorch in a uv environment (systems/kimodo torch.rs: the CUDA build where there's an NVIDIA driver, else CPU) nvidia/Kimodo-SOMA-RP-v1 ~/.cache/raea-feed/models/kimodo (+ kimodo-torch) unread here unverified
raea/kimodo-text mac ships MLX 8-bit (systems/kimodo) mlx-community/Meta-Llama-3-8B-Instruct-8bit ~/.cache/raea-feed/models/kimodo-text Llama 3 licence unverified
raea/kimodo-text cloud+windows+linux ships PyTorch (systems/kimodo torch/run.py) meta-llama/Meta-Llama-3-8B-Instruct HF cache Llama 3 licence unverified
raea/mediapipe mac ships Core ML (systems/vision: face, hands, gestures, hair, pose, selfie multiclass) MediaPipe face/hand/gesture/hair/pose/selfie-multiclass ~/.local/share/raea-models/mediapipe-* Apache-2.0 unverified
raea/mediapipe cloud+windows+linux none - - - - unverified parity owed: Core ML only
raea/edgetam mac ships Core ML (systems/vision object.rs) EdgeTAM image encoder + mask decoder ~/.local/share/raea-models/edgetam unread here unverified
raea/edgetam cloud+windows+linux none - - - - unverified parity owed: Core ML only
raea/depth-anything-3-small mac ships Core ML (systems/vision depth.rs) Depth Anything 3 Small (+ camera head) ~/.local/share/raea-models/depth-anything-3-small Apache-2.0 unverified
raea/depth-anything-3-small cloud+windows+linux none - - - - unverified parity owed: Core ML only
raea/soma cloud ships data (SOMA body model) SOMA_neutral.npz, template rig volume raea-models:/raea/soma see its LICENSE unverified
raea/soma desktop ships data SOMA_neutral.npz, template rig ~/.local/share/raea-models/soma see its LICENSE unverified
raea/garments cloud ships data garment-words.npz, soma_sdf.npz volume raea-models:/raea/garments ours unverified
raea/garments desktop ships data garment-words.npz, soma_sdf.npz ~/.local/share/raea-models/garments ours unverified
raea/overlay-seg cloud ships raea's own (overlay-seg.bpk) overlay-seg.bpk + cut.json volume raea-models:/raea/overlay-seg ours unverified
raea/overlay-seg desktop ships raea's own overlay-seg.bpk + cut.json ~/.local/share/raea-models/overlay-seg ours unverified
raea/siglip2-256 cloud+desktop found - siglip2-base-p16-256 ~/.local/share/raea-models/siglip2-base-p16-256 Apache-2.0 unverified on disk, use not traced
raea/nomic-embed cloud+desktop found - nomic-embed-v1.5 text volume raea-models:/raea/nomic-embed-v1.5 (--all) unread here unverified use not traced
raea/whisper-base cloud+desktop found - onnx-community/whisper-base volume raea-models:/library (--all) MIT unverified use not traced
raea/critic cloud+desktop found - critic bank-v1.npz ~/.local/share/raea-models/critic ours unverified use not traced
raea/qwen3-0.6b cloud+desktop found - Qwen/Qwen3-0.6B - Apache-2.0 unverified in code, use not traced
raea/dinov2-small cloud+desktop found - onnx-community/dinov2-small - Apache-2.0 unverified in code, use not traced
raea/depth-anything-v2-small cloud+desktop found - onnx-community/depth-anything-v2-small - Apache-2.0 unverified in code, use not traced
raea/sam2.1-small cloud+desktop found - facebook/sam2.1-hiera-small - Apache-2.0 unverified in code, use not traced
raea/whisper-hosted cloud+desktop ships hosted API, not delivered by us (apps/app/host/library/words.ts; farm.py: OpenRouter, Groq) openai/whisper-large-v3 the provider's MIT 2026-12-06 words for the app library and the farm
Can't render this file because it contains an unexpected character in line 36 and column 225.