A vision-language model created by grafting the language model weights from
INTELLECT-3
into the
GLM-4.6V
architecture.
Motivation
INTELLECT-3 is a strong open-source language model, but lacks vision capabilities. GLM-4.6V is a vision-language model with an identical language model architecture. By replacing GLM-4.6V's language model weights with INTELLECT-3's weights while preserving the vision encoder and projection layers, we create a vision-language model powered by INTELLECT-3.
Architecture
Both models share the same language model backbone:
46 transformer layers (layer 0 is dense MLP, layers 1-45 are MoE)
Visual merger projecting vision features to LLM hidden dimension
Downsampling convolution for spatial compression
What Was Grafted
The following weights were copied from INTELLECT-3 to GLM-4.6V:
INTELLECT-3
GLM-4.6V
model.layers.*
model.language_model.layers.*
model.norm.weight
model.language_model.norm.weight
What Was Preserved (from GLM-4.6V)
model.language_model.embed_tokens.weight
— kept to maintain vision token compatibility
lm_head.weight
— kept aligned with embed_tokens
model.visual.*
— entire vision encoder and merger preserved
Rationale
Why replace the final norm?
The RMSNorm after the last transformer layer is tightly coupled to the layer outputs it normalizes. INTELLECT-3's norm was trained end-to-end with its layers and learned to normalize their specific output distribution.
Why keep embed_tokens?
The vision merger projects visual features into the same embedding space as text tokens. Replacing embed_tokens could break the alignment between text and vision embeddings. Additionally, lm_head is often tied or co-trained with embed_tokens.
Why not replace lm_head?
Same reasoning — keeping lm_head and embed_tokens together maintains their learned relationship.
Known Limitations
Embedding space mismatch
: INTELLECT-3's layers learned representations in a potentially different embedding space than GLM-4.6V. This may cause some degradation in both language and vision-language performance.
Vision-language alignment
: The visual merger was trained to project into GLM-4.6V's representation space. INTELLECT-3 may have learned different internal representations, potentially affecting vision-language tasks.
Tokenizer compatibility
: While both models have the same vocabulary size (151552), verify tokenizer compatibility for your use case.
Creation Script
The model was created using
graft_intellect3_to_glm.py
:
More Information About INTELLECT-3V huggingface.co Model
INTELLECT-3V huggingface.co
INTELLECT-3V huggingface.co is an AI model on huggingface.co that provides INTELLECT-3V's model effect (), which can be used instantly with this QuixiAI INTELLECT-3V model. huggingface.co supports a free trial of the INTELLECT-3V model, and also provides paid use of the INTELLECT-3V. Support call INTELLECT-3V model through api, including Node.js, Python, http.
INTELLECT-3V huggingface.co is an online trial and call api platform, which integrates INTELLECT-3V's modeling effects, including api services, and provides a free online trial of INTELLECT-3V, you can try INTELLECT-3V online for free by clicking the link below.
QuixiAI INTELLECT-3V online free url in huggingface.co:
INTELLECT-3V is an open source model from GitHub that offers a free installation service, and any user can find INTELLECT-3V on GitHub to install. At the same time, huggingface.co provides the effect of INTELLECT-3V install, users can directly use INTELLECT-3V installed effect in huggingface.co for debugging and trial. It also supports api for free installation.