| import transformers | |
| def check_whether_transformers_replace_is_installed_correctly(): | |
| # openpi upstream compares against "5.5.4", but transformers_replace targets | |
| # the 4.53.2 API (LossKwargs, HybridCache). This SFT checkout pins 4.53.2. | |
| return transformers.__version__ == "4.53.2" | |