Skip to content
Back to skills

Training And Evaluation

ASecurity

"Guides pix2tex model training, resizer training, evaluation, YAML

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
datapythonbash

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill training-and-evaluation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training And Evaluation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Training And Evaluation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-and-evaluation-1db3f26b/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-and-evaluation-1db3f26b)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: training-and-evaluation
description: "Guides pix2tex model training, resizer training, evaluation, YAML
  configuration, checkpoints, GPU memory planning, and optional training
  dependencies."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Training and Evaluation

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.

## Quick Route

1. Read [references/configuration.md](references/configuration.md) before editing
   YAML config fields.
2. Read [references/training-and-evaluation.md](references/training-and-evaluation.md)
   for train, resizer, and eval command recipes.
3. Read [references/model-architecture.md](references/model-architecture.md) for
   the hybrid/VIT encoder, transformer decoder, tokenizer, and checkpoint
   relationships.
4. Read [references/troubleshooting.md](references/troubleshooting.md) for
   missing extras, data/checkpoint issues, GPU memory, and long-run boundaries.
5. Run [scripts/summarize_pix2tex_config.py](scripts/summarize_pix2tex_config.py)
   to inspect a config safely before starting training.

## Minimal Training Command Pattern

```bash
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.

## Evaluation Pattern

```bash
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.

## Boundaries

- Dataset/tokenizer creation belongs in
  [../data-preparation/SKILL.md](../data-preparation/SKILL.md).
- User-facing inference after training belongs in
  [../ocr-inference/SKILL.md](../ocr-inference/SKILL.md).
- Do not start training, downloads, W&B logging, or full evaluation unless the
  user has approved the runtime cost and provided valid datasets/checkpoints.

Files in this skill

  • SKILL.md2.3 KB
  • references/configuration.md1.6 KB
  • references/model-architecture.md1.3 KB
  • references/training-and-evaluation.md1.5 KB
  • references/troubleshooting.md1.6 KB
  • scripts/summarize_pix2tex_config.py2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.