2026-12-03 10:18
Introduction: The 4B model takes only 8GB, and retrieval, generation, and decision-making are unified in one model. What Is WePM WePM (WePocketModel) is an on-device unified model open-sourced by WeChat AI
What Is WePM
WePM (WePocketModel) is a series of open-source on-device unified multimodal models from WeChat AI (including 4B and 2B). A single vision-language backbone simultaneously supports three capabilities: retrieval representation, content generation, and decision-making. The team proposes three technologies—MGVB, ULKD, and SEMO—to coordinate multi-task training conflicts. The 4B version uses only about 8GB of weights, reducing memory by 61.9% compared with a combination of specialized models, while delivering better overall performance.

Main Features of WePM
- Multimodal representation (retrieval): Understands image-text content in vector form and supports image retrieval, text retrieval, and visual question answering-style matching tasks.
- Content generation: Generates text responses based on image-text input, covering scenarios such as mathematical reasoning, visual question answering (VQA), and OCR.
- Typed decision-making: Judges and selects structured candidate actions, supporting scenarios such as intelligent assistants and game assistants that need to determine what to do next.
- Integrated on-device deployment: 4B/2B parameters plus dual MLX/GGUF formats. A single model runs all three capabilities locally on a Mac or in a pure CPU environment without the cloud.
Technical Principles of WePM
- Unified vision-language backbone: WePM enables three types of tasks to share the same set of core parameters. All visual information is uniformly encoded and sent to the shared backbone, then processed separately by task-related output heads. This compresses the redundancy of independent multi-model deployment into one set of resident weights (about 8GB for the 4B version). Heterogeneous Capability Density (HCD) is used to measure the balanced capability that unit memory can carry.
- MGVB (Multi-Granularity Visual Budget Allocation): Different tasks focus on different visual granularities, and uniform compression can easily lose key details. MGVB organizes visual features into three complementary token banks—global, regional, and fine-grained—that share a fixed budget. It evaluates the relevance of each region in combination with the text context of the current task and prioritizes retaining the visual evidence that the task truly needs. During offline index construction, it uses a query-independent selection method, balancing effectiveness and generality.
- ULKD (Unified Listwise Knowledge Distillation): Retrieval and generation data are usually unpaired and lack unique standard answers, so forcibly constructing pseudo-answers introduces erroneous supervision. ULKD instead transfers the teacher model's soft preferences: the generative teacher provides next-token distribution guidance along the student's own generated sequence trajectory, while the representation teacher transfers relative preferences among candidates and vector representations, enabling the student to receive correction along its own exploration path.
- SEMO (Stable and Efficient Multi-task Optimization): Tasks differ in loss scale and data frequency and can easily crowd each other out. SEMO explicitly decomposes task contributions into two controllable factors: loss coefficient (per-step contribution strength) and participation frequency (cumulative contribution within a period). During training, each task batch sequentially completes forward and backward passes, releases the computation graph, and parameters are updated uniformly at the end. This clarifies capability trade-offs and reduces peak training memory by about 63.7%.

Follow WeChat and reply "Open Source" to join the AI Open Source Project Community
How to Use WePM
- Get the code: Clone the project repository from GitHub (Tencent/WePocketModel) and check the official README for runtime requirements.
- Download the model: Download the required version (4B or 2B) from the tencent/wepocketmodel collection on HuggingFace.
- Choose a format: On Apple Silicon Macs, choose the MLX version for better performance; in pure CPU environments, choose the GGUF version.
- Load and infer: Use the scripts or interfaces provided by the project to load the model, then input image-text content to invoke retrieval, generation, or decision-making capabilities.
- Build applications: Organize the "find—understand—reply—decide" workflow according to business needs, with the unified model providing multimodal capability support for each stage.
Core Advantages of WePM
- One set of parameters, three capabilities: The same vision-language backbone simultaneously supports representation, generation, and decision-making, with no need to deploy separate models for different tasks.
- Significantly lower memory cost: The 4B version has about 8GB of resident weights, 61.9% less than a combination of specialized models (21–43GB).
- Industry-leading capability density: Measured by HCD, it carries more balanced capability under the same memory, reaching 2.64 times that of the best specialized combination.
- Better overall performance: Across 76 benchmarks, all three capabilities rank first among models of the same scale. The retrieval-generation Joint score is 52.74, far exceeding the previous best baseline.
- On-device friendly: Provides dual MLX and GGUF formats and supports fully local operation on Mac M-series chips and in pure CPU environments.
WePM Project Links
- GitHub Repository: https://github.com/Tencent/WePocketModel
- HuggingFace Model Collection: https://huggingface.co/collections/tencent/wepocketmodel
- arXiv Technical Paper: https://arxiv.org/pdf/2611.27365
Comparison with Similar Competitors of WePM
| Comparison Dimension |
WePM-4B |
ULME |
| Retrieval (Image/Text) |
41.30 / 35.90 |
34.13 / 32.78 |
| Generation (Math/VQA/OCR) |
58.60 / 60.84 / 81.18 |
28.16 / 41.46 / 58.93 |
| Joint Overall Score |
52.74 |
38.15 |
| Decision-making Capability |
Supported: Native support (7 decision benchmarks) |
Not supported: Not supported |
| Model Architecture |
Representation, generation, and decision-making share the same backbone |
Retrieval and generation are unified; no decision path |
| Deployment Cost |
Single model with about 8GB of resident weights |
Requires deployment with other specialized models |
| On-device Support |
Dual MLX / GGUF formats; runs on Mac and pure CPU |
Not optimized for integrated on-device deployment |
Application Scenarios of WePM
- Personal intelligent assistant: Completes the find—understand—reply—decide chain locally, managing personal images, documents, and schedules without uploading to the cloud.
- Game intelligent assistant: Understands game visuals and inventory status, retrieves item information, generates replies, and decides the next action.
- Offline document retrieval and question answering: Builds indexes for enterprise or personal local knowledge bases, supports semantic search, and generates answers based on document content.
- On-device privacy applications: In data-sensitive scenarios such as healthcare and finance, all inference is completed locally to prevent private data from being transmitted externally.
- Intelligent terminal interaction: Provides unified visual understanding, dialogue, and operational decision-making capabilities for devices such as phones, PCs, and robots, reducing multi-model deployment overhead.
Source: AI Tools Collection