Advancing Multimodal Content Understanding for WeChat E-Commerce
Evaluation · Quick Start · Best Practices
WeMM-Ecom-0.8B-GGUF is the GGUF edition of WeMM-Ecom-0.8B, developed by WeChat Vision, Tencent. It pairs Q4_K_M language-model weights with an F16 multimodal projector for deployment with llama.cpp 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.
The highlights and benchmark figures summarize the corresponding WeMM-Ecom-0.8B family checkpoint.
GGUF family: 0.8B · 2B · 4B · 9B · 35B-A3B
More formats: BF16 · FP8 · GPTQ
The following comparisons report the WeMM-Ecom-0.8B family checkpoint, following the technical report: 28 e-commerce benchmarks across eight scenarios and 64 general benchmarks across eight categories. Scores use a 0–100 scale.
The suite covers product attributes, moderation, OCR, retrieval, grounding, reasoning, public e-commerce benchmarks, and product knowledge.
Full e-commerce benchmark resultsThe 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 resultsUse a recent build of llama.cpp with Qwen3.5 and multimodal support. The language-model GGUF and its matching projector are provided together in this repository. Replace the example image paths with your own content.
pip install -U huggingface_hub
MODEL_DIR="$PWD/WeMM-Ecom-0.8B-GGUF"
hf download tencent/WeMM-Ecom-0.8B-GGUF \
WeMM-Ecom-0.8B-GGUF.gguf mmproj-F16.gguf \
--local-dir "$MODEL_DIR"
If authentication is required, run hf auth login before downloading.
| File | Contents |
|---|---|
WeMM-Ecom-0.8B-GGUF.gguf |
Q4_K_M language model |
mmproj-F16.gguf |
F16 multimodal projector |
For NVIDIA CUDA:
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON
cmake --build build --config Release -j --target llama-cli llama-server
CPU and other backendsFor a CPU build, use a separate build directory:
cmake -B build-cpu -DCMAKE_BUILD_TYPE=Release
cmake --build build-cpu --config Release -j --target llama-cli llama-server
Use ./build-cpu/bin/ in the commands below. For CPU-only inference, set -ngl 0 and add --no-mmproj-offload when loading the projector. For Metal, Vulkan, and other accelerators, follow the official build guide.
The example uses Instruct Mode and the chat template embedded in the GGUF:
./build/bin/llama-cli \
-m "$MODEL_DIR/WeMM-Ecom-0.8B-GGUF.gguf" \
--mmproj "$MODEL_DIR/mmproj-F16.gguf" \
--image ./image.jpg \
--jinja --reasoning off \
-ngl 99 -c 8192 -n 4096 \
--temp 0.7 --top-p 0.8 --top-k 20 --min-p 0.0 \
--presence-penalty 1.5 --repeat-penalty 1.0 \
-p "Describe the image and identify its visible details."
Text-only Conversations./build/bin/llama-cli \
-m "$MODEL_DIR/WeMM-Ecom-0.8B-GGUF.gguf" \
--jinja --reasoning off \
-ngl 99 -c 8192 -n 4096 \
--temp 0.7 --top-p 0.8 --top-k 20 --min-p 0.0 \
--presence-penalty 1.5 --repeat-penalty 1.0 \
-p "Explain how to compare two visually similar items."
Multi-Image UnderstandingPass multiple image paths as a comma-separated list:
./build/bin/llama-cli \
-m "$MODEL_DIR/WeMM-Ecom-0.8B-GGUF.gguf" \
--mmproj "$MODEL_DIR/mmproj-F16.gguf" \
--image ./image_front.jpg,./image_back.jpg \
--jinja --reasoning off \
-ngl 99 -c 8192 -n 4096 \
--temp 0.7 --top-p 0.8 --top-k 20 --min-p 0.0 \
--presence-penalty 1.5 --repeat-penalty 1.0 \
-p "Compare these views and summarize their similarities and differences."
Select the operating mode with llama.cpp's --reasoning option:
--reasoning off --temp 0.7 --top-p 0.8.--reasoning on --temp 1.0 --top-p 0.95.Keep --top-k 20 --min-p 0.0 --presence-penalty 1.5 --repeat-penalty 1.0 for the general-task profile. The same mode switch applies when starting llama-server.
Start a local server in Instruct Mode:
./build/bin/llama-server \
-m "$MODEL_DIR/WeMM-Ecom-0.8B-GGUF.gguf" \
--mmproj "$MODEL_DIR/mmproj-F16.gguf" \
--alias tencent/WeMM-Ecom-0.8B-GGUF \
--jinja --reasoning off \
-ngl 99 -c 8192 \
--temp 0.7 --top-p 0.8 --top-k 20 --min-p 0.0 \
--presence-penalty 1.5 --repeat-penalty 1.0 \
--host 127.0.0.1 --port 8000
Install the Python client:
pip install -U openai
import base64
from pathlib import Path
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
request_kwargs = {
"model": "tencent/WeMM-Ecom-0.8B-GGUF",
"max_tokens": 4096,
"temperature": 0.7,
"top_p": 0.8,
"presence_penalty": 1.5,
"extra_body": {"top_k": 20, "min_p": 0.0, "repeat_penalty": 1.0},
}
def image_url(path):
data = base64.b64encode(Path(path).read_bytes()).decode("ascii")
return f"data:image/jpeg;base64,{data}"
def complete(messages):
response = client.chat.completions.create(messages=messages, **request_kwargs)
message = response.choices[0].message
reasoning = getattr(message, "reasoning_content", None)
if reasoning:
print("Reasoning:\n" + reasoning)
print("Answer:\n" + (message.content or ""))
return message.content or ""
messages = [{"role": "user", "content": [
{"type": "image_url", "image_url": {"url": image_url("./image.jpg")}},
{"type": "text", "text": "Describe the image and identify its visible details."},
]}]
answer = complete(messages)
For Thinking Mode, start the server with --reasoning on, and set temperature=1.0 and top_p=0.95 in request_kwargs.
The requests below reuse the client and helper above:
answer = complete([{
"role": "user",
"content": "Explain how to compare two visually similar items.",
}])
answer = complete([{"role": "user", "content": [
{"type": "image_url", "image_url": {"url": image_url("./image_front.jpg")}},
{"type": "image_url", "image_url": {"url": image_url("./image_back.jpg")}},
{"type": "text", "text": "Compare the visible details in these two images."},
]}])
--reasoning off for Instruct Mode and --reasoning on for Thinking Mode. Match the API sampling settings to the server's mode.mmproj-F16.gguf from this repository with its language-model file for image inputs.-c 8192 and an output budget of 4096 tokens. Set -c and max_tokens/-n to accommodate both the input and generated output. Adjust -ngl to choose how many model layers are offloaded to the GPU.repeat_penalty in its API and --repeat-penalty on the command line.If you find WeMM-Ecom useful, please consider starring our GitHub repository and citing our technical report.
@misc{wemm-ecom-2026,
title = {WeMM-Ecom: Advancing Multimodal Content Understanding for WeChat E-Commerce},
author = {Binhui Xie and Jinmin Li and Haomiao Tang and Guangting Wang and Song Jin and Jianwei Zhu and Fengyun Rao and Jing LYU},
year = {2026},
url = {}
}
The model weights are licensed under Apache-2.0, except for the third-party components listed in LICENSE, which retain their respective original licenses. See that file for the full terms, notices, and dependencies.
We thank the Qwen team for the Qwen3.5 foundation and the open-source community for the tools and benchmarks used in this project.
tencent/WeMM-Ecom-0.8B