Skip to content

fix: handle removed is_ccl_available in newer accelerate#1044

Open
mattcarrollcode wants to merge 1 commit into
meta-llama:mainfrom
mattcarrollcode:fix/accelerate-import
Open

fix: handle removed is_ccl_available in newer accelerate#1044
mattcarrollcode wants to merge 1 commit into
meta-llama:mainfrom
mattcarrollcode:fix/accelerate-import

Conversation

@mattcarrollcode
Copy link
Copy Markdown

Summary

Add try/except fallback for is_ccl_available import from accelerate.utils, which was removed in recent versions.

Motivation

from accelerate.utils import is_ccl_available raises ImportError with accelerate>=1.0, breaking test_finetuning.py and test_train_utils.py test collection entirely.

Test plan

  • python -m pytest src/tests/ -v collects and runs all 70 tests (49 pass, 21 skip)
  • No import errors during test collection

is_ccl_available was removed from accelerate in recent versions.
Add try/except fallback so the import does not crash, unblocking
test_finetuning.py and test_train_utils.py test suites.
@meta-cla meta-cla Bot added the cla signed label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant