My 1B model renamed one file to another file's name — the fix was a provenance guard
说明与用途
1 十亿参数模型将文件重命名为其他文件的名称,导致冲突。添加仅允许使用原始文件名中词语的来源检查后,消除了错误,生成了可靠的本地文件整理工具。
问题
A 1‑billion‑parameter language model renamed files to names belonging to other files in the same batch, causing cross‑row name collisions and potential data loss.
结果
By limiting model‑generated names to those that reuse words from the original filename, the author eliminated cross‑row renaming errors and doubled extensions, achieving a fully reliable file‑tidying workflow with minimal model usage.
工作流
- Scan folder for loose files
- Apply extension rules
- Apply purpose rules
- Apply meaningful‑name rule
- Batch remaining files and send to local model
- Validate model output: match by position, ensure count, check provenance guard
- Rename files and move to target folders
- Generate plan report
- Apply or undo plan
证据
Only the leftovers go to llama3.2:1b: the timestamps, the img.pngs, the AC3.jsons.
The rule I settled on is boring and it works. A proposed name is accepted only if it is built from words that were already in the original filename.
After the guard, the same 599-file run produced zero cross-row names and zero doubled extensions.
- 记录日期: 2026-10-22T07:11:33.084Z