Instructions to use tencent/WePocketModel1.0-2B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tencent/WePocketModel1.0-2B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tencent/WePocketModel1.0-2B-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf tencent/WePocketModel1.0-2B-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tencent/WePocketModel1.0-2B-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf tencent/WePocketModel1.0-2B-GGUF:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf tencent/WePocketModel1.0-2B-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf tencent/WePocketModel1.0-2B-GGUF:BF16
Use Docker
docker model run hf.co/tencent/WePocketModel1.0-2B-GGUF:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use tencent/WePocketModel1.0-2B-GGUF with Ollama:
ollama run hf.co/tencent/WePocketModel1.0-2B-GGUF:BF16
- Unsloth Desktop
- Pi
How to use tencent/WePocketModel1.0-2B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tencent/WePocketModel1.0-2B-GGUF:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "tencent/WePocketModel1.0-2B-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use tencent/WePocketModel1.0-2B-GGUF with Docker Model Runner:
docker model run hf.co/tencent/WePocketModel1.0-2B-GGUF:BF16
- Lemonade
How to use tencent/WePocketModel1.0-2B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tencent/WePocketModel1.0-2B-GGUF:BF16
Run and chat with the model
lemonade run user.WePocketModel1.0-2B-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use tencent/WePocketModel1.0-2B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tencent/WePocketModel1.0-2B-GGUF:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default tencent/WePocketModel1.0-2B-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use tencent/WePocketModel1.0-2B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tencent/WePocketModel1.0-2B-GGUF:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "tencent/WePocketModel1.0-2B-GGUF:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
WePocketModel 1.0 2B GGUF
Model Overview
WePocketModel (WePM) is a vision-language model family developed by WeChat AI, Tencent for on-device applications. A shared backbone and vision encoder support three capabilities in a single model.
| Capability | Input and output |
|---|---|
| Generation | Generates text from text, images, or interleaved text and images for tasks such as OCR, image captioning, and visual question answering. |
| Embedding | Encodes text and images into L2-normalized vectors for retrieval and candidate ranking. |
| Decision | Evaluates application state and questions to return structured choices, ordinal scores, or binary judgments. |
This is the CPU GGUF release of WePocketModel 1.0 2B, converted from the 2B Safetensors checkpoint. The model has 2.23 billion parameters and a full embedding dimension of 2,048.
Available Variants
Choose one language weight file and pair it with the shared multimodal-BF16.gguf file.
| Language precision | Language weights | Shared vision and task weights | Combined weight file size |
|---|---|---|---|
| Q4_K_M (default) | language-Q4_K_M.gguf |
multimodal-BF16.gguf |
1.98 GB |
| BF16 | language-BF16.gguf |
multimodal-BF16.gguf |
4.48 GB |
Sizes refer to the two on-disk weight files in decimal GB. The Q4_K_M variant quantizes the language backbone. The shared vision and task tensors are stored in BF16 and computed in FP32 by the WePM CPU runtime.
Quick Start
Build the WePM CPU runtime
Use Python 3.10–3.13, Git, CMake 3.20 or later, and a C++17 compiler. The build script fetches the llama.cpp revision pinned by WePM and builds libwepm_gguf. Use a GitHub account with repository access if prompted.
git clone https://github.com/Tencent/WePocketModel.git
cd WePocketModel
python -m venv .venv
source .venv/bin/activate
python -m pip install torch==2.10.0 torchvision==0.25.0 \
--index-url https://download.pytorch.org/whl/cpu
python -m pip install -r inference/requirements-gguf.txt
python inference/build_gguf.py
Download and run Q4_K_M
If needed, run hf auth login with a Hugging Face account that has access to this repository.
hf download tencent/WePocketModel1.0-2B-GGUF \
--exclude language-BF16.gguf \
--local-dir checkpoints/WePocketModel1.0-2B-GGUF-q4
export WEPM_MODEL="$PWD/checkpoints/WePocketModel1.0-2B-GGUF-q4"
bash examples/cpu/generation/run.sh single_text
Use the same bundle for interleaved image and text generation, embedding, and structured decision.
bash examples/cpu/generation/run.sh interleaved
bash examples/cpu/embedding/run.sh
bash examples/cpu/decision/run.sh
Download and run BF16
hf download tencent/WePocketModel1.0-2B-GGUF \
--exclude language-Q4_K_M.gguf \
--local-dir checkpoints/WePocketModel1.0-2B-GGUF-bf16
python inference/infer_cpu.py \
--model checkpoints/WePocketModel1.0-2B-GGUF-bf16 \
--gguf-variant bf16 --task generate \
--prompt "Introduce yourself in one sentence." \
--output results/wepm-2b-gguf-bf16.json
Choose a fresh output path for repeated runs. See the GGUF inference guide for thread count, context size, and native library options.
Matryoshka embeddings
WePM supports Matryoshka Representation Learning (MRL) for multimodal embeddings. Select 64, 128, 256, 512, 1,024, or 2,048 dimensions with --embedding-dim. The runtime L2-normalizes the selected prefix of the embedding projection. The CLI defaults to 2,048 dimensions.
Both Q4_K_M and BF16 support these dimensions. This example uses the Q4_K_M bundle selected above.
python inference/infer_cpu.py \
--model "$WEPM_MODEL" --task embed \
--prompt "A photo of a red square." --embedding-dim 256 \
--output results/wepm-2b-gguf-embedding-256.json
Bundle Files
Keep the selected language weights and multimodal-BF16.gguf alongside bundle.json, the config, tokenizer, processor, chat template, and runtime_sources/. The bundle manifest records the weight inventory and asset hashes. SHA256SUMS.txt contains checksums for the three GGUF weight files.
Evaluation
Benchmark results for the WePM model family across embedding, generation, and structured decision tasks.
Intended Use and Limitations
WePM is intended for local applications that combine multimodal retrieval, generation, and structured decisions. Application developers should evaluate output quality on representative inputs and validate structured decisions before using them to trigger actions.
License and Citation
The WePM inference code is licensed under Apache 2.0. The license for these model weights is pending confirmation.
If you find our work useful, please cite it as:
@misc{wepm2026,
title = {WePM: Hierarchical Conflict Reconciliation for Unified MLLMs},
author = {{WeChat AI, Tencent}},
year = {2026},
howpublished = {Technical Report},
url = {https://arxiv.org/abs/2611.27365}
}
- Downloads last month
- 14
4-bit
16-bit
