A source comparison and a failed parity run found that LeRobot 0.6.1 with transformers 5.3.0 scales pi0 image embeddings about 45x too small. 0.6.1 needs transformers 5.4 or newer. With 5.5.4 and a ported mask patch, our pi0 export matched the old stack (cosine 0.9999997). If you run pi0 or pi0.5 inference, which transformers version is in your environment, and do your action outputs look right? I can share the comparison script.
Your finding matches LeRobot’s own pin. At v0.6.1 (7e241bd) pyproject.toml has transformers-dep = [“transformers>=5.4.0,<5.6.0”] and the pi extra pulls it in (pi = [“lerobot[transformers-dep]”, “lerobot[scipy-dep]”]). Main has the same pin.
So 5.3.0 is outside the supported range. The reason it doesn’t fail loudly is that require_package in src/lerobot/utils/import_utils.py only checks that the package is installed, not the version. Installing with pip install “lerobot[pi]==0.6.1” should keep transformers inside the range.
May be worth opening an issue for a version check there, since a silent embedding scale change is a bad way to find out.