Open Source
Open Source

WePM 4B Does Three Jobs: One Model, 61.9% Less Memory

Tencent WeChat open-sourced WePM (WePocketModel): one 4B vision-language backbone handling representation, generation and decisions. Author tests claim 61.9 percent lower memory versus separate stacks; code and weight licenses and on-device requirements are checked.

Published November 24, 20269 min read
<!-- wepm-pocket-model-opensource | open-source | WePM 4B Does Three Jobs: One Model, 61.9% Less Memory -->

Tencent's WeChat team has opened up WePM (WePocketModel): one vision-language backbone that does three jobs, representation, generation, and typed decisions. The code is in the WePocketModel repository, at https://github.com/Tencent/WePocketModel . As of November 24, 2026, the repo carries Transformers and GGUF download guides for the 2B and 4B weights, inference code, examples, and the technical report PDF. One model, one backbone, three jobs, and a 61.9% cut in resident weight memory are the claims, all from the authors' own evaluation rather than an independent reproduction.

One backbone, three output paths

The official framing is a compact unified multimodal family with 2B and 4B tiers, one shared vision-language backbone, and one parameter set covering three output types. Representation produces L2-normalized multimodal embeddings for image retrieval, text retrieval, and candidate ranking. Generation covers OCR, image captioning, visual question answering, summarization, and assistant responses. Decision produces typed outputs for option selection, ordinal scoring, and binary judgment.

The paths differ but the trunk is shared. Embedding appends a learned E slot, then projects and L2-normalizes its hidden state. Decision appends a separate J slot and maps its hidden state to candidate logits with a direct head. Generation uses autoregressive decoding with no soft slot. The extra machinery is just two small slots and a prediction head; the main parameters are shared across one vision encoder and one multimodal language backbone.

The authors initialize WePM from the pretrained Qwen3.5-4B/2B dense model and fine-tune all parameters, and unless stated otherwise WePM means the 4B model. The 4B choice comes from deployment profiling: on representative on-device platforms such as Apple M3 it sits near the practical upper bound for dense models. A caution: the retrieved paper sections only say Qwen3.5-4B/2B dense. Claims that 4B means 4.54B parameters, 2B means 2.21B, and the weights take about 9.1GB come from secondary sources with the HF cards unreachable locally, so they are not official numbers. This article uses only the 4B and 2B labels.

HCD measures task families per unit of memory

The paper introduces heterogeneous capability density (HCD) to answer a concrete question: how many heterogeneous task families can one unit of resident inference memory cover? HCD equals (K/M) times H_w, where K is the number of predefined families reaching their performance thresholds, M is the resident inference memory they need, p_i is family i's normalized performance, and w_i its application-specific importance. H_w is the weighted harmonic mean, the sum of w_i divided by the sum of w_i over p_i. The Chinese README puts it as usable capability families times aggregate quality, divided by resident inference memory.

Two details matter. First, heterogeneity is counted at the capability-family level, not the benchmark level: tasks with the same output form and objective form one family. OCR and visual question answering are both generation tasks, so they do not separately raise K, and all families get equal weights to encourage uniform coverage. Second, the memory term counts BF16 weights only, not full runtime memory; KV cache, activations, framework overhead, and runtime fragmentation are excluded. HCD captures the density of end-to-end usefulness, or how many kinds of work one parameter set covers, rather than peak speed or latency.

Three mechanisms for reconciling conflicts

Putting three capabilities into one backbone creates competing objectives. Three mechanisms handle the tension.

MGVB, multi-granularity visual budgeting, starts from the spatially indexed features of a single vision-encoder forward pass and builds three complementary token banks. The global bank uses learned latent queries to aggregate image-level semantics; the regional bank summarizes candidate regions while preserving object identities, spatial layouts, and relations; the fine-grained bank keeps patch features for small objects, scene text, and localized details that regional aggregation would suppress. The three are concatenated as V, with budgets Bg plus Br plus Bf equal to B, the total visual token count fed to the language trunk. Regional and fine-grained selection is conditioned on available textual context, with a query-independent fallback when no text is given. Secondary claims of 512 visual tokens with 8 global and 64 regional are not in the retrieved paper sections, which give only the three banks and budget symbols, so they are not official values.

