uv venv .venv --python 3.12 && uv pip install --python .venv/bin/python -e ".[synthid,dev]"(CPU torch is fine; no model download is needed until step 5.)- Terminal A:
MARKWRIGHT_DB=markwright.sqlite .venv/bin/uvicorn markwright.api.app:appTerminal B:export MARKWRIGHT_TOKEN=operator-token(dev tokens; v1 uses OIDC). - Register and configure:
markwright model add demo-llm --version 1.0 --tokenizer gpt2markwright config create --model demo-llm --version 1.0 --scheme synthid-text - Calibrate on the bundled starter corpus and activate (the result is honest about
being provisional — see data/null/README.md):
markwright calibrate run <config_id> --null-corpus gutenberg-en-v1markwright calibrate accept <run_id>markwright config activate <config_id> - Generate marked text with a small open model (downloads ~300 MB):
markwright generate test --config <config_id> --model HuggingFaceTB/SmolLM2-135M-Instruct --prompt "Write 300 words about tide pools."(No model handy?./scripts/demo.shruns the whole loop with processor-driven marked tokens instead — no LM required.) markwright verify --text "<the generated text>"→ a band, a calibrated p-value with its interval, the FPR target, caveats.- Try
markwright verify --text "Short sentence.": it returnsINSUFFICIENT EVIDENCEwith no p-value, because short input never produces one.