Spoken-English math to Typst with a small from-scratch encoder-decoder Transformer, following the build guide: compile-checked synthetic data generator, shared BPE tokenizer, nn.Transformer model, training loop with an overfit sanity check, greedy decoding CLI, and evaluation on synthetic and hand-written test sets. ./run.sh runs the whole pipeline. Co-Authored-By: Claude Opus 5.5 <[email protected]>
39 lines
896 B
TOML
39 lines
896 B
TOML
[project]
|
|
name = "isotope-typst"
|
|
version = "0.1.0"
|
|
description = "Spoken-English math -> Typst math with a small Transformer trained from scratch"
|
|
readme = "README.md"
|
|
authors = [
|
|
{ name = "Paul Tal", email = "[email protected]" }
|
|
]
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"numpy>=2.5.5",
|
|
"tokenizers>=0.23.3",
|
|
"torch>=2.15.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
isotope-gen = "isotope_typst.generate:main"
|
|
isotope-tokenizer = "isotope_typst.tokenizer:main"
|
|
isotope-train = "isotope_typst.train:main"
|
|
isotope-eval = "isotope_typst.evaluate:main"
|
|
isotope = "isotope_typst.translate:main"
|
|
|
|
[build-system]
|
|
requires = ["uv_build>=0.13.9,<0.14.0"]
|
|
build-backend = "uv_build"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=9.2.0",
|
|
"ruff>=0.17.6",
|
|
]
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
filterwarnings = ["ignore:enable_nested_tensor"]
|