feat: Add ZImage/LongCat/Sana diffusion support + LLM VL improvements…#4165
Open
er6y wants to merge 1 commit intoalibaba:masterfrom
Open
feat: Add ZImage/LongCat/Sana diffusion support + LLM VL improvements…#4165er6y wants to merge 1 commit intoalibaba:masterfrom
er6y wants to merge 1 commit intoalibaba:masterfrom
Conversation
… + OpenCL fixes Diffusion Engine: - Add ZImageDiffusion subclass: FlowMatch Euler scheduler, PhiloxRNG noise, CLIP text encoder - Add LongCatDiffusion subclass: LLM text encoder (lazy load), Flux-like latent packing, VAE enc/dec, T2I + Image Edit modes - Integrate SanaDiffusion with SanaLlm into unified API, fix Euler sampling (dt/1000->dt) and CFG order - Add DiffusionConfig/LLMEncoderConfig, GPU config (BUFFER mode, FP32, Memory_Low, OpenCL cache) - Add DiffusionGpuMemoryMode/PrecisionMode/CFGMode enums - Extend createDiffusion factory with full parameters for all model types - Unify diffusion_demo to support SD1.5/Taiyi/Sana/ZImage/LongCat with cfg_scale and input_image args - Add image processing utilities (resize, crop, colorspace, pack/unpack latents) - Implement FlowMatchEuler scheduler LLM / Vision: - omni.cpp: Qwen3-VL vision fixes (floor rounding, nullptr check) - omni.hpp: mrope position ids fix max(T,H,W)+1 - tokenizer.hpp: public wrapper header, MNN_PUBLIC export - llm_demo: LLM_DEMO_ONELINE mode - pymnn llm.h: forward_all() binding - Fix Qwen2_5Vision transformer_fuse for window attention compatibility OpenCL fixes: - BinaryBufExecution: localWorkSize divisibility check - binary_buf.cl: float4/int4 init, per-element ReLU (NVIDIA compiler bug workaround) Other fixes: - ShapeSliceTf/ShapeWhere: shape calculation rewrite - OnnxEinsum: outer product broadcast _Unsqueeze fix - Pipeline: NaN/Inf debug check macro (disabled by default) - Fix LongCat unpackLatentsGPU to match master implementation
|
|
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.
… + OpenCL fixes
Diffusion Engine:
LLM / Vision:
OpenCL fixes:
Other fixes: