Add isotope-typst proof of concept (Path A)
Spoken-English math to Typst math with a small from-scratch Transformer: synthetic data generator, BPE tokenizer, training, constrained/beam decoding, and evaluation against a hand-written test set. Ships the trained Path A model and tokenizer so the CLI works right after clone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
5926731546
commit
e266d04a84
28 files changed
+23519
-2
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# One command to build everything: data -> tokenizer -> sanity check -> train -> evaluate.
|
||||
# Steps that are already done are skipped, so re-running is cheap.
|
||||
# ./run.sh full run (~20-60 min on an M-series Mac)
|
||||
# ./run.sh --quick few-minute smoke run with a tiny model
|
||||
# ./run.sh --fresh delete data/ and artifacts/ and redo everything
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if ! command -v uv >/dev/null; then
|
||||
echo "Installing uv ..."; curl -LsSf https://astral.sh/uv/install.sh | sh; export PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
if ! command -v typst >/dev/null; then
|
||||
if command -v brew >/dev/null; then brew install typst; else echo "Please install typst: https://github.com/typst/typst#installation"; exit 1; fi
|
||||
fi
|
||||
|
||||
uv sync -q
|
||||
uv run isotope-pipeline "$@"
|
||||
Reference in new issue
Block a user