LongCat-Image-Edit-Turbo OpenVINO INT8
A dynamic-shape OpenVINO INT8 weight-only build of the 6.27B LongCat-Image-Edit-Turbo transformer. It keeps the upstream BF16 Qwen2.5-VL text encoder and VAE and uses the official Diffusers editing pipeline. The transformer runs with OpenVINO on CPU; PyTorch runs the other components. The source checkpoint is Apache-2.0.
Quick start
Use Python 3.11 with a PyTorch and TorchVision build that matches your system, then install the remaining pinned packages:
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
Edit an image with the included cat sample:
python infer.py \
--image sample_input.png \
--prompt "将猫变成狗" \
--output edited.png \
--resolution 1024 \
--steps 8 \
--guidance-scale 1.0 \
--seed 43 \
--torch-device cuda
The original tested path uses an OpenVINO CPU transformer and CUDA for the BF16 text encoder and VAE. The NVIDIA OpenVINO adapter path has also been tested on an A100, with the OpenVINO transformer and PyTorch components on NVIDIA GPU. Install the matching adapter alongside OpenVINO:
python -m pip install openvino-nvidia==2026.4.0
Then use the NVIDIA path at the validated 512 resolution:
python infer.py \
--image sample_input.png \
--prompt "Turn the orange tabby cat into a golden retriever puppy" \
--output edited.png \
--resolution 512 \
--steps 8 \
--guidance-scale 1.0 \
--seed 43 \
--torch-device cuda \
--ov-device NVIDIA \
--ov-precision f32
The NVIDIA plugin is registered by the runner when the adapter is installed. The NVIDIA transformer graph is included as transformer_nvidia.xml and transformer_nvidia.bin. To run the PyTorch components on CPU with the default CPU transformer, pass --torch-device cpu; CPU-only execution is slower and has not been benchmarked here. --resolution sets the target image area to resolution squared while preserving the source aspect ratio. The transformer has dynamic image and text sequence dimensions. The tested NVIDIA configuration is 512; the 1024 NVIDIA FP32 attempt ran out of A100 memory, and 1024 NVIDIA FP16 returned a black image.
Quantization
NNCF 3.4.0 compressed all transformer weights with symmetric per-channel INT8 (INT8_SYM). The compressed transformer is 6.28 GB, about half the 12.54 GB FP32 OpenVINO export. The BF16 text encoder and VAE remain native safetensors. quantization_config.json records the recipe.
Validation
The included CPU/CUDA output was generated end to end at 1024×1024, eight steps, guidance 1, seed 43. On Lambda's 30-vCPU host, the OpenVINO CPU transformer with native CUDA text/VAE took 8 minutes 34 seconds. At 512×512, the same setup took 1 minute 51 seconds. The BF16 CUDA reference at 1024 took 6.8 seconds, but that uses a different hardware path and is not a like-for-like speed comparison. The INT8 output changed the cat to a dog and preserved the couch scene and framing.
The A100 NVIDIA path was tested with the packaged runner at 512×512, eight steps, guidance 1, using two edit prompts. The OpenVINO INT8 transformer ran with NVIDIA FP32 execution; text encoding and VAE ran in BF16 on CUDA. Both outputs were visually inspected and preserved the couch scene while applying the requested animal edits. The exact public snapshot at revision 226a88fb536e3928a90d111bdc843bf6ed5a9e6a completed the same seed-43 run and produced a byte-identical PNG. See validation_results.json and the A100 samples. This is a focused functional check, not a broad quality evaluation. The 1024 NVIDIA attempts are recorded as failures and are not presented as supported results.
Input:

OpenVINO INT8 output:

OpenVINO NVIDIA 512×512 output, seed 43:

OpenVINO NVIDIA 512×512 output, seed 44:

Source and license
Base model: meituan-longcat/LongCat-Image-Edit-Turbo. The upstream model is Apache-2.0; see LICENSE.