/ Модель

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

Контекст
262 144 токена
Лицензия
MIT
Архитектура
qwen3_5_moe · dense
Базовая модель
Qwen3.6-35B-A3B
Библиотека
transformers
Опубликована
27 июн 2026

Qwen3.6-35B-A3B-vocabulary-trimming

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

Вариант Qwen3.6-35B-A3B с уменьшенным словарём для мультимодальных диалогов и работы с изображениями на языках с латинской и греческой письменностью.

42скачиваний за 30 дней1лайквеса обновлены9 июл 2026

Бенчмарки

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

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

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

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

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

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

Elsephire/Qwen3.6-35B-A3B-vocabulary-trimming — производная версия Qwen3.6-35B-A3B, подготовленная автором Elsephire для работы с урезанным словарём. Модель сохраняет мультимодальные возможности исходной Qwen, включая диалог и анализ изображений, но словарь токенизатора уменьшен на 41,3%: оставлены токены латинской и греческой письменности, а специальные и мультимодальные токены сохранены. В README указано 8,129 млрд параметров; метаданные описывают архитектуру как Qwen3.5 MoE и указывают библиотеку Transformers.

Модель предназначена для диалогов, анализа изображений и генерации на английском, французском, немецком, испанском, итальянском, португальском, нидерландском, польском, румынском, венгерском и греческом языках. Удаление части словаря уменьшает размер файлов примерно на 800,8 МБ и может сократить вычисления при обработке и генерации текста. Автор также предполагает небольшое улучшение качества на сохранённых языках, но это заявление не подтверждено приведёнными результатами бенчмарков.

Модель распространяется по лицензии MIT. Удалённые токены делают её непригодной для корректной работы на русском, китайском, японском, корейском, арабском и других языках, чьи токены исключены; исходные возможности вне сохранённых языков не гарантируются. README называет размер модели и архитектуру базовой версии, но не приводит длину контекста.

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

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

Ограничения

Токены кириллицы, китайской, японской, корейской и ряда других письменностей удалены, поэтому модель не подходит для корректной работы на этих языках. Заявленное возможное улучшение качества на 1–3% не подкреплено результатами бенчмарков в карточке.

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

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

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

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

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

Открыть на Hugging Face

Qwen3.6-35B-A3B-Trimmed

A vocabulary-trimmed version of Qwen3.6-35B-A3B with 41.3% fewer tokens, keeping only Latin (EN, FR, DE, ES, IT, PT, NL, PL, RO, HU) and Greek scripts while preserving all original capabilities in those languages.


📊 Trimming Statistics

MetricOriginalTrimmedGain
Vocabulary size248,077 tokens145,572 tokens−41.3%
File size16,305.6 MB15,504.8 MB−800.8 MB (5.16%)
Parameters8,129.0 M8,129.0 Munchanged
ArchitectureMoEMoEunchanged

Original vocabulary distribution by script