ULKD, unified listwise knowledge distillation, puts retrieval and generation distillation in one distribution-matching framework with two frozen capability-specific teachers. At each generation step the choice set is the vocabulary, while retrieval defines a distribution over the candidate list. Teachers give relative preferences, and the student minimizes KL divergence to the teacher distribution, avoiding collapse into a single hard token, response, or positive candidate. The generation teacher is Qwen3.5-27B Dense; the embedding teacher is WeMM-9B, which also mines hard negatives. Three losses combine: an on-policy token-level KL along the student's sampling trajectory, a candidate-list KL, and projected representation alignment, weighted by eta_opd, eta_rank, and eta_repr. ULKD acts as an auxiliary stream alongside the original objectives, while decision keeps its native typed loss, generation keeps token-level supervision, and retrieval keeps hard contrastive supervision through the last-state embedding readout.

SEMO, stable and efficient multitask optimization, uses explicit loss weights and an exposure schedule to constrain each task's contribution. For the task set of embedding, generation, and decision, lambda_i is a fixed positive per-batch weight and n_i,t the batch count set by a predefined schedule derived from task-pool sizes; the objective sums lambda_i times each task's batch losses. Lambda_i fixes per-batch weight and n_i,t fixes exposure, both explicit rather than left to loss normalization or sampling frequency. Implementation uses sequential gradient accumulation: each batch does a forward pass then weighted backpropagation and releases its graph, while shared parameters stay fixed at theta_t until all batches for logical update t have contributed gradients. Only one batch graph needs memory at a time, which makes the approach practical under tight memory.

Scores: all author-measured

Every score in the paper is the authors' own official evaluation, not a third-party independent reproduction. The text says all baseline results were reproduced with the same input resolution and evaluation scripts as WePM, and each benchmark score uses that benchmark's standard metric. No reproduction by a team outside Tencent was found, so the gains below are author-measured.

On the joint score, WePM beats every compared baseline across five evaluation groups, raising the Joint score from strongest baseline ULME's 38.15 to 52.74, a 14.59-point gain. The five groups are image retrieval, text retrieval, mathematical and scientific reasoning, visual question answering, and OCR with document understanding. In Table 4, ULME scores 34.13, 32.78, 28.16, 41.46, and 58.93 with a Joint of 38.15; WePM scores 41.30, 35.90, 58.60, 60.84, and 81.18 with a Joint of 52.74, so the gain is not confined to one or two groups. On single-task averages the paper reports WePM-4B highest in all three families: 72.86 over 30 embedding benchmarks, 62.41 over 39 generation benchmarks, and 61.11 over seven typed-decision benchmarks. README coverage is 30 embedding benchmarks against 10 models, 39 generation against 10, and seven decision (JEV) against 22, with WePM-4B first in all three.

WePM-2B reaches 55.69 with half the parameters, exceeding the two 2B baselines by 11.20 and 16.42 points and surpassing three of four 4B-scale baselines under the shared representation and generation protocol, again author-measured.

Memory and the 2.64x figure: two baselines

Memory saving is the most eye-catching number. The paper says WePM reduces resident weight memory by 61.9% against M1, the strongest separate stack by HCD, going from 21 GB to 8 GB while improving harmonic performance by 0.45 points. M1 has an HCD of 0.092 and WePM 0.244, and the ratio gives 2.64x. This must be labeled precisely: 2.64x is the single-group comparison against M1, the highest-HCD separate stack, not a multiple spanning all groups.

The README gives a separate range figure: six separate three-model compositions need about 21 to 43 GB of BF16 weight memory, reach roughly 64.2% to 64.8% harmonic performance, and score 0.045 to 0.092 on HCD, while WePM-4B uses about 8 GB, reaches about 65.1%, and scores 0.244, yielding roughly 2.7 to 5.4x the HCD. M5 is the highest-quality separate stack at 64.82 with 33 GB, whereas WePM covers all three families with one 8-GB set and reaches 65.06. Every group uses d3-mini-4.5B as its decision component. The 2.64x and the 2.7 to 5.4x range describe different comparison sets and cannot be mixed, nor can the range be presented as the uniform gain over the strongest baseline. Again, the memory figure counts BF16 weights only, excluding KV cache, activations, framework overhead, and runtime fragmentation.

On-device requirements and training recipe

