| # Standing kinescore up on a new machine | |
| Two things cannot be fetched from a link and must be arranged in advance: | |
| 1. **An HF token whose account is approved for DINOv3.** | |
| `facebook/dinov3-vitl16-pretrain-lvd1689m` is `gated: manual` — a valid token | |
| is not enough, the account behind it must have been approved by hand. Request | |
| access before you need the machine. | |
| 2. **The asset tree** (URDF/mesh, 69 MB). Hand-built and gitignored, so it is not | |
| on GitHub. It is in this bucket under `assets/`. | |
| Everything else comes from a link. | |
| | what | where | size | | |
| |---|---|---| | |
| | code | <https://github.com/triquang26/physics-judge> | — | | |
| | bench clips | `doanh25032004/video_gen_physics`, `data_for_web/*` | 2.1 GB | | |
| | training corpus | `doanh25032004/vgp_datasets`, `{bimanual,humanoid,single_arm}/*` | 15 GB | | |
| | assets, checkpoints, calibration clips, results | this bucket | 361 MB | | |
| Both dataset repos are declared in `configs/sources.yaml`; `kinescore pull` reads | |
| that file and nothing else, so there is no URL to paste anywhere. | |
| ## Scoring only | |
| `score` calibrates its thresholds on the reader's held-out **real** clips at | |
| `$KINESCORE_DATA_ROOT/trees/<reader>/videos/val`. Those 21 clips are in this | |
| bucket under `calibration/`, so scoring needs the 2.1 GB bench and nothing else — | |
| not the 15 GB corpus, not the 337 GB feature cache, not a training run. About | |
| 3 GB of disk and one CUDA GPU. | |
| ```bash | |
| git clone https://github.com/triquang26/physics-judge.git kinescore && cd kinescore | |
| python -m venv .venv && .venv/bin/pip install -e '.[dino,video,bench,dev]' | |
| source .venv/bin/activate | |
| cat > .env <<'EOF' | |
| KINESCORE_ASSETS=/big/kinescore_runtime/assets | |
| KINESCORE_CKPT_DIR=/big/kinescore_runtime/ckpt | |
| KINESCORE_CACHE_DIR=/big/kinescore_runtime/cache | |
| KINESCORE_DATA_ROOT=/big/kinescore_data | |
| KINESCORE_OUTPUT_DIR=/big/kinescore/out | |
| HF_HOME=/big/hf_cache | |
| EOF | |
| set -a; . ./.env; set +a | |
| mkdir -p "$KINESCORE_ASSETS" "$KINESCORE_CKPT_DIR" "$KINESCORE_CACHE_DIR" "$KINESCORE_DATA_ROOT" | |
| export HF_TOKEN=... # DINOv3-approved; do not `hf auth login` on a shared box | |
| hf sync hf://buckets/twanghcmut/video-bench-model ./bundle \ | |
| --exclude '*framepool*' --exclude 'scores/*' | |
| R=airbot_mmk2.humanoid_mv.mv4_row | |
| cp -r bundle/assets/* "$KINESCORE_ASSETS"/ | |
| cp bundle/checkpoints/* "$KINESCORE_CKPT_DIR"/ | |
| mkdir -p "$KINESCORE_DATA_ROOT/trees/$R/videos/val" | |
| cp bundle/calibration/$R/*.mp4 "$KINESCORE_DATA_ROOT/trees/$R/videos/val/" | |
| kinescore pull --what bench | |
| kinescore score --cell humanoid.mv4_row.ctrlworld_4view_grid \ | |
| --checkpoint "$KINESCORE_CKPT_DIR/$R.diff.pt" --device cuda --frame-chunk 16 | |
| ``` | |
| `score` renders its own clips as its last step: `$KINESCORE_OUTPUT_DIR/<cell>/render/reel.mp4` | |
| is every scored clip with its violation timeline drawn underneath. | |
| ## Training a reader | |
| Only for training. Adds the corpus, ~360 GB of disk, and about a day. | |
| ```bash | |
| kinescore pull --what train # 15 GB | |
| kinescore data --reader $R | |
| kinescore cache --reader $R # 337 GB, ~22 h, read-bound on NFS | |
| kinescore train --reader $R --head diffusion | |
| ``` | |
| Run one GPU process at a time; `cache` and `train` each expect the whole device. | |
| ## Updating the record and pushing it back | |
| `ledger` and `report` are derived from what is on disk, so they are regenerated | |
| rather than edited — run them after any train or score and push the result, and | |
| the bucket's record cannot drift from the artifacts. | |
| ```bash | |
| kinescore ledger --out ledger.json # what is built, trained, scored, and stale | |
| kinescore report --out report.json # violation rate per cell per role | |
| hf sync ./ledger.json hf://buckets/twanghcmut/video-bench-model/ledger.json | |
| hf sync ./report.json hf://buckets/twanghcmut/video-bench-model/report.json | |
| hf sync "$KINESCORE_OUTPUT_DIR" hf://buckets/twanghcmut/video-bench-model/scores | |
| ``` | |
| `ledger` flags a cell whose score came from a checkpoint that is not the reader's | |
| own — retrain without rescoring and it says so. | |
| ## Keeping credentials off a shared machine | |
| `hf auth login` writes `$HF_HOME/token`; `git config --global credential.helper` | |
| writes `~/.gitconfig`. On a shared account both collide with other users. Pass | |
| credentials per invocation instead: | |
| ```bash | |
| HF_TOKEN=hf_... hf sync ... | |
| git config --local credential.helper 'store --file=.git/credentials' # chmod 600 | |
| ``` | |
| ## Widening the bench | |
| The 400-clip bench carries 23 `strong_augment` clips — all of the `task_swap` and | |
| `object_relocation` there are — drawn from `augment/` in the video_gen_physics | |
| repo via its `data_for_web` bundle. Spread over 12 cells, most cells get none, so | |
| most cells have no negative control and a zero violation rate there cannot be told | |
| apart from a detector that cannot fire. The full `augment/` tree holds far more. | |
| Adding `"augment/*"` to the bench source's `include` in `configs/sources.yaml` is | |
| a one-line change, but it changes what the benchmark is measured on: every cell | |
| has to be rescored, and published numbers do not carry over. | |
Xet Storage Details
- Size:
- 5.02 kB
- Xet hash:
- 1dc69261e6e039cc5d37173064d56a810ca29dfac2e7f488c01fcfe0118f9b23
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.