SuperAPIAI Directory

Lance

github.com · AI developer platforms

Lance is a 3B activated-parameter native unified multimodal model open-sourced by ByteDance, supporting image and video understanding, generation, and editing within a single framework. It is trained from scratch using a staged multi-task training scheme, with a training budget of up to 128 A100 GPUs, image generation training resolution up to 768x768, and video generation up to 480p at 12 FPS. The official description states that this is a research project rather than a mature product model, and output quality will vary depending on prompts, resolution, duration, motion complexity, and editing scenarios. The project provides inference code, model weights, fine-tuning code, a Gradio interface, and already supports vLLM-Omni.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Lance is a native unified multimodal model research project released by ByteDance (ByteDance), with the paper titled "Lance: Unified Multimodal Modeling by Multi-Task Synergy". Its core positioning is to simultaneously perform image and video understanding, generation, and editing tasks within a unified framework.

Purpose and Positioning Lance is a 3B-active-parameter model, and the official emphasis is on its "native unified" characteristic, meaning that image and video understanding, generation, and editing are all implemented within the same framework. The official statement clearly states that Lance is a research project, not a polished mature product model, and the goal is to share a research output for studying unified image/video understanding, generation, and editing under a relatively small model scale and limited compute budget.

Main Capabilities According to official materials, the tasks supported by Lance include: t2i (text-to-image), t2v (text-to-video), i2v (image-to-video), image_edit (image editing), video_edit (video editing), x2t_image (image understanding), and x2t_video (video understanding). The official statement says it has achieved competitive performance on image generation, image editing, and video generation benchmarks. The project also demonstrates Multi-turn Consistency Editing and Intelligent Video Generation capabilities.

Training and Scale Lance is trained from scratch using a staged multi-task training scheme, with a training budget of up to 128 A100 GPUs, and training covers image generation up to 768x768 as well as video generation at 480p and 12 FPS. The official statement indicates that output quality will vary depending on prompts, resolution, duration, motion complexity, and editing scenarios, and it believes that the post-training scheme still has room for improvement.

Usage Environment requirements: Python 3.10+, CUDA 12.4+ (required); inference requires a GPU with at least 40GB of VRAM. The officially tested dependency combinations on NVIDIA A100 are PyTorch 2.8.0 + cu126 + flash-attn 2.8.3, and PyTorch 2.5.1 + cu124 + flash-attn 2.6.3. The default installation command uses PyTorch 2.8.0 + cu126 solution.

Installation steps: first clone the repository, then configure the environment; if installing flash-attn from source fails, you can switch to a precompiled wheel (the official note states that this wheelhouse comes from a third-party repository, is for reference only, and you need to verify the matching of Python, PyTorch, and CUDA versions yourself). Then download the model weights from Lance-3B on Hugging Face and place them in the downloads/ directory. Before running, you need to configure the inference parameters at the top of inference_lance.sh.

Tasks and parameters: supports the tasks t2i, t2v, i2v, image_edit, video_edit, x2t_image, x2t_video, and you can customize the default data samples for each task by modifying TASK_DEFAULT_CONFIGS in inference_lance.py. The official recommendation is to write input prompts for all tasks according to the prompt format of the provided examples, which usually yields better generation quality. For video generation tasks, the optional parameter --ENHANCE_PROMPT true can enable prompt rewriting for T2V/I2V. This option requires openai==2.26.0 (already listed in requirements.txt), and the rewriting service must be configured through environment variables: LANCE_REWRITE_API_KEY, LANCE_REWRITE_MODEL_NAME, LANCE_REWRITE_BASE_URL; the official note emphasizes not to put real API keys into repository source files. If no valid rewriting configuration is provided, prompt rewriting is skipped, and in this case it is recommended to write prompts in the style of the examples. For all tasks, the optional parameter --CONFIG_PATH path/to/config.json can use a custom validation JSON/JSONL file to replace the task's default example configuration. The understanding task example configurations include config/examples/x2t_image_example.json (image question answering, reasoning, and image captioning) and config/examples/x2t_video_example.json (video question answering and video captioning).

Interface and integration: you can use python lance_gradio.py --server-name 127.0.0.1 --server-port 7860 to launch the Gradio demo locally; this interface supports image and video generation, editing, and understanding. Lance already supports vLLM-Omni. Runnable benchmark scripts are provided under benchmarks/.

Update log (officially listed): 2026/05/18 released the project homepage and open-sourced the initial inference code and model weights; 2026/05/19 the technical report went live on arXiv; 2026/05/25 the Hugging Face Space went live; 2026/05/26 the Gradio interface supports image and video generation, editing, and understanding; 2026/05/29 added Image-to-Video generation support; 2026/06/03 added support for vLLM-Omni; 2026/06/17 released fine-tuning code (see TRAIN for the training guide).

Applicable scenarios and limitations Applicable scenarios: researching unified multimodal modeling, image/video generation and editing, image/video understanding, and conducting related experiments at smaller model scales and with limited compute. Limitations: the official description explicitly states that it is a research project rather than a mature product, and output quality fluctuates; inference requires at least 40GB of VRAM; there are clear upper limits on training and generation resolution and video frame rate; prompt rewriting depends on the configuration of an external OpenAI-compatible service. The copyright notice is Copyright 2025 ByteDance Ltd. and/or its affiliates. The project acknowledges the contributors of BAGEL, Qwen2.5-VL-3B-Instruct, and Wan2.2.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools