Instructions to use tencent/WeMM-Ecom-9B-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/WeMM-Ecom-9B-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/WeMM-Ecom-9B-GGUF:F16 # Run inference directly in the terminal: llama cli -hf tencent/WeMM-Ecom-9B-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tencent/WeMM-Ecom-9B-GGUF:F16 # Run inference directly in the terminal: llama cli -hf tencent/WeMM-Ecom-9B-GGUF:F16
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/WeMM-Ecom-9B-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf tencent/WeMM-Ecom-9B-GGUF:F16
Use Docker
docker model run hf.co/tencent/WeMM-Ecom-9B-GGUF:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use tencent/WeMM-Ecom-9B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tencent/WeMM-Ecom-9B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/WeMM-Ecom-9B-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/tencent/WeMM-Ecom-9B-GGUF:F16
- Ollama
How to use tencent/WeMM-Ecom-9B-GGUF with Ollama:
ollama run hf.co/tencent/WeMM-Ecom-9B-GGUF:F16
- Unsloth Desktop
- Pi
How to use tencent/WeMM-Ecom-9B-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/WeMM-Ecom-9B-GGUF:F16
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/WeMM-Ecom-9B-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use tencent/WeMM-Ecom-9B-GGUF with Docker Model Runner:
docker model run hf.co/tencent/WeMM-Ecom-9B-GGUF:F16
- Lemonade
How to use tencent/WeMM-Ecom-9B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tencent/WeMM-Ecom-9B-GGUF:F16
Run and chat with the model
lemonade run user.WeMM-Ecom-9B-GGUF-F16
List all available models
lemonade list
- Hermes Agent
How to use tencent/WeMM-Ecom-9B-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/WeMM-Ecom-9B-GGUF:F16
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/WeMM-Ecom-9B-GGUF:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use tencent/WeMM-Ecom-9B-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/WeMM-Ecom-9B-GGUF:F16
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/WeMM-Ecom-9B-GGUF:F16" \ --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"
WeMM-Ecom-9B-GGUF
Advancing Multimodal Content Understanding for WeChat E-Commerce
Evaluation · Quick Start · Best Practices
WeMM-Ecom-9B-GGUF is the GGUF edition of WeMM-Ecom-9B, 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.
Highlights
The following highlights summarize the corresponding WeMM-Ecom-9B BF16 checkpoint.
- E-commerce understanding: Outperforms Qwen3.5-9B by 5.19 points and Valley3-8B by 10.28 points in average benchmark score.
- Broad general capabilities: Outperforms Qwen3.5-9B by 0.83 points and Valley3-8B by 13.02 points in average benchmark score.
- GGUF deployment: Q4_K_M language-model weights and an F16 projector, with command-line inference and an OpenAI-compatible local server.
Model Overview
- Architecture: 9B dense model.
- Language-model quantization: Q4_K_M.
- Multimodal projector: F16 GGUF.
- Context window: 262,144 tokens.
GGUF family: 0.8B · 2B · 4B · 9B · 35B-A3B
More formats: BF16 · FP8 · GPTQ
Family Evaluation
The following comparisons present results for the WeMM-Ecom-9B BF16 checkpoint from our technical report: 28 e-commerce benchmarks across eight scenarios and 64 general benchmarks across eight categories. Scores use a 0–100 scale.
E-commerce Benchmarks
The suite covers product attributes, moderation, OCR, retrieval, grounding, reasoning, public e-commerce benchmarks, and product knowledge.
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.
Quick Start
Use llama.cpp at the revision below. The language-model GGUF and its matching projector are provided together in this repository. Replace the local image and video paths with your own content.
Download
pip install -U huggingface_hub
MODEL_DIR="$PWD/WeMM-Ecom-9B-GGUF"
hf download tencent/WeMM-Ecom-9B-GGUF \
WeMM-Ecom-9B-GGUF.gguf mmproj-F16.gguf \
--local-dir "$MODEL_DIR"
If authentication is required, run hf auth login before downloading.
| File | Contents |
|---|---|
WeMM-Ecom-9B-GGUF.gguf |
Q4_K_M language model |
mmproj-F16.gguf |
F16 multimodal projector |
Build llama.cpp
For NVIDIA CUDA:
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
git checkout a8f8294c45076538f4509754e4c79fc51a1a486b
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON
cmake --build build --config Release -j --target llama-cli llama-server
CPU and other backends
For 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.
Prepare Images
For camera photos, apply their EXIF orientation before passing a local image to llama.cpp. The API helper below prepares images automatically.
pip install -U pillow
from PIL import Image, ImageOps
with Image.open("./image.jpg") as source:
image = ImageOps.exif_transpose(source).convert("RGBA")
background = Image.new("RGBA", image.size, (255, 255, 255, 255))
image = Image.alpha_composite(background, image).convert("RGB")
image.save("./image-normalized.png")
Use the prepared file with --image. Repeat this preparation for additional camera photos, updating the input and output paths.
Image Understanding
The example uses Instruct Mode and the chat template embedded in the GGUF. The CLI examples run one turn; omit --single-turn for an interactive conversation.
./build/bin/llama-cli \
-m "$MODEL_DIR/WeMM-Ecom-9B-GGUF.gguf" \
--mmproj "$MODEL_DIR/mmproj-F16.gguf" \
--image ./image-normalized.png \
--jinja --reasoning off --single-turn \
-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-9B-GGUF.gguf" \
--jinja --reasoning off --single-turn \
-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 Understanding
Pass multiple image paths as a comma-separated list:
./build/bin/llama-cli \
-m "$MODEL_DIR/WeMM-Ecom-9B-GGUF.gguf" \
--mmproj "$MODEL_DIR/mmproj-F16.gguf" \
--image ./image_front-normalized.png,./image_back-normalized.png \
--jinja --reasoning off --single-turn \
-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."
Video Understanding
Install FFmpeg and make sure ffmpeg and ffprobe are available on your PATH.
./build/bin/llama-cli \
-m "$MODEL_DIR/WeMM-Ecom-9B-GGUF.gguf" \
--mmproj "$MODEL_DIR/mmproj-F16.gguf" \
--video ./video.mp4 --video-fps 2 \
--jinja --reasoning off --single-turn \
-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 "Summarize what happens in the video."
Visual Input Settings
For small text and fine image details, you can raise the image token budget:
./build/bin/llama-cli \
-m "$MODEL_DIR/WeMM-Ecom-9B-GGUF.gguf" \
--mmproj "$MODEL_DIR/mmproj-F16.gguf" \
--image ./image-normalized.png --image-min-tokens 1024 \
--jinja --reasoning off --single-turn \
-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 "Read the visible text in the image."
This example sets the budget for image inputs. For video, choose a context size that accommodates the visual tokens across all frames and the generated answer.
Hybrid Thinking
Select the operating mode with llama.cpp's --reasoning option:
- Instruct Mode:
--reasoning off --temp 0.7 --top-p 0.8. - Thinking Mode:
--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.
OpenAI-compatible Server
Start a local server in Instruct Mode:
./build/bin/llama-server \
-m "$MODEL_DIR/WeMM-Ecom-9B-GGUF.gguf" \
--mmproj "$MODEL_DIR/mmproj-F16.gguf" \
--alias tencent/WeMM-Ecom-9B-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 \
--video-fps 2 \
--host 127.0.0.1 --port 8000
Install the Python client:
pip install -U openai pillow
import base64
import io
import mimetypes
from pathlib import Path
from PIL import Image, ImageOps
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
request_kwargs = {
"model": "tencent/WeMM-Ecom-9B-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_bytes(path):
with Image.open(path) as source:
image = ImageOps.exif_transpose(source).convert('RGBA')
background = Image.new('RGBA', image.size, (255, 255, 255, 255))
image = Image.alpha_composite(background, image).convert('RGB')
buffer = io.BytesIO()
image.save(buffer, format='PNG')
return buffer.getvalue()
def data_url(path):
mime = mimetypes.guess_type(str(path))[0] or 'application/octet-stream'
if mime.startswith('image/'):
data = image_bytes(path)
mime = 'image/png'
else:
data = Path(path).read_bytes()
return f'data:{mime};base64,' + base64.b64encode(data).decode('ascii')
def complete(messages):
response = client.chat.completions.create(messages=messages, **request_kwargs)
choice = response.choices[0]
message = choice.message
if choice.finish_reason == "length" or not (message.content or "").strip():
raise RuntimeError("No complete final answer. Review max_tokens and generation settings.")
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": data_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.
Text, Multi-Image, and Video Requests
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": data_url("./image_front.jpg")}},
{"type": "image_url", "image_url": {"url": data_url("./image_back.jpg")}},
{"type": "text", "text": "Compare the visible details in these two images."},
]}])
answer = complete([{"role": "user", "content": [
{"type": "input_video", "input_video": {"url": data_url("./video.mp4")}},
{"type": "text", "text": "Summarize what happens in the video."},
]}])
Best Practices
- Choose the mode explicitly: use
--reasoning offfor Instruct Mode and--reasoning onfor Thinking Mode. Match the API sampling settings to the server's mode. - Use the matching projector: load
mmproj-F16.gguffrom this repository with its language-model file for image inputs. - Size the deployment context: these examples use
-c 8192and an output budget of4096tokens. Set-candmax_tokens/-nto accommodate both the input and generated output. Adjust-nglto choose how many model layers are offloaded to the GPU. - Set the task's output format: state the requested fields, labels, or coordinate convention for extraction and grounding. For additional task-specific sampling profiles, see the family model card; llama.cpp calls the repetition setting
repeat_penaltyin its API and--repeat-penaltyon the command line.
Citation
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},
eprint = {2611.30662},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2611.30662}
}
License
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.
Acknowledgements
We thank the Qwen team for the Qwen3.5 foundation and the open-source community for the tools and benchmarks used in this project.
- Downloads last month
- 227
We're not able to determine the quantization variants.





