register vendored repos as submodules (fix fresh-box empty-dir crash)

Three gitlinks (mode 160000) existed in the index with no .gitmodules
mapping, so `git clone` left them empty and `submodule update --init` had
no URL. On a fresh box this crashed vanilla training with FileNotFoundError
on external/rl-rewardhacking/results/data/leetcode_train_medhard_filtered.jsonl.

Add .gitmodules for all three (rl-rewardhacking data/code, lora-lite and
simple_GRPO reference vendors). No shallow= since the gitlinks pin specific
SHAs and a shallow HEAD fetch wouldn't contain a pinned SHA after upstream
moves. Document the clone step in handover fresh-box setup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
wassname
2026-05-24 05:32:13 +00:00
co-authored by Claude Opus 4.7
parent 87a2b48784
commit 9fb27fe746
2 changed files with 22 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
[submodule "external/rl-rewardhacking"]
path = external/rl-rewardhacking
url = https://github.com/ariahw/rl-rewardhacking.git
[submodule "docs/vendor/lora-lite"]
path = docs/vendor/lora-lite
url = https://github.com/wassname/lora-lite.git
[submodule "docs/vendor/simple_GRPO"]
path = docs/vendor/simple_GRPO
url = https://github.com/lsdefine/simple_GRPO.git