Instructions to use netprojects/WeMM-Ecom-9B-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/WeMM-Ecom-9B-MLX-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("netprojects/WeMM-Ecom-9B-MLX-4bit") config = load_config("netprojects/WeMM-Ecom-9B-MLX-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use netprojects/WeMM-Ecom-9B-MLX-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/WeMM-Ecom-9B-MLX-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "netprojects/WeMM-Ecom-9B-MLX-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/WeMM-Ecom-9B-MLX-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/WeMM-Ecom-9B-MLX-4bit"
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:8080/v1 hermes config set model.default netprojects/WeMM-Ecom-9B-MLX-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/WeMM-Ecom-9B-MLX-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/WeMM-Ecom-9B-MLX-4bit"
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:8080/v1 \ --custom-model-id "netprojects/WeMM-Ecom-9B-MLX-4bit" \ --custom-provider-id mlx-lm \ --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 for Apple Silicon (MLX, 4-bit)
tencent/WeMM-Ecom-9B (revision 9761812) converted to MLX with mlx-vlm, vision encoder included. The weights are quantized to 4-bit (affine, group size 64).
Size: 6.0 GB.
WeMM-Ecom is Tencent WeChat Vision's family of e-commerce vision-language models, fine-tuned from Qwen3.5. It reads product images, several images at once and video together with text, in Chinese and English, and has hybrid thinking: thinking is on by default and can be switched off per request with enable_thinking.
Tencent's results
Tencent's benchmark tables, from the original card (Tencent's figures):
See the original card for the benchmarks, scenarios and method.
Builds
| Build | Size | Same next token as the original bf16 weights | Mean KL vs original | Peak memory, image test |
|---|---|---|---|---|
| netprojects/WeMM-Ecom-9B-MLX-6bit (recommended) | 8.2 GB | 98.0% | 0.0043 | 8.7 GB |
| netprojects/WeMM-Ecom-9B-MLX-8bit | 10.4 GB | 99.1% | 0.0008 | 10.8 GB |
| netprojects/WeMM-Ecom-9B-MLX-4bit | 6.0 GB | 94.2% | 0.0517 | 6.6 GB |
The 6-bit build is the recommended balance of size and fidelity; 8-bit is closest to the original weights; 4-bit is the smallest, for Macs with less memory. "Same next token" and the KL are measured against Tencent's original bf16 weights (see "What was checked").
Use
pip install -U "mlx-vlm>=0.7.11"
mlx_vlm.generate --model netprojects/WeMM-Ecom-9B-MLX-4bit --image product.jpg --prompt "Write a short product title and three selling points for this item." --max-tokens 1024
From Python, with thinking off or on:
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("netprojects/WeMM-Ecom-9B-MLX-4bit")
# Thinking off (instruct mode)
prompt = apply_chat_template(processor, model.config, "่ฟไปถๅๅๆฏไปไน๏ผ่ฏทๅไธไธช็ตๅๆ ้ขๅไธไธชๅ็นใ",
num_images=1, enable_thinking=False)
out = generate(model, processor, prompt, image=["product.jpg"], max_tokens=512, temperature=0.7, top_p=0.8)
print(out.text)
# Thinking on (the default): reasons first, then answers
prompt = apply_chat_template(processor, model.config, "Are these two listings the same product? Explain the differences.",
num_images=2, enable_thinking=True)
out = generate(model, processor, prompt, image=["listing_a.jpg", "listing_b.jpg"], max_tokens=4096, temperature=1.0, top_p=0.95)
print(out.text)
Tencent's recommended sampling:
| Mode | temperature | top_p | top_k | presence_penalty |
|---|---|---|---|---|
| Thinking off (instruct) | 0.7 | 0.8 | 20 | 1.5 |
| Thinking on (default) | 1.0 | 0.95 | 20 | 1.5 |
mlx_vlm.server serves the model with an OpenAI-compatible API.
What was checked
On a MacBook Pro M5 Max (128 GB), 25 November 2026, with mlx 0.32.4 and mlx-vlm 0.7.11.
- Source files. Every file of tencent/WeMM-Ecom-9B at revision
9761812matches the Hub's sizes and SHA-256 hashes. - Agreement with the original weights. Tencent's bf16 weights, loaded directly in mlx-vlm, are the reference: 10 short prompts in English and Chinese (thinking on for 4, off for 6), 345 teacher-forced positions. Same next token as the original: 6-bit 98.0%, 8-bit 99.1%, 4-bit 94.2%.
- Product image (a synthetic photo of a blue T-shirt with a ยฅ99 price tag, drawn for the test): with thinking off, 6-bit, 8-bit and 4-bit named the product, its colour and the price.
- Thinking on (the same image, asked in Chinese, 512-token cap): 6-bit, 8-bit and 4-bit closed the thinking block and answered with the price and colour.
- Two images (the same shirt in blue and in green): 6-bit, 8-bit and 4-bit described the difference.
- Files. The tokenizer, chat template and processor files are Tencent's, unchanged; the vision encoder is included in every build.
Credits
WeMM-Ecom is by Tencent (WeChat Vision); it is fine-tuned from Qwen3.5 by the Qwen Team, Alibaba Cloud. If you use the model, please cite their work (see the original card).
License
Apache-2.0, as the original model. LICENSE is Tencent's file, unchanged, including its third-party section for Qwen3.5
(Alibaba Cloud, Apache-2.0). NOTICE credits Tencent and the Qwen Team and describes the conversion.
Published by NetProjects (Internet Projects Ltd). Not affiliated with Tencent or Alibaba.
More MLX builds from NetProjects: huggingface.co/netprojects ยท netprojects.com
- Downloads last month
- 15
4-bit