Script / LanguageTokens% of vocabularyStatus
Latin (EN, FR, DE, ES, IT, PT, NL, PL, RO, HU)144,02958.1%✅ Kept
Chinese / Japanese / Korean65,72226.5%❌ Removed
Cyrillic (RU, UK, BG, SR, MK)18,5807.5%❌ Removed
Arabic8,8173.6%❌ Removed
Thai5,7412.3%❌ Removed
Greek1,5430.6%✅ Kept
Devanagari (Hindi, Nepali, Marathi)9590.4%❌ Removed
Bengali5310.2%❌ Removed
Hebrew5200.2%❌ Removed
Tamil2680.1%❌ Removed
Malayalam2050.1%❌ Removed
Telugu1880.1%❌ Removed
Georgian1860.1%❌ Removed
Burmese1470.1%❌ Removed
Kannada1440.1%❌ Removed
Gujarati1160.0%❌ Removed
Armenian880.0%❌ Removed
Khmer790.0%❌ Removed
Sinhala770.0%❌ Removed
Gurmukhi (Punjabi)650.0%❌ Removed
Lao370.0%❌ Removed
Ethiopic (Ge'ez)250.0%❌ Removed
Tibetan100.0%❌ Removed

🎯 Why Trim?

Eliminating random Asian characters

One of the most common issues with general multilingual models is the sporadic appearance of Chinese, Japanese, or Korean characters in outputs meant for Latin-script languages — even when the prompt has nothing to do with those languages. This happens because the model occasionally explores parts of the vocabulary that are never actively used for the target task. By permanently removing those tokens, this issue is resolved at a structural level: the model simply cannot generate them anymore, as they no longer exist in its output space.

Faster generation and prompt processing

Reducing the vocabulary size has a direct and measurable impact on speed:

  • Prompt processing (prefill) — The embedding matrix is smaller, which reduces load time and memory access during the prefill phase.
  • Token-by-token generation (decoding) — The search for the best token in the output distribution (softmax + argmax) operates over a 41.3% smaller space. This translates into faster decoding, especially on hardware where the softmax computation is the bottleneck.

Reduced memory footprint

  • Storage — The model file is 800.8 MB smaller (5.16% reduction).
  • RAM / VRAM — The embedding matrix (lm_head + embed_tokens) occupies proportionally less memory. On systems with tight memory constraints, this reduction can make it possible to run the model where it previously wouldn't fit, or free up memory for other processes.

Potential performance improvement (1–3%)

Trimming the vocabulary may lead to a slight improvement in overall model performance on the retained languages. The hypothesis is that reducing the output space concentrates probability mass more effectively on relevant tokens, reducing the statistical noise introduced by thousands of tokens that are never used in the task context. Gains in the range of 1–3% may be observed on Latin-language benchmarks (perplexity, answer accuracy, coherence).


🔧 Methodology

Trimming was performed using the [vocab-trimmer] release soon tool, which follows this pipeline:

  1. Vocabulary analysis — Each token in the original tokenizer is classified by Unicode script (Latin, CJK, Cyrillic, Arabic, etc.).
  2. Selective filtering — Only Latin and Greek scripts are kept. Special tokens (EOS, BOS, PAD, etc.) and multimodal tokens are always preserved.
  3. ID remapping — A continuous old_id → new_id mapping is built to compact the vocabulary with no gaps.
  4. Weight slicing — Only the rows of the embedding matrices corresponding to retained tokens are extracted. The lm_head and embed_tokens layers are recalibrated.
  5. Configuration reconstruction — tokenizer_config.json, tokenizer.json, config.json, and the vocabulary are rebuilt with the new IDs. Chat templates and special tokens are preserved verbatim.
  6. Verification — Consistency between tokenizer and weights is validated (special token IDs < vocab_size, functional chat template, etc.).

⚠️ Limitations

  • Unsupported languages — This model cannot generate text in Chinese, Japanese, Korean, Russian, Arabic, Thai, Hindi, Bengali, Hebrew, or any other language whose tokens were removed. Prompts in these languages will not be understood correctly.
  • Supported languages — Functional languages include English, French, German, Spanish, Italian, Portuguese, Dutch, Polish, Romanian, Hungarian, and Greek.
  • Code & Math — Programming and mathematical tokens are preserved (they primarily use Latin encoding). No loss of capability is expected in these domains.
  • Emojis & Symbols — Common Unicode symbols and emojis are retained if they fall within the selected scripts.

📁 Model files

FileDescription
model.safetensorsModel weights (SafeTensors format)
config.jsonModel configuration
tokenizer_config.jsonTokenizer configuration
tokenizer.jsonAdded tokenizer (BPE)
tokenizer.modelOriginal SentencePiece model
merges.txtBPE merge operations

💡 Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "your-namespace/Qwen3.6-35B-A3B-Trimmed"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")

inputs = tokenizer("Explain quantum computing in simple terms.", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

📝 License

This model is derived from Qwen/Qwen3.6-35B-A3B and follows its original license. The trimming tool [vocab-trimmer] release soon is available under the MIT License.


🔗 References

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

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

GPU в ailist

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

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

Модель не помещается в память одной GPU (80 ГБ).

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

0 моделей