Views
No views yet
Souverain, vérifiable, ré-entrainable. The training data, code, and decision report are public so any third party can re-run this exact model from scratch. See the Reproduction section below.
microsoft/trocr-large-handwritten @ main3876525| Split | CER | n decoded |
|---|---|---|
| train (quick) | 0.6770 | 64 |
| validation | 0.6115 | 64 |
reference)default0.95,0.025,0.02520260510| Role | sha256 | rows | bytes |
|---|---|---|---|
| train | 2e1b26f0340a7f2c… | 3,326 | 1,284,970 |
| val | b9bbd03166780811… | 87 | 33,875 |
| test | 8962cd8a761545b0… | 87 | 33,894 |
corpus_manifest.json.docs/GREF_DATA_SOVEREIGNTY.md in the Fonciq monorepo for the full policy.REPRODUCE.sh in this repo):1#!/usr/bin/env bash
2# Auto-generated by worker/scripts/gref_train_local.py at 2026-05-10T21:30:05Z.
3#
4# Reproduces the GREF HTR training run that produced
5# ``pbel88/trocr-fr-cadastral-2026.05`` (or, when no push target was set, the run's final
6# checkpoint). To use:
7#
8# 1. Clone the Fonciq monorepo (or your fork).
9# 2. cd into the worker/ directory.
10# 3. ./REPRODUCE.sh (optional: WORK_DIR=/scratch/x ./REPRODUCE.sh)
11#
12# The script pins the repo at the exact git SHA that produced this run
13# and installs the training-time deps from a fresh venv. It does not
14# read your shell environment for credentials; set the relevant Hub /
15# repository tokens in your shell yourself if you need push or private
16# clone access.
17#
18# Source: docs/GREF_TRAIN_LAUNCH.md §"REPRODUCE.sh contract".
19
20set -euo pipefail
21
22REPO_ROOT="${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"
23cd "$REPO_ROOT"
24# 1. Pin the worker repo at the exact code that produced this run.
25 if [ -n "${REPO_GIT_REMOTE:-}" ] && [ ! -e .git ]; then
26 git clone --depth 50 "$REPO_GIT_REMOTE" .
27 fi
28 if git rev-parse --git-dir >/dev/null 2>&1; then
29 git fetch --depth 50 origin "3876525" || true
30 git checkout "3876525" || true
31 fi
32
33 # 2. Recreate the training-time Python environment from the pinned
34 # requirements (matches gref_train_launch.py's guaranteed baseline).
35 python -m pip install --upgrade pip
36 python -m pip install --extra-index-url https://download.pytorch.org/whl/cu124 \
37 "torch>=2.6,<3"
38 python -m pip install -r worker/requirements-train.txt
39
40 # 3. Re-run the pipeline. WORK_DIR is parameterised so you can
41 # diff this run's outputs against the original.
42 export PYTHONPATH=worker
43 python worker/scripts/gref_train_local.py \
44--work-dir ${WORK_DIR:-/tmp/gref-reproduce-$(date +%s)} \
45--mix-recipe default \
46--mix-split 0.95,0.025,0.025 \
47--base-model microsoft/trocr-large-handwritten \
48--revision main \
49--epochs 3 \
50--lr 1e-05 \
51--batch-size 8 \
52--max-target-len 64 \
53--htr-united-src-id htru-lectaurep-bronod \
54--banq-max-docs 5 \
55--tier reference \
56--regression-tolerance 0.01 \
57--source htr-united \
58--no-lora \
59--push-to-hub pbel88/trocr-fr-cadastral-2026.05 \
60--git-sha 3876525