计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
training-and-evaluation【效率与协作】Guides pix2tex model training, resizer training, evaluation, YAML configuration, checkpoints, GPU memory planning, and optional training dependencies.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants to train or fine-tune the LaTeX-OCR encoder-decoder model, train the image-resizer model, evaluate BLEU/edit distance/token accuracy, tune config YAMLs, resume from checkpoints, or debug training dependencies and GPU memory.
pip install "pix2tex[train]"
python -m pix2tex.train --config path/to/config.yaml
Run this only after dataset pickles and tokenizer paths in the config are valid. Training is long-running and can use W&B and GPU memory; confirm budget and hardware first.
python -m pix2tex.eval \
--config path/to/config.yaml \
--checkpoint path/to/weights.pth \
--data path/to/val.pkl \
--no-cuda \
--num-batches 5
Use a small --num-batches first. Full evaluation requires the [train] extra
because metrics use torchtext and edit distance uses Levenshtein.