Lance
Lance by bytedance-research, a any-to-any model with multimodal capabilities. Understand and compare multimodal features, benchmarks, and capabilities.
Comparison
| Feature | Lance | Interfaze |
|---|---|---|
| Input Modalities | text, image, video | image, text, audio, video, document |
| Native OCR | No | Yes |
| Long Document Processing | No | Yes |
| Language Support | unknown | 162+ |
| Native Speech-to-Text | No | Yes |
| Native Object Detection | No | Yes |
| Guardrail Controls | No | Yes |
| Context Input Size | 70K | 1M |
| Tool Calling | No | Tool calling supported + built in browser, code execution and web search |
Scaling
| Feature | Lance | Interfaze |
|---|---|---|
| Scaling | Self-hosted/Provider-hosted with quantization | Unlimited |
View model card on Hugging Face
🌟 Highlights
Lance is a lightweight native unified multimodal model that supports image and video understanding, generation, and editing within a single framework.
- Efficient at 3B scale. With only 3B active parameters, Lance delivers strong performance across image generation, image editing, and video generation benchmarks.
- Trained from scratch. Lance is built with a staged multi-task recipe and trained entirely from scratch within a 128-A100-GPU budget.
🎨 Demo
Text-to-Video
Video Editing
Multi-turn Consistency Editing
Intelligent Video Generation
Video Understanding
Text-to-Image Generation
Image Editing
Image Understanding
🚀 Installation
Recommended Environment
- Software: Python 3.10+, CUDA 12.4+ (required)
- Hardware: A GPU with at least 40GB VRAM is required for inference
Installation Steps
bash ./setup_env.shDownload Model Weights
Please download all the necessary model checkpoints of Lance-3B (Huggingface Link) and place them in the downloads/ directory.
📚 Usage
Inference
We provide a unified command-line interface for all generation / editing / understanding tasks:
Option 1: Configure and Run the Unified Script
bash inference_lance.sh- Before running, please configure the inference parameters at the top of
inference_lance.sh. - Supported tasks:
t2i,t2v,image_edit,video_edit,x2t_image, andx2t_video. You can modifyTASK_DEFAULT_CONFIGSininference_lance.pyto customize the default data samples for each task. - Note: For all tasks, we recommend following the
promptformat used in the provided examples when writing input prompts, as this typically leads to better generation quality.
Option 2: Configure and Run the Unified Script
We provide task-specific one-click commands for different generation, editing, and understanding tasks.
Text-to-Video Generation
bash inference_lance.sh \
--TASK_NAME t2v \
--MODEL_PATH downloads/Lance_3B_Video \
--RESOLUTION video_480p \
--NUM_FRAMES 121 \
--VIDEO_HEIGHT 480 \
--VIDEO_WIDTH 848 \
--SAVE_PATH_GEN results/t2v_121fText-to-Image Generation
bash inference_lance.sh \
--TASK_NAME t2i \
--MODEL_PATH downloads/Lance_3B \
--RESOLUTION image_768res \
--VIDEO_HEIGHT 768 \
--VIDEO_WIDTH 768 \
--SAVE_PATH_GEN results/t2iVideo Editing
bash inference_lance.sh \
--TASK_NAME video_edit \
--MODEL_PATH downloads/Lance_3B_Video \
--RESOLUTION video_480p \
--SAVE_PATH_GEN results/video_editImage Editing
bash inference_lance.sh \
--TASK_NAME image_edit \
--MODEL_PATH downloads/Lance_3B \
--RESOLUTION image_768res \
--SAVE_PATH_GEN results/image_editVideo Understanding
bash inference_lance.sh \
--TASK_NAME x2t_video \
--MODEL_PATH downloads/Lance_3B_Video \
--RESOLUTION video_480p \
--NUM_FRAMES 50 \
--SAVE_PATH_GEN results/x2t_videoImage Understanding
bash inference_lance.sh \
--TASK_NAME x2t_image \
--MODEL_PATH downloads/Lance_3B \
--RESOLUTION image_768res \
--SAVE_PATH_GEN results/x2t_imageAvailable Tasks
| Task Name | Description | Example JSON |
|---|---|---|
t2v | Text-to-Video generation | config/examples/t2v_example.json |
t2i | Text-to-Image generation | config/examples/t2i_example.json |
image_edit | Image editing | config/examples/image_edit_example.json |
video_edit | Video editing | config/examples/video_edit_example.json |
x2t_image | Image understanding | config/examples/x2t_image_example.json |
x2t_video | Video understanding | config/examples/x2t_video_example.json |
For understanding examples:
config/examples/x2t_image_example.json: image understanding examples for visual question answering and image-based reasoning.config/examples/x2t_video_example.json: video understanding examples for video question answering and video captioning.
Parameters
You can configure the following hyperparameters at the top of the inference_lance.sh script:
| Parameter | Default Value | Description |
|---|---|---|
MODEL_PATH | "downloads/lance_3b" | Path to the downloaded Lance model weights. |
NUM_GPUS | 1 | Number of GPUs to use for inference. |
VALIDATION_NUM_TIMESTEPS | 30 | Number of denoising steps (e.g., 30 or 50). |
VALIDATION_TIMESTEP_SHIFT | 3.5 | Timestep shift parameter for flow matching scheduling. |
CFG_TEXT_SCALE | 4.0 | Classifier-Free Guidance (CFG) scale for text conditioning. |
VALIDATION_DATA_SEED | 42 | Random seed for generation reproducibility. |
NUM_FRAMES | 50 | Number of frames for video generation (Max: 121). Unused for image tasks. |
VIDEO_HEIGHT / VIDEO_WIDTH | 768 | Spatial resolution. Unused for editing tasks (determined by input image/video). |
RESOLUTION | "video_480p" | Base resolution preset (image_768res or video_480p). |
Gradio
python lance_gradio_t2v_v2t.py --gpus 0 --server-port 7860Benchmarks
DPG-Bench Evaluation
GenEval Evaluation
GEdit-Bench Evaluation
VBench Evaluation (Video Generation)
Running Benchmarks
Ready-to-run benchmark scripts are provided under benchmarks/:
| Benchmark | Modality | Script |
|---|---|---|
| GenEVAL (image gen) | Image | benchmarks/image_gen/GenEVAL/sample_GenEVAL.sh |
| DPG (image gen) | Image | benchmarks/image_gen/DPG/sample_DPG.sh |
| GEdit (image edit) | Image | benchmarks/image_gen/GEdit/sample_GEdit.sh |
| VBench (video gen) | Video | benchmarks/video_gen/Vbench/sample_vbench.sh |
📄 License
Copyright 2025 Bytedance Ltd. and/or its affiliates.
💖 Citation
If you find Lance useful for your project or research, welcome to 🌟 this repo and cite our work using the following BibTeX:
@misc{lance2026,
title = {Lance: Unified Multimodal Modeling by Multi-Task Synergy},
author = {Fengyi Fu and Mengqi Huang and Shaojin Wu and Yunsheng Jiang and Yufei Huo and Jianzhu Guo and Hao Li and Yinghang Song and Fei Ding and Qian He and Zheren Fu and Zhendong Mao and Yongdong Zhang},
year = {2026},
note = {Manuscript}
}📞 Contact
For questions, issues, or collaborations, please contact Mengqi Huang and Jianzhu Guo.