feat: support LongCat-Image-Edit on cuda device.#957
Merged
XuZhang99 merged 2 commits intojd-opensource:mainfrom Mar 7, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds support for the LongCat-Image-Edit model on CUDA devices. The changes include a new pipeline implementation, modifications to the model loader to handle preprocessor configurations, and several improvements and bug fixes in the attention and rotary embedding kernels. The implementation of the new pipeline is comprehensive. I've identified one issue in the model loader's error handling for the preprocessor configuration that could lead to silent failures.
XuZhang99
reviewed
Feb 28, 2026
c0b7d0a to
94b01e8
Compare
XuZhang99
reviewed
Mar 3, 2026
94b01e8 to
d7dfba9
Compare
XuZhang99
previously approved these changes
Mar 3, 2026
XuZhang99
approved these changes
Mar 5, 2026
yiming-l21
approved these changes
Mar 6, 2026
phantomlei3
pushed a commit
to phantomlei3/xllm
that referenced
this pull request
Mar 9, 2026
…rom pad to pack in PR jd-opensource#957.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR supports LongCat-Image-Edit on cuda device.
The test program and the generated image are as follows.
Input image:

Output image: