
Tencent Ships Apple Silicon MLX Port of WePocketModel 1.0 2B
Tencent has published tencent/WePocketModel1.0-2B-MLX on Hugging Face, delivering a native Apple silicon conversion of its 2-billion-parameter WePocketModel 1.0 release under an Apache 2.0 license. Tagged with arXiv reference 2611.27365 and listed on November 24, 2026 (Pacific time), the repository packages converted weights alongside a self-contained MLX runtime so developers can run multimodal generation, vector embedding, and structured decision tasks locally on Apple silicon GPUs without installing PyTorch, torchvision, or a video toolchain.
Unlike single-purpose vision-language ports that focus purely on chat or captioning, WePocketModel 1.0 2B retains all three of the WePM capability families inside a single parameter set. Through one unified checkpoint, the model supports slotless text and multimodal generation from text, images, or interleaved inputs covering OCR, captioning, VQA, and chat; L2-normalized text-and-image embeddings for retrieval and candidate ranking; and structured JEV decision evaluation that turns application state and instructions into discrete choices, ordinal scores, or binary probability judgments.
Unified Multimodal Architecture and PyTorch Parity Metrics
At the weight level, the release converts a Qwen3.5 backbone pairing a Qwen3-VL vision tower with a 24-layer hybrid language model into two bfloat16 safetensors shards totaling 4.12 GiB (model-00001-of-00002.safetensors and model-00002-of-00002.safetensors), indexed by model.safetensors.index.json. Specialized task components—specifically the E/J slots, embedding head, decision head, and MGVB visual bottleneck parameters—reside separately in task_modules.safetensors in bfloat16 precision, governed by config.json and the task_slots_v1 contract. To eliminate PyTorch dependencies, tokenization relies on the tokenizers library, while Qwen3-VL image preprocessing (smart_resize and patchify) and the MGVB visual bottleneck are re-implemented in NumPy, Pillow, and MLX.
Tencent states that the conversion alters tensor layout rather than underlying mathematics, documenting these choices in wepm_mlx.json. Parameter keys are mapped to the MLX module hierarchy (vision_tower.* and language_model.model.*), depthwise conv1d tensors shift from [out, 1, kernel] to [out, kernel, 1], Conv3d patch embeddings move from NCDHW to NDHWC, and RMSNorm gains are stored directly as weight instead of the weight - 1 delta format used in the PyTorch release. For embedding workflows, the model produces 2,048-dimensional vectors with Matryoshka Representation Learning (MRL) truncation options at 64, 128, 256, 512, and 1,024 dimensions.
According to Tencent's published parity checks against its official inference/runtime.py CPU fp32 baseline across six test cases—text generation, single-image embedding, the compressed MGVB path, the bypassed small-image path, interleaved two-image generation, and a choice decision—the MLX runtime achieves bit-exact agreement on input_ids (including MGVB placeholder counts) and M-RoPE position indices. Input embeddings show zero discrepancy for text and a 0.96% to 1.55% relative difference for visual tokens, while downstream last hidden states maintain cosine similarity of at least 0.99996, embeddings across 64-, 128-, and 2,048-dimensional outputs reach at least 0.99999 cosine similarity, decision probabilities deviate by at most 3.3e-6, and greedy generation remains token-for-token identical.
On-Device Runtime, Quantization, and Agent Workflow Integration
For macOS developers, the repository ships an embedded runtime/ directory containing the wepm_mlx Python package, the infer_mlx.py command-line interface, and pinned dependencies in requirements.txt. Developers can invoke --task generate, --task embed, or --task decision directly from the CLI or instantiate WePMRuntime in Python to handle multimodal content arrays, Matryoshka embedding dimensions, and JSON decision requests spanning choice, score, and noul probability modes (where score and noul require both state and nonempty instructions). For memory-constrained systems, passing --quantize-bits 4 or 8 quantizes linear layers at load time without requiring separate weight downloads.
Beyond the bespoke Python runtime, Hugging Face integration instructions illustrate how the checkpoint slots into broader local-AI tooling. Standard multimodal inference works through mlx-vlm, while running mlx_lm.server exposes an OpenAI-compatible local endpoint on port 8080 for coding and agent harnesses such as Pi, Hermes Agent, and OpenClaw, alongside local app listings including LM Studio and Atomic Chat. Consolidating generation, retrieval embeddings, and structured state-evaluation decisions into one 4.12 GiB bfloat16 package—and an even smaller memory footprint when quantized at load time—gives edge and desktop application builders a compact way to route multiple agentic subtasks through a single local model rather than juggling separate embedding and classification models.
Hardware Constraints, Dependency Sensitivity, and Verification Caveats
Several technical and operational boundaries apply. First, WePocketModel1.0-2B-MLX targets Apple silicon GPUs on macOS versions supported by Tencent's pinned MLX wheel (MLX 0.32.4 is cited alongside an Apple M3 Pro 36 GB test environment), making it unsuitable as-is for Linux, Windows, or CUDA deployments. Second, visual preprocessing exhibits acute library sensitivity: Tencent notes that floating-point reduction order and plus-or-minus-one grey-level differences in bicubic resampling account for its visual embedding gap, requiring teams to pin Pillow==12.3.0 because Pillow 13 changed the resize kernel.
Finally, while the Apache 2.0 license permits broad commercial and open-source adoption, all parity figures and architectural notes come from Tencent's own model card rather than independent third-party audits, and full end-to-end throughput numbers on Apple silicon are not completely detailed in the accessible excerpt. Developers building latency-sensitive or safety-critical workflows—particularly structured JEV decision routing in automated agents—should benchmark quantized versus bfloat16 behavior on their target Mac hardware and validate Pillow dependency pinning before deploying into production.
Automated Vertex AI (gemini-4-hydrogen) primary-source report; reviewed 2026-11-25.