For local deployment, the README states: on the Transformers path the 4B BF16 weights take about 8.5 GiB with 16 GiB VRAM recommended; the CPU FP32 path uses about 17 GiB of weights with 24 GiB system RAM recommended; on the GGUF path the 4B Q4_K_M language file plus shared multimodal weights occupy about 3.19 GiB on disk. Downloads are documented in the checkpoints directory, for example an hf download command for tencent/WePocketModel1.0-4B with a local-dir argument and a matching GGUF variant, across four HF repositories for 2B, 4B, 2B-GGUF, and 4B-GGUF. The repo root also ships inference code, examples, the download guide, and the technical report PDF.

The maximum training sequence length is 8,192 tokens and the combined generation, embedding, and decision corpus holds about 100 million cleaned samples. During full-capability training, the three batch types are sampled in a 7:5:1 ratio according to the data distribution. That is a batch sampling ratio, not a ratio of corpus sample counts, and losses reduce per supervised token, per query, and per typed decision instance respectively. Mistaking it for data composition would change the inferred corpus scale.

License: code and weights are separate

The code license is settled fact. The LICENSE file begins with a custom Tencent header stating Tencent is pleased to support the open source community by making WePocketModel available, that copyright is held by 2026 Tencent, and that for the avoidance of doubt WePocketModel refers to code made publicly available by Tencent in this repository, followed by the full Apache License 2.0 text. The code is Apache-2.0 with a Tencent copyright notice. The GitHub API license field reads other or NOASSERTION because detection failed on the custom header, which is not grounds for calling the project non-Apache-2.0.

Weights differ. The README states verbatim that the code license does not declare a license for model weights and that applicable terms must be consulted in each HF model repository. The 4B and 2B model cards on HF could not be retrieved locally, so the weight-license field was not verified from a primary source. The defensible wording is that official weight terms are unpublished and unverified here, subject to the HF cards; it would be wrong to say the weights are also Apache-2.0. Secondary sources conflict, another reason not to settle this on the authors' behalf.

Release dates come in several versions that should be kept side by side: arXiv v1 is dated 2026-11-20, the GitHub repository was created on 2026-11-16, the README changelog says WePM 1.0 is now open source on 2026-11-23, media reports fall on 2026-11-20 and 2026-11-23, and a secondary source puts HF repository creation at 2026-11-17. These point to different events and are not collapsed into one official launch day. At verification the repo showed about 85 stars and 1 fork, Python as the language and main as the default branch.

One easily confused sibling project

Tencent's WeMM-Video is a separate same-team line in omni-modal video understanding, not a WePocketModel variant; see the omni-modal video comparison review.

FAQ

Q1: How many models are there, and why call it one backbone? A1: Two weight tiers, 2B and 4B, are published, but each has one shared vision encoder and one multimodal language backbone. The three capabilities add only small E and J slots or a direct prediction head, so the main parameters are fully shared; one backbone covers three jobs.

Q2: How is the 61.9% memory saving calculated? A2: In the author-measured evaluation, WePM cuts resident weight memory from 21 GB to 8 GB against M1, the strongest separate stack by HCD, a 61.9% reduction, while harmonic performance rises by 0.45 points. The figure counts BF16 weights only and excludes KV cache, activations, framework overhead, and runtime fragmentation.

Q3: Do 2.64x and the README's 2.7 to 5.4x conflict? A3: No, but the baselines differ. The 2.64x compares against the single highest-HCD group M1, 0.244 versus 0.092; the 2.7 to 5.4x range compares against six separate three-model compositions with HCD from 0.045 to 0.092. They cannot be mixed, and 2.64x is not a third-party reproduction result.

Q4: Are the weights Apache-2.0 as well? A4: The code is Apache-2.0, confirmed by the LICENSE text; the API's NOASSERTION is only a detection failure. The README does not declare a weight license, the HF cards were not verified locally, so the correct statement is that official weight terms are unpublished and unverified here, not that the weights are also Apache-2.0.

Q5: Can an ordinary machine run the 4B model? A5: Per the README, Transformers needs about 8.5 GiB of BF16 weights with 16 GiB VRAM recommended; CPU FP32 uses about 17 GiB of weights with 24 GiB system RAM recommended; GGUF Q4_K_M language file plus shared multimodal weights take about 3.19 GiB on disk. Speed depends on the engine and context length.

