Model reference · open weights

WePocketModel1.0-MLX

Not for GPU servers NEW · this week LLMs tencent Vision + text 2 builds Open weights 0 dl/mo

WePocketModel1.0-MLX is an open-weight language model from tencent. Built for Apple silicon (MLX). It does not run on NVIDIA GPUs.

  • WePocketModel1.0-MLX is a 4.5B parameter image-text-to-text model developed by Tencent and released under the Apache 2.0 license.
  • It supports a 262144 token context length and is optimized for Apple silicon using the MLX framework.
  • The model handles generation, embedding, and decision tasks for text and image inputs.

Summary of the tencent/WePocketModel1.0-4B-MLX model card, 2026-11-25

What it is

Released bytencent
Released2026-11-25
Parameters4.5B
VRAM9.1 GB for the weights

What it runs on

Memory and cards for WePocketModel1.0-4B-MLX (MLX)

9.1 GBweights, file size
33 MBcache per 1K tokens
103 MBfixed state per request
2.1 GBruntime overhead, at least
262,144 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB18K11.6 GB
RTX 4060 Ti 16 GB113121K15.4 GB
RTX 3090 24 GB3210all 256K23.4 GB
RTX 4090 24 GB3210all 256K23.4 GB
RTX 5090 32 GB5316all 256K31.0 GB
L40S 48 GB8827all 256K44.0 GB
A100 80 GB18056all 256K78.2 GB
H100 80 GB16552all 256K78.1 GB
RTX PRO 6000 Blackwell 96 GB20865all 256K93.8 GB
DGX Spark (GB10) 128 GB unified24477all 256K107 GB
H200 141 GB327103all 256K138 GB
B200 180 GB428135all 256K176 GB
2× RTX 3060 12 GB
tensor parallel
268all 256K11.6 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
111.6 GB12.4 GB
513.1 GB17.1 GB
814.2 GB20.6 GB
1617.2 GB30.0 GB
3223.1 GB48.9 GB
6435.0 GB86.5 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
WePocketModel1.0-4B-MLX (above) ↗ 4.5BMLX 9.1 GBRTX 3060 12 GB
WePocketModel1.0-2B-MLX ↗ 2.2BMLX 4.5 GBRTX 3060 12 GB

From the model card

What tencent says about WePocketModel1.0-MLX

Read the model card

Apple silicon build of tencent/WePocketModel1.0-4B for MLX. The weights are converted to the MLX layout and shipped with a self-contained runtime (runtime/), so the model runs on the Apple silicon GPU with no PyTorch, no torchvision and no video toolchain: tokenization uses tokenizers, and the Qwen3-VL image preprocessing (smart_resize + patchify) plus the MGVB visual bottleneck are re-implemented in numpy/PIL/MLX.

One set of parameters still serves all three WePM capability families:

CapabilityInput and output
GenerationGenerates text from text, images, or interleaved text and images (OCR, captioning, VQA, chat). Slotless decoding.
EmbeddingEncodes text and images into L2-normalized vectors for retrieval and candidate ranking. Full dimension 2,048, truncated MRL dims 64/128/256/512/1024.
DecisionEvaluates application state and questions to return structured choices, ordinal scores, or binary judgments (JEV).

Files

FileDescription
model-00001-of-00003.safetensors … model-00003-of-00003.safetensorsQwen3.5 backbone — Qwen3-VL vision tower + 32-layer hybrid language model — in MLX layout, bf16 (8.46 GiB)
model.safetensors.index.jsonshard index
task_modules.safetensorsE/J slots, embedding head, decision head, MGVB parameters (bf16)
config.jsonarchitecture and task_slots_v1 contract, identical to the source release
wepm_mlx.jsonconversion manifest: layout, shard count, norm convention
tokenizer.json, tokenizer_config.json, chat_template.jinjatokenizer and the training chat template
processor_config.jsonimage-processor settings, kept for ecosystem compatibility
runtime/wepm_mlx package and the infer_mlx.py CLI
requirements.txtpinned dependencies (mlx, mlx-vlm, transformers, Pillow, …)

