deepseek-ai/Janus

Janus-Series: Unified Multimodal Understanding and Generation Models

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 57 minutes ago
Added to GitGenius on February 1st, 2025
Created on October 18th, 2024
Open Issues & Pull Requests: 180 (+0)
Number of forks: 2,233
Total Stargazers: 17,750 (+0)
Total Subscribers: 144 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 21.0 hours
Mean response time: 15.5 days
90th percentile: 38.3 days
Tracked items: 122

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 159
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 399 days
Stale 30+ days: 159
Stale 90+ days: 157

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

The Janus repository from DeepSeek AI contains a series of unified multimodal models designed to handle both understanding and generation tasks within a single framework. The project includes three main model variants: Janus, JanusFlow, and Janus-Pro, with model sizes ranging from 1.3 billion to 7 billion parameters and sequence lengths of 4096 tokens. The repository is written in Python and licensed under the MIT License for code, with model usage governed by DeepSeek's Model License.

Janus addresses a fundamental challenge in multimodal AI by decoupling visual encoding into separate pathways for understanding and generation tasks while maintaining a unified transformer architecture. This design choice resolves conflicts that arise when a single visual encoder must serve both purposes simultaneously. The framework uses an autoregressive approach that enables the model to perform both multimodal understanding (analyzing images and text together) and text-to-image generation within the same unified system. According to the README, Janus surpasses previous unified models and matches or exceeds the performance of task-specific models designed for individual modalities.

JanusFlow represents an evolution of the original Janus approach by integrating rectified flow, a state-of-the-art generative modeling technique, with autoregressive language models. The key innovation documented in the repository is that rectified flow can be trained directly within the large language model framework without requiring complex architectural modifications. This minimalist approach achieves comparable or superior performance to specialized models while significantly outperforming other unified approaches across standard benchmarks.

Janus-Pro builds upon the original Janus work with three major improvements: an optimized training strategy, expanded training data, and scaling to larger model sizes. The repository indicates that Janus-Pro achieves significant advancements in both multimodal understanding and text-to-image instruction-following capabilities while enhancing the stability of text-to-image generation. A technical report documenting Janus-Pro's improvements is included in the repository.

The repository provides multiple interfaces for using these models. Users can perform simple inference for both multimodal understanding and text-to-image generation tasks. The project includes Gradio demo implementations available both locally and online through Hugging Face Spaces for all three model variants. Additionally, a FastAPI server implementation is provided for hosting the models as an API service, enabling integration into larger applications.

The repository supports Python 3.8 and above, with installation instructions and quick-start examples provided for each model variant. All models are available through Hugging Face, making them accessible for both research and commercial applications. The project's classification spans multiple domains including PyTorch implementation, multimodal AI, LLM inference, transformer architecture, GPU acceleration, and natural language processing, reflecting its comprehensive approach to unified multimodal modeling.