Related reading

This article is AI-assisted and human-edited. Last updated: 2026-11-24

FAQ

How many models are there, and why call it one backbone?
Two weight tiers, 2B and 4B, are published, but each has one shared vision encoder and one multimodal language backbone. The three capabilities add only small E and J slots or a direct prediction head, so the main parameters are fully shared; one backbone covers three jobs.
How is the 61.9% memory saving calculated?
In the author-measured evaluation, WePM cuts resident weight memory from 21 GB to 8 GB against M1, the strongest separate stack by HCD, a 61.9% reduction, while harmonic performance rises by 0.45 points. The figure counts BF16 weights only and excludes KV cache, activations, framework overhead, and runtime fragmentation.
Do 2.64x and the README's 2.7 to 5.4x conflict?
No, but the baselines differ. The 2.64x compares against the single highest-HCD group M1, 0.244 versus 0.092; the 2.7 to 5.4x range compares against six separate three-model compositions with HCD from 0.045 to 0.092. They cannot be mixed, and 2.64x is not a third-party reproduction result.
Are the weights Apache-2.0 as well?
The code is Apache-2.0, confirmed by the LICENSE text; the API's NOASSERTION is only a detection failure. The README does not declare a weight license, the HF cards were not verified locally, so the correct statement is that official weight terms are unpublished and unverified here, not that the weights are also Apache-2.0.
Can an ordinary machine run the 4B model?
Per the README, Transformers needs about 8.5 GiB of BF16 weights with 16 GiB VRAM recommended; CPU FP32 uses about 17 GiB of weights with 24 GiB system RAM recommended; GGUF Q4_K_M language file plus shared multimodal weights take about 3.19 GiB on disk. Speed depends on the engine and context length.

Related

Open Source

Sequence In, Structure Out: Why Did a 62-Star Repo Make Nature?

structRFM is a structure-guided RNA foundation model from the MIRACLE lab at USTC; the paper appeared in Nature on November 5, 2026 (DOI 10.1038/s41586-026-11210-2). The repository heqin-zhu/structRFM is MIT licensed and showed 62 stars in a November 6, 2026 GitHub API check; it was created in February 2025 and its README still points to the August 2025 bioRxiv preprint. The team says the roughly 21 million sequence-structure pairs, model weights and source code are public: the dataset is built from RNAcentral and BPfold with a 512-token length cap and is 4.5 GB on Zenodo. SgMLM structure-guided masked language modeling and MUSES multi-source structure ensembling let the model emit sequence-level, nucleotide-level and pair-level features from sequence alone, supporting secondary and tertiary structure prediction, splice site prediction, IRES identification, ncRNA classification and zero-shot homology classification.

Nov 6, 20269 min read
Open Source

17 Seconds on a CPU: Can an API Prove Which Model Answered?

anthropics/FlashProve is an open-source research prototype for zero-knowledge verifiable inference from Anthropic (Apache-2.0, 843 stars per a November 5, 2026 GitHub API check, version 0.16.0, officially labeled a research artifact: not maintained and not accepting contributions). The three-step protocol: the provider publishes a weight commitment ID offline (about 39 minutes on one H100), attaches a GPU-generated proof to each reply (about 19MB per 1024 tokens), and anyone verifies with cp_verify on a plain CPU in seconds. It runs Llama 4 Maverick at full 400B size on a single H100 at about 110 tokens per second of proof prefill with about 17-second CPU verification, at a cost of roughly 70 to 95 times normal inference GPU time; soundness is formally proved in Lean 4. It proves provenance, not correctness, and no major provider ships proofs yet.

Nov 5, 20269 min read
Open Source

Even Failed Experiments Trained It: An MIT Science LLM

On November 2, Deep Principle released and open-sourced Hydrogen-1.0: a 753B science LLM post-trained from GLM-5.3, under MIT, live on ModelScope and HuggingFace (deep-principle/Hydrogen-1.0, about 1.51TB BF16, plus NVFP4/MXFP4 variants, tested on 8 GPUs with SGLang). Vendor-reported FSR 38.3% beats GPT-6-Astra at 33.3% and GPQA-Diamonds 93.0% nears Kimi-K3; its signature is training on its own lab records including failed experiments, with a Lab Compile step that catches faulty experiment instructions.

Nov 4, 20269 min read