Assertion error when supporting non-diffusers' models.
Open
@DefTruth is already working on this.
Since Dec 2, 2025.
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 88
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 14
Description
When integrating cache-dit into sglang, we encountered an assertion error.
It appears that this happens because sglang’s FluxTransformer2DModel is not compatible with diffusers’ FluxTransformer2DModel, which the current adapter code assumes.
From the latest version, it looks like the adapter still only supports diffusers’ FLUX*Model:
Would it be possible to add support for sglang’s Flux implementation, or make the adapter interface more flexible?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.