Skip to content

Fix unstructured_data_ingestion: pin accelerate for transformers 4.57…#804

Open
elliot-barn wants to merge 1 commit into
mainfrom
fix/unstructured-accelerate-pin
Open

Fix unstructured_data_ingestion: pin accelerate for transformers 4.57…#804
elliot-barn wants to merge 1 commit into
mainfrom
fix/unstructured-accelerate-pin

Conversation

@elliot-barn

Copy link
Copy Markdown
Contributor

….3 compat

The template pinned transformers==4.57.3 but let accelerate float to an incompatible version, causing a circular import in the runtime_env pip venv when from transformers import pipeline runs:

ImportError: cannot import name 'dispatch_model' from partially
initialized module 'accelerate.big_modeling' (circular import)

Pin accelerate==1.10.1 (verified to import transformers.pipeline cleanly with transformers==4.57.3) across all three install paths:

  • runtime_env packages list (the path the probe traceback runs in)
  • the README pip install cell
  • the Dockerfile final RUN pip install

README.md regenerated via nbconvert. BYOD template (no python_depset.lock), so no raydepsets recompile.

….3 compat

The template pinned transformers==4.57.3 but let accelerate float to an
incompatible version, causing a circular import in the runtime_env pip
venv when `from transformers import pipeline` runs:

  ImportError: cannot import name 'dispatch_model' from partially
  initialized module 'accelerate.big_modeling' (circular import)

Pin accelerate==1.10.1 (verified to import transformers.pipeline cleanly
with transformers==4.57.3) across all three install paths:
- runtime_env packages list (the path the probe traceback runs in)
- the README pip install cell
- the Dockerfile final RUN pip install

README.md regenerated via nbconvert. BYOD template (no python_depset.lock),
so no raydepsets recompile.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Aydin-ab

Copy link
Copy Markdown
Contributor

is it still relevant after the 2.56 bump ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants