/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
4,4 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
WePocketModel1.0-2B
Библиотека
mlx
Опубликована
25 ноя 2026

WePocketModel1.0-2B-MLX

Изображение и текст → текст12 профессий

Мультимодальная сборка Tencent на MLX для Apple silicon, которая обрабатывает изображения и текст, создаёт векторы для поиска и выдаёт структурированные решения.

224скачиваний за 30 дней1лайквеса обновлены25 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

WePocketModel 1.0 2B · MLX — мультимодальная модель Tencent для устройств Apple с Apple silicon. Это сборка базовой модели tencent/WePocketModel1.0-2B для MLX: она использует архитектуру Qwen3.5 с визуальной частью Qwen3-VL и гибридной языковой моделью из 24 слоёв. Веса представлены в формате MLX и сохранены в bf16; README также приводит результаты для 4-битного запуска. Лицензия — Apache 2.0, унаследованная от исходной модели.

Модель принимает текст, изображения и их чередование, а также может кодировать текст и изображения в нормализованные векторы и оценивать состояние приложения с выдачей структурированного выбора, порядковой оценки или бинарного суждения. Она предназначена для OCR, описания изображений, визуальных вопросов и ответов, диалогов, поиска по тексту и изображениям, ранжирования кандидатов и принятия решений по заданным критериям. Для векторного представления доступна полная размерность 2048 и сокращённые размерности MRL от 64 до 1024.

Сборка включает runtime для MLX и рассчитана на запуск на GPU Apple silicon без PyTorch. В README приведены результаты проверки совпадения с официальной реализацией PyTorch на шести сценариях; для визуальных токенов отмечено небольшое расхождение из-за порядка вычислений с плавающей точкой и различий в ресайзе изображений. Для воспроизведения указан Pillow 12.3.0; Pillow 13 меняет ядро ресайза. Приведённые замеры производительности относятся к Apple M3 Pro и не гарантируют аналогичную скорость на других устройствах.

Сценарии применения

  • распознавание текста на изображениях
  • создание подписей и описаний изображений
  • ответы на вопросы по изображениям
  • поиск по тексту и изображениям через эмбеддинги
  • ранжирование кандидатов по релевантности
  • выбор или бинарная оценка по состоянию приложения

Ограничения

Для визуальных токенов README сообщает о небольшом расхождении с реализацией PyTorch, связанном с вычислениями с плавающей точкой и ресайзом изображений; для воспроизведения указан Pillow 12.3.0. Производительность зависит от устройства Apple silicon и приведена для M3 Pro.

Для каких профессий подходит12

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

WePocketModel 1.0 2B · MLX

GitHub WePocketModel Hugging Face 2B safetensors Hugging Face 2B GGUF Hugging Face 4B MLX

Apple silicon build of tencent/WePocketModel1.0-2B for MLX. The weights are converted to the MLX layout and shipped with a self-contained runtime (runtime/), so the model runs on the Apple silicon GPU with no PyTorch, no torchvision and no video toolchain: tokenization uses tokenizers, and the Qwen3-VL image preprocessing (smart_resize + patchify) plus the MGVB visual bottleneck are re-implemented in numpy/PIL/MLX.

One set of parameters still serves all three WePM capability families:

CapabilityInput and output
GenerationGenerates text from text, images, or interleaved text and images (OCR, captioning, VQA, chat). Slotless decoding.
EmbeddingEncodes text and images into L2-normalized vectors for retrieval and candidate ranking. Full dimension 2,048, truncated MRL dims 64/128/256/512/1024.
DecisionEvaluates application state and questions to return structured choices, ordinal scores, or binary judgments (JEV).

Files

FileDescription
model-00001-of-00002.safetensors, model-00002-of-00002.safetensorsQwen3.5 backbone — Qwen3-VL vision tower + 24-layer hybrid language model — in MLX layout, bf16 (4.12 GiB)
model.safetensors.index.jsonshard index
task_modules.safetensorsE/J slots, embedding head, decision head, MGVB parameters (bf16)
config.jsonarchitecture and task_slots_v1 contract, identical to the source release
wepm_mlx.jsonconversion manifest: layout, shard count, norm convention
tokenizer.json, tokenizer_config.json, chat_template.jinjatokenizer and the training chat template
processor_config.jsonimage-processor settings, kept for ecosystem compatibility
runtime/wepm_mlx package and the infer_mlx.py CLI
requirements.txtpinned dependencies (mlx, mlx-vlm, transformers, Pillow, …)

The conversion changes layout only, never math: keys are renamed to the MLX module tree (vision_tower.*, language_model.model.*), depthwise conv1d moves from [out, 1, kernel] to [out, kernel, 1], the Conv3d patch embedding from NCDHW to NDHWC, and RMSNorm gains are stored as weight instead of the weight - 1 delta form used by the original release.

Quick start

# Apple silicon; macOS version supported by the pinned MLX wheel
python -m venv .venv-mlx
source .venv-mlx/bin/activate
python -m pip install huggingface_hub
hf download tencent/WePocketModel1.0-2B-MLX --local-dir WePocketModel1.0-2B-MLX
cd WePocketModel1.0-2B-MLX
python -m pip install -r requirements.txt

Generation — text, a single image, or interleaved image/text content:

python runtime/infer_mlx.py --model . --task generate \
    --prompt "Describe this image in one sentence." --image demo.jpg \
    --max-new-tokens 64 --output out/generation.json

# content.json: {"content": [{"type": "image", "path": "a.jpg"}, {"type": "text", "text": "..."}]}
python runtime/infer_mlx.py --model . --task generate \
    --content-json content.json --max-new-tokens 64 --output out/interleaved.json

Embedding — with optional MRL truncation:

python runtime/infer_mlx.py --model . --task embed \
    --prompt "Find similar landscape photos." --image demo.jpg \
    --embedding-dim 1024 --output out/embedding.json

Decision (JEV) — choice, score or noul requests:

python runtime/infer_mlx.py --model . --task decision \
    --decision-json request.json --output out/decision.json

Save the following as request.json:

{
  "state": "The user asks to book a table.",
  "questions": {
    "q": {
      "type": "choice",
      "instructions": "What should happen next?",
      "criteria": {
        "call": "call the restaurant",
        "menu": "show the menu",
        "ignore": "ignore"
      }
    }
  }
}

For score, set type to score and use an ordered list of descriptions as criteria. For noul, set type to noul and omit criteria; the result is the probability of yes/true. Both require state and nonempty instructions.

From Python, run in the downloaded model directory after export PYTHONPATH="$PWD/runtime":

import json
from pathlib import Path

from wepm_mlx.runtime import WePMRuntime

runtime = WePMRuntime(".")
content = [{"type": "image", "path": "demo.jpg"}, {"type": "text", "text": "Describe it."}]

try:
    print(runtime.generate(content, max_new_tokens=64)["text"])
    print(runtime.embed(content, dims=[256, 2048])["embeddings"]["256"][:8])
    request = json.loads(Path("request.json").read_text())
    print(runtime.decide(request)["answers"])
finally:
    runtime.close()

--quantize-bits 4 (or 8) quantizes the linear layers at load time, no extra download needed.

Parity with the PyTorch release

Compared against the official inference/runtime.py (CPU, fp32) on six cases: text generation, single-image embedding, the compressed MGVB path, the bypassed small-image path, interleaved two-image generation, and a choice decision.

StageAgreement
input_ids, including the MGVB placeholder countbit-exact on all cases
M-RoPE position indices, including explicit visual positionsbit-exact on all cases
input embeddings0 for text; 0.96–1.55 % relative for visual tokens
last hidden statecosine ≥ 0.99996
embedding (64 / 128 / 2048-d)cosine ≥ 0.99999
decision probabilitiesmax deviation 3.3e-6
greedy generationtoken-for-token identical

The remaining gap comes from floating-point reduction order and ±1 grey-level differences in bicubic resampling — pin Pillow==12.3.0, since Pillow 13 changed the resize kernel.

Performance

Apple M3 Pro (36 GB), MLX 0.32.4, 528-token prompt (one 1500-px image → 1645 native visual tokens compressed to 512):

PrecisionPrefillDecodePeak memory
bf160.67 s (794 tok/s)28.8 tok/s4.49 GiB
4-bit, group 640.33 s (1606 tok/s)55.8 tok/s2.76 GiB

Links

License: Apache 2.0, inherited from the source release.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · mlx

Нельзя запустить

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
e414eab

0 моделей