MCPcopy Index your code
hub / github.com/InternLM/InternLM-XComposer

github.com/InternLM/InternLM-XComposer @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,236 symbols 7,510 edges 284 files 314 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img src="https://github.com/InternLM/InternLM-XComposer/raw/main/assets/logo_en.png" width="650"/>






<b><font size="6">InternLM-XComposer-2.5</font></b>








    InternLM-XComposer2.5 <a href="https://huggingface.co/internlm/internlm-xcomposer2d5-7b">🤗</a> <a href="https://modelscope.cn/models/Shanghai_AI_Laboratory/internlm-xcomposer2d5-7b"><img src="https://github.com/InternLM/InternLM-XComposer/raw/main/assets/modelscope_logo.png" width="20px"></a> &nbsp| XComposer2.5 Technical Report <a href="https://arxiv.org/abs/2407.03320">  📄 </a>

English | 简体中文

Thanks the community for <a href="https://huggingface.co/spaces/Willow123/InternLM-XComposer">HuggingFace Demo </a>  | <a href="https://openxlab.org.cn/apps/detail/WillowBreeze/InternLM-XComposer">OpenXLab Demo</a> of InternLM-XComposer-2.5.







👋 join us on <a href="https://discord.gg/xa29JuW87d" target="_blank">Discord</a> and <a href="https://r.vansin.top/?r=internwx" target="_blank">WeChat</a>

InternLM%2FInternLM-XComposer | Trendshift

🔥🔥🔥 InternLM-XComposer2.5-Reward

We release InternLM-XComposer2.5-Reward 🤗 (IXC-2.5-Reward, ACL 2025 Findings), a simple yet effective multi-modal reward model, including training code, evaluation scripts, and parts of the traininig data. Please refer to the project page for details.

🔥🔥🔥 InternLM-XComposer2.5-OmniLive

We release InternLM-XComposer2.5-OmniLive, a comprehensive multimodal system for long-term streaming video and audio interactions. Please refer to the project page for details.

Multimodal Projects of Our Team

InternLM-XComposer-2.5-Reward: A Simple Yet Effective Multi-Modal Reward Model

InternLM-XComposer-2.5-OmniLive: A Specialized Generalist Multimodal System for Streaming Video and Audio Interactions

InternLM-XComposer-2.5: A Versatile Large Vision Language Model Supporting Long-Contextual Input and Output

InternLM-XComposer2-: A Pioneering Large Vision-Language Model Handling Resolutions from 336 Pixels to 4K HD

InternLM-XComposer2: Mastering Free-form Text-Image Composition and Comprehension in Vision-Language Large Models

InternLM-XComposer: A Vision-Language Large Model for Advanced Text-image Comprehension and Composition

ShareGPT4Video: Improving Video Understanding and Generation with Better Captions

ShareGPT4V: Improving Large Multi-modal Models with Better Captions

MMDU: A Multi-Turn Multi-Image Dialog Understanding Benchmark and Instruction-Tuning Dataset for LVLMs

DualFocus: Integrating Macro and Micro Perspectives in Multi-modal Large Language Models

InternLM-XComposer-2.5 excels in various text-image comprehension and composition applications, achieving GPT-4V level capabilities with merely 7B LLM backend. IXC-2.5 is trained with 24K interleaved image-text contexts, it can seamlessly extend to 96K long contexts via RoPE extrapolation. This long-context capability allows IXC-2.5 to perform exceptionally well in tasks requiring extensive input and output contexts.

  • Ultra-High Resolution Understanding: IXC-2.5 enhances the dynamic resolution solution proposed in IXC2-4KHD with a native 560 × 560 ViT vision encoder, supporting high-resolution images with any aspect ratio.

  • Fine-Grained Video Understanding: IXC-2.5 treats videos as a ultra-high-resolution composite picture consisting of tens to hundreds of frames, allowing it to capture fine details through dense sampling and higher resolution for each frame.

  • Multi-Turn Multi-Image Dialogue: IXC-2.5 supports free-form multi-turn multi-image dialogue, allowing it to naturally interact with humans in multi-round conversations.

  • Webpage Crafting: IXC-2.5 can be readily applied to create webpages by composing source code (HTML, CSS, and JavaScript) following text-image instructions.

  • Composing High-Quality Text-Image Articles: IXC-2.5 leverages specially designed Chain-of-Thought (CoT) and Direct Preference Optimization (DPO) techniques to significantly enhance the quality of its written content.

  • Awesome performance: IXC-2.5 has been evaluated on 28 benchmarks, outperforming existing open-source state-of-the-art models on 16 benchmarks. It also surpasses or competes closely with GPT-4V and Gemini Pro on 16 key tasks.

