WeVisOne-VL-2B Vision Encoder
Vision Encoder and Mask Decoder
1 min read
This package contains a standalone vision encoder and the original mask decoder from Tencent's WeVisOne-VL-2B multimodal model. The language portion and tokenizer are not included. This set is designed for developers who need access to multi-level visual features and component-wise segmentation integration without running the entire heavy multimodal model.
Key features
- Includes 315 vision block tensors (approx. 406M parameters) in BF16 format.
- Contains a separate mask decoder file of about 9.5M parameters.
- Preserves original source keys and is compatible with Qwen2VL image preprocessor standards.
- Comes with the original decoder implementation included to verify wiring correctness.
What you can do
- Extract pre-merged patch features and multi-level visual features from images.
- Integrate the vision encoder into custom computer vision pipelines and segmentation tasks.
- Use the mask decoder with external object queries and normalized boxes.
Example
from huggingface_hub import snapshot_download
import importlib.util, sys, torch
root = snapshot_download('gatilin/wevisone-vl-2b-vision-encoder')
sys.path.insert(0, root)
spec = importlib.util.spec_from_file_location('wevisone_visual', root + '/component.py')
component = importlib.util.module_from_spec(spec)
spec.loader.exec_module(component)
vision = component.load_model(root, dtype=torch.float32, device='cpu')Read more
Details• Base model: tencent/WeVisOne-VL-2B.
• Encoder parameters: 406,957,056 (including 24 vision blocks and DeepStack mergers).
• Decoder parameters: 9,511,460.
• License: Apache-2.0.










Comments