The conversion changes layout only, never math: keys are renamed to the MLX module tree (vision_tower.*, language_model.model.*), depthwise conv1d moves from [out, 1, kernel] to [out, kernel, 1], the Conv3d patch embedding from NCDHW to NDHWC, and RMSNorm gains are stored as weight instead of the weight - 1 delta form used by the original release.

Quick start

# Apple silicon; macOS version supported by the pinned MLX wheel
# About 9.1 GB of weight files; measured BF16 peak memory: 8.99 GiB
python -m venv .venv-mlx
source .venv-mlx/bin/activate
python -m pip install huggingface_hub
hf download tencent/WePocketModel1.0-4B-MLX --local-dir WePocketModel1.0-4B-MLX
cd WePocketModel1.0-4B-MLX
python -m pip install -r requirements.txt

Generation — text, a single image, or interleaved image/text content:

python runtime/infer_mlx.py --model . --task generate \
    --prompt "Describe this image in one sentence." --image demo.jpg \
    --max-new-tokens 64 --output out/generation.json

# content.json: {"content": [{"type": "image", "path": "a.jpg"}, {"type": "text", "text": "..."}]}
python runtime/infer_mlx.py --model . --task generate \
    --content-json content.json --max-new-tokens 64 --output out/interleaved.json

Embedding — with optional MRL truncation:

python runtime/infer_mlx.py --model . --task embed \
    --prompt "Find similar landscape photos." --image demo.jpg \
    --embedding-dim 1024 --output out/embedding.json

Decision (JEV) — choice, score or noul requests:

python runtime/infer_mlx.py --model . --task decision \
    --decision-json request.json --output out/decision.json

Save the following as request.json:

{
  "state": "The user asks to book a table.",
  "questions": {
    "q": {
      "type": "choice",
      "instructions": "What should happen next?",
      "criteria": {
        "call": "call the restaurant",
        "menu": "show the menu",
        "ignore": "ignore"
      }
    }
  }
}

For score, set type to score and use an ordered list of descriptions as criteria. For noul, set type to noul and omit criteria; the result is the probability of yes/true. Both require state and nonempty instructions.

From Python, run in the downloaded model directory after export PYTHONPATH="$PWD/runtime":

import json
from pathlib import Path

from wepm_mlx.runtime import WePMRuntime

runtime = WePMRuntime(".")
content = [{"type": "image", "path": "demo.jpg"}, {"type": "text", "text": "Describe it."}]

try:
    print(runtime.generate(content, max_new_tokens=64)["text"])
    print(runtime.embed(content, dims=[256, 2048])["embeddings"]["256"][:8])
    request = json.loads(Path("request.json").read_text())
    print(runtime.decide(request)["answers"])
finally:
    runtime.close()

--quantize-bits 4 (or 8) quantizes the linear layers at load time, no extra download needed: peak memory drops from 9.0 GiB to 4.3 GiB and decoding gets ~2.2× faster.

Parity with the PyTorch release

Compared against the official inference/runtime.py (CPU, fp32) on five cases: text generation, single-image embedding, the compressed MGVB path, the bypassed small-image path, and a choice decision. (A two-image 1058-token prompt was skipped: the fp32 reference does not fit in 36 GB of RAM.)

StageAgreement
input_ids, including the MGVB placeholder countbit-exact on all cases
M-RoPE position indices, including explicit visual positionsbit-exact on all cases
input embeddings0 for text; 0.35–0.87 % relative for visual tokens
last hidden statecosine ≥ 0.99999
embedding (64 / 128 / 2048-d)cosine ≥ 0.99999
decision probabilitiesmax deviation 4.6e-

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Running it

Where it runs

Built for Apple silicon (MLX). It does not run on NVIDIA GPUs.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms