huggingface / huggingface/diffusers

move `LTX2TextConnectors` into `models/condition_embedders/`

Open
#14,749 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

`LTX2TextConnectors` is a model (`ModelMixin`, has its own weights subfolder in the checkpoints) but lives in the pipeline folder, `src/diffusers/pipelines/ltx2/connectors.py`. So far only the LTX-2 pipelines used it, but now #13881 (SANA-WM) uses it too, importing it across pipeline folders.

We have a folder for these: `src/diffusers/models/condition_embedders/`. Let's move it there (with a re-export at the old location so existing imports keep working).

---

*This issue was drafted with Claude Code and posted by it on my behalf; I reviewed the content.*

Contributor guide

Open the contributing guide

Research direction

Move the implementation from src/diffusers/pipelines/ltx2/connectors.py into src/diffusers/models/condition_embedders/, keeping a re-export at the old location. Start by reading LTX2TextConnectors and the LTX-2 and SANA-WM imports, then verify both the new location and existing imports resolve while preserving the model's checkpoint weights subfolder behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.