Instructions to use meituan-longcat/LongCat-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meituan-longcat/LongCat-Image with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("meituan-longcat/LongCat-Image", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download model_index.json from meituan-longcat/LongCat-Image: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/meituan-longcat/LongCat-Image/resolve/main/model_index.json
- Command line
-
hf download hf://meituan-longcat/LongCat-Image/model_index.json
-
curl -L -o model_index.json https://huggingface.co/meituan-longcat/LongCat-Image/resolve/main/model_index.json
504 Bytes
| { | |
| "_class_name": "LongCatImagePipeline", | |
| "_diffusers_version": "0.35.1", | |
| "scheduler": [ | |
| "diffusers", | |
| "FlowMatchEulerDiscreteScheduler" | |
| ], | |
| "text_encoder": [ | |
| "transformers", | |
| "Qwen2_5_VLForConditionalGeneration" | |
| ], | |
| "tokenizer": [ | |
| "transformers", | |
| "Qwen2Tokenizer" | |
| ], | |
| "text_processor": [ | |
| "transformers", | |
| "Qwen2VLProcessor" | |
| ], | |
| "transformer": [ | |
| "diffusers", | |
| "LongCatImageTransformer2DModel" | |
| ], | |
| "vae": [ | |
| "diffusers", | |
| "AutoencoderKL" | |
| ] | |
| } |