Please refer to Technical Report for more details.

Demo Video

🔥 For the best experience, please keep the audio on while enjoying the video.

https://github.com/InternLM/InternLM-XComposer/assets/147793160/8206f07f-3166-461e-a631-9cbcdec6ae75

Youtube Video

Please refer to Chinese Demo for the demo of the Chinese version.

News and Updates

Model Zoo

Model Usage Transformers(HF) ModelScope(HF) Release Date
InternLM-XComposer-2.5 Video Understanding, Multi-image Multi-tune Dialog, 4K Resolution Understanding, Web Craft, Article creation, Benchmark 🤗internlm-xcomposer2.5 internlm-xcomposer2.5 2024-07-03
InternLM-XComposer2-4KHD 4K Resolution Understanding, Benchmark, VL-Chat 🤗internlm-xcomposer2-4khd-7b internlm-xcomposer2-4khd-7b 2024-04-09
InternLM-XComposer2-VL-1.8B Benchmark, VL-Chat 🤗internlm-xcomposer2-vl-1_8b internlm-xcomposer2-vl-1_8b 2024-04-09
InternLM-XComposer2 Text-Image Composition 🤗internlm-xcomposer2-7b internlm-xcomposer2-7b 2024-01-26
InternLM-XComposer2-VL Benchmark, VL-Chat 🤗internlm-xcomposer2-vl-7b internlm-xcomposer2-vl-7b 2024-01-26
InternLM-XComposer2-4bit Text-Image Composition 🤗internlm-xcomposer2-7b-4bit internlm-xcomposer2-7b-4bit 2024-02-06
InternLM-XComposer2-VL-4bit Benchmark, VL-Chat [🤗internlm-xcomposer2-vl-7b-4bit](h

Extension points exported contracts — how you extend this code

IAudioLoadingProps (Interface)
(no doc)
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/audio-loading/audio-loading.tsx
Options (Interface)
(no doc)
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts
RouteItem (Interface)
(no doc)
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/routes/routes.tsx
ChatContext (Interface)
(no doc)
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/context/chat-context.tsx

Core symbols most depended-on inside this repo

from_pretrained
called by 165
projects/DualFocus/dualfocus/model/language_model/mpt/adapt_tokenizer.py
write
called by 59
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/utils.py
generate
called by 52
InternLM-XComposer-2.0/examples/IXC2_demo.py
eval
called by 48
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/benchmark/Benchmark.py
append_message
called by 48
projects/DualFocus/dualfocus/conversation.py
embed_tokens
called by 38
projects/DualFocus/dualfocus/model/language_model/llava_mpt.py
encode_img
called by 36
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py
from_pretrained
called by 32
projects/ShareGPT4V/share4v/model/multimodal_encoder/configuration_evaclip.py

Shape

Method 1,210
Function 680
Class 324
Route 15
Interface 4
Enum 3

Languages

Python97%
TypeScript3%

Modules by API surface

InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py74 symbols
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py66 symbols
InternLM-XComposer-2.0/examples/IXC2_demo.py63 symbols
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py56 symbols
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py56 symbols
gradio_demo/gradio_demo_composition.py55 symbols
InternLM-XComposer-2.0/examples/gradio_demo_composition.py52 symbols
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py45 symbols
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py45 symbols
projects/ShareGPT4V/share4v/train/train.py35 symbols
projects/DualFocus/dualfocus/train/train.py33 symbols
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py32 symbols

For agents

$ claude mcp add InternLM-XComposer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact