WeMM-Ecom-35B-A3B

Model updates Hugging Face 模型 · tencent Source language: Chinese

Tencent's WeChat Vision releases the 35B MoE multimodal model WeMM-Ecom-35B-A3B, beating Qwen3.5‑35B‑A3B by 3.92 points on e‑commerce benchmarks and handling text…

Full text

WeMM-Ecom-35B-A3B

Multimodal Understanding for E-Commerce

Evaluation · Quick Start · Best Practices

WeMM-Ecom-35B-A3B is a mixture-of-experts model in the WeMM-Ecom family developed by WeChat Vision, Tencent. It combines fine-grained e-commerce understanding with broad visual-language and reasoning capabilities and supports hybrid thinking.

The WeMM-Ecom family delivers leading e-commerce performance, with WeMM-Ecom-35B-A3B outperforming open-source models with hundreds of billions of parameters. Across model sizes, it also maintains general-purpose capabilities on par with state-of-the-art models of comparable size.

Highlights

E-commerce understanding: Outperforms Qwen3.5-35B-A3B by 3.92 points, Qwen3.6-35B-A3B by 3.36 points, and MiniCPM-V-4.7-35B-A3B by 8.22 points in average benchmark score. Broad general capabilities: Outperforms Qwen3.5-35B-A3B by 0.17 points, MiniCPM-V-4.7-35B-A3B by 5.60 points, and Valley3-32B by 9.13 points in average benchmark score. Flexible deployment: text, image, multi-image, and video inputs; BF16, FP8, GPTQ, and GGUF formats.

Model Overview

Architecture: 35B total parameters, approximately 3B active parameters (MoE). Context window: 262,144 tokens. Checkpoint: BF16 Safetensors.

Model family: 0.8B · 2B · 4B · 9B · 35B-A3B

Quantized formats: FP8 · GPTQ · GGUF

Evaluation

We evaluate e-commerce understanding on 28 benchmarks across eight scenarios and general capabilities on 64 benchmarks across eight categories. All scores use a 0–100 scale, with higher values indicating stronger performance.

E-commerce Benchmarks

The suite covers product attributes, moderation, OCR, retrieval, grounding, reasoning, public e-commerce benchmarks, and product knowledge.

Full e-commerce benchmark results

Instruct Mode

Thinking Mode

General Benchmarks

The suite spans general VQA, document and chart understanding, STEM reasoning, spatial understanding, grounding and counting, multi-image understanding, instruction following, and text-centric tasks.

Full general benchmark results

Instruct Mode

Thinking Mode

Quick Start

Run WeMM-Ecom with Transformers, or use either of the OpenAI-compatible serving options below. Replace the local image and video paths with your own content.

Choose sampling settings by mode and task. The examples below use the general-task settings; see Best Practices for additional recommended profiles and output budgets.

Transformers

Installation

The commands below use Python 3.11 as an example environment. For other Python versions, follow the requirements of your Transformers and PyTorch releases. uv selects the PyTorch backend for your machine.

Authentication and local checkpoints

For repositories that require authentication, sign in once. You can also download a checkpoint to a local directory:

To use the downloaded checkpoint, set model_id = "./WeMM-Ecom-35B-A3B" in the loading example below. Both the model and processor accept the same local directory.

Load the Model

Load the processor and model once. The following examples share these objects and generation settings.

The examples print the final answer. In Thinking Mode, reasoning_text contains the reasoning and the final answer starts after .

Image Understanding

Use a product photo to extract its visible attributes:

Hybrid Thinking

Instruct Mode: set enable_thinking=False for a direct response; use temperature=0.7 and top_p=0.8. Thinking Mode: set enable_thinking=True for reasoning followed by the final answer; use temperature=1.0 and top_p=0.95.

The checkpoint default is Thinking Mode. All examples pass the switch explicitly. To change modes, update enable_thinking; the conditional sampling arguments in each generate() call follow it automatically.

Text-only Conversations

Multi-Image Understanding

Provide multiple product views in one conversation:

Video Understanding

Install TorchCodec with a build matching your PyTorch and FFmpeg setup:

This example samples 16 frames from a product demonstration:

For rate-based sampling, replace num_frames=16, fps=None with fps=2.0 and omit num_frames.

Batched Inference

Pass a list of conversations and use left padding. Crop generated tokens at the common padded input width.

Multi-turn Conversations

Keep the media references in the conversation history and append only the final answer from each assistant turn.

Visual Input Settings

The image processor accepts pixel-area bounds through images_kwargs. This example uses a 64–1280 visual-token image budget; the checkpoint's defaults remain available by omitting this override.

Optional FlashAttention 2

For a compatible CUDA setup, follow the FlashAttention installation instructions, then replace the model-loading call above with:

Serving

Choose vLLM or SGLang and install the engine in its own Python environment. Both expose the client API shown below.

The commands use a 32,768-token serving context. The model's native context window is 262,144 tokens. Adjust --max-model-len for vLLM or --context-length for SGLang, together with tensor parallelism, for your deployment.

vLLM

See the vLLM installation guide for the requirements of your chosen release. The commands below use a separate Python 3.11 environment.

SGLang

Use the environment requirements in the SGLang installation guide. The source-install example is:

OpenAI-compatible API

Install the client where you send requests:

Set enable_thinking before constructing the shared request settings; rerun this setup when changing modes. Local media are encoded in the client so the server does not need access to their file paths.

Image Requests

Text Requests

Multi-Image Requests

Video Requests

Use the engines' video_url input with a local MP4 clip:

Multi-turn Requests

Send the conversation history with each request and keep only the final answer in assistant messages.

Streaming Responses

Best Practices

Sampling Parameters

Choose a profile by mode and task. The following settings are starting points drawn from our evaluation configurations.

Instruct Mode — general tasks: temperature=0.7, top_p=0.8, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0. Instruct Mode — structured outputs, such as attribute selection, product detection, and SKU matching: temperature=0.7, top_p=0.8, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0. Instruct Mode — reasoning tasks: temperature=1.0, top_p=1.0, top_k=40, min_p=0.0, presence_penalty=2.0, repetition_penalty=1.0. Thinking Mode — general tasks: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0. Thinking Mode — OCR, entity recognition, and SKU matching: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=2.0, repetition_penalty=1.05.

Use the OpenAI-compatible examples to apply all listed parameters. Pass temperature, top_p, and presence_penalty directly, and put top_k, min_p, and repetition_penalty in extra_body. The native Transformers examples use do_sample=True and omit presence_penalty from generate().

Mode and Output Settings

Select the mode explicitly: use enable_thinking=False for Instruct Mode and enable_thinking=True for Thinking Mode. In the serving API, pass this switch through chat_template_kwargs in extra_body. Allow enough output tokens: our evaluations use a maximum generation budget of 65,536 tokens. The Quick Start uses 4,096 tokens for a compact example; increase this budget for longer reasoning. Set max_new_tokens in Transformers or max_completion_tokens in the serving API. The serving context limit must accommodate both the input and the generated output. Specify the output format: for extraction, matching, and grounding, state the required fields, labels, and coordinate format. For multiple-choice tasks, request a clear final answer. In multi-turn conversations, append the assistant's final answer to the history.

Sources

← Back to Daily AI Report