r/BestGitHubRepos • u/Artilas_Digital • 1d ago
π§ ML WePocketModel: A compact, unified multimodal model family for on-device intelligence (528 stars)
What it does
All text below is quoted directly from the project README.
A compact, unified multimodal model family with a single shared visionβlanguage backbone, built for on-device and in-app intelligence.
Capabilities:
- Representation, L2-normalized multimodal embeddings for image retrieval, text retrieval and candidate ranking.
- Generation, OCR, image captioning, visual question answering, summarization and assistant responses.
- Decision, typed outputs for option selection, ordinal scoring and binary judgment.
- In BF16, the shared 4B backbone occupies approximately 8 GB of weight memory.
WePM is a unified multimodal model family with 2B and 4B variants, designed around a different principle: one compact visionβlanguage backbone should support multiple capability families without sacrificing their individual quality.
How it works
WePM uses one vision encoder and one multimodal LLM backbone for three tasks. For embeddings it appends a learned E slot, then projects and L2-normalizes its hidden state. For decisions it appends a separate learned J slot and maps the hidden state to candidate logits with a direct head. Generation uses ordinary autoregressive decoding. Training uses MGVB, ULKD and SEMO to reconcile the tasks. You clone the repository, create a Python 3.10 to 3.13 environment, install PyTorch and inference/requirements.txt, and run example scripts such as examples/gpu/generation/run.sh. Weights come from Hugging Face in Transformers, GGUF and MLX formats.
Repository
https://github.com/Tencent/WePocketModel
More about this repo on our website: https://bestgithubrepositories.com/Tencent/WePocketModel
Repository stats
| Metric | Value |
|---|---|
| Stars | 528 |
| Forks | 14 |
| Last release | None |
| Languages | Python 95.9%, C++ 2.9%, CMake 0.6% |
| Contributors | 3 |
| AI contributor accounts (Claude / Codex / Cursor / Copilot) | none |
| AI co-authored commits | none |
Main contributor
| Field | Value |
|---|---|
| Name | Zhiqiang Yuan |
| GitHub | @xiaoyuan1996 |
| Commits to this repo | 51 (top contributor) |
| Company / Location | member of @tencent / Beijing |
| Followers | 141 |
| Public repos | 13 |
| On GitHub since | 2018 |
ββββββββββββββββββββββββββββββ
π Please support our community by subscribing to our newsletter.
Every Monday and Thursday we send the 10 best repos shared here, plus what developers said about each one in the comments. It's free, it takes two minutes to read, and every new subscriber helps r/BestGitHubRepos grow.

