/ Модель

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

Контекст
40 960 токенов
Параметры
3,7 млрд
Размер весов
8,8 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B
Библиотека
transformers
Опубликована
26 окт 2026

Qwen3-4B-OPD-Qwen3-14B-Step200

Генерация текстаТекст → текст6 профессий
21скачиваний за 30 дней0лайковвеса обновлены26 окт 2026

Описание модели

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

Исследовательская дообученная модель Qwen3-4B, дистиллированная из Qwen3-14B для генерации кода и диалогов.

Qwen3-4B-OPD-Qwen3-14B-Step200 — исследовательский чекпойнт языковой модели, подготовленный как финальный результат 200 обновлений дистилляции на собственных ответах студента (on-policy distillation, OPD). Разработчик начал с Qwen/Qwen3-4B и использовал фиксированную модель-учителя Qwen3-14B; её веса в репозитории отсутствуют. Модель имеет плотную архитектуру Qwen3ForCausalLM, около 3,7 млрд параметров и контекст до 40 960 токенов.

Чекпойнт предназначен для генерации кода и диалогового применения по шаблону Qwen3 без режима thinking. Обучение проводилось на кодовой части PRIME-RL/Eurus-2-RL-Data с использованием обратной KL-дистилляции, приближённой по 16 наиболее вероятным токенам студента. В карточке приведены архивные результаты одного запуска на HumanEval+, MBPP+ и LiveCodeBench; независимая проверка загруженного чекпойнта не выполнялась. Модель распространяется по лицензии Apache-2.0.

Результаты не подтверждают широкую универсальную производительность или безопасность: это исследовательский чекпойнт, унаследовавший ограничения исходной Qwen3-4B, и он может выдавать неверный код или ответы.

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

  • генерация кода по текстовому запросу
  • решение задач программирования и алгоритмов
  • диалоговые ответы на вопросы о коде
  • воспроизведение и изучение on-policy-дистилляции

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3-4B-OPD-Qwen3-14B-Step200

This is the final student checkpoint after 200 on-policy distillation (OPD) updates from Why On-Policy Distillation Sometimes Fails: Vanishing Learning Signals. It starts from Qwen/Qwen3-4B and learns from the fixed teacher Qwen3-14B (public reference). The uploaded model is the distilled student; the teacher's weights are not included.

Paper · Project page · Code and numerical results

Training

The run uses a reverse-KL OPD objective approximated with the student's top 16 tokens, student-probability weights, and a global mean over valid response tokens. Student-generated responses provide the prefixes for fixed-teacher supervision.

SettingValue
Initial studentQwen/Qwen3-4B
Teacher training aliasQwen3-14B
Training dataPRIME-RL/Eurus-2-RL-Data (code subset)
Final training step200
OptimizerAdamW; learning rate 1e-6; constant schedule
Prompt batch / rollouts per prompt64 / 1
Maximum prompt / response tokens2048 / 16384
Sampling temperature1.0
Public recipecode_14b

Qwen3 non-thinking chat template (enable_thinking=False). See the experiment map for launcher provenance and the reproducibility notes for the historical evaluation protocol.

Step-200 evaluation

The following numbers are archived results of the paper run. Accuracy is avg@4, the mean correctness of sampled responses, macro-averaged over the three benchmarks. This is not pass@k, which counts whether any sample succeeds. The maximum validation response length is 16384 tokens, with temperature 1.0 and top-p 1.0.

BenchmarkFinal avg@4 (%)
HumanEval+79.27
MBPP+65.41
LiveCodeBench15.65
Macro average53.44

The initial student scored 52.69%; the step-200 checkpoint scores 53.44% (+0.75 percentage points). The final logged top-16 loss is 0.10064545, a 25.9% reduction from update 1. This is the final reduction, not the minimum loss observed earlier in training, and the logged surrogate is not the full-vocabulary KL.

  • Step-zero accuracy reuses the audited evaluation of the identical initial Qwen3-4B student from the RL-Code reproduction; this run first logged validation at step 10.

  • The public recipe is a reconstructed convenience launcher, not a claim that it was the historical launch command producing this checkpoint.

  • These are archived paper-run metrics; the exported/uploaded checkpoint has not yet been independently re-evaluated during packaging.

Use

Load this repository with AutoTokenizer and AutoModelForCausalLM (Transformers 4.56.2 or a compatible newer version, with PyTorch and Accelerate). Use its saved chat template; the example below is a short inference example, not a reproduction of the benchmark protocol.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "leizhao7/Qwen3-4B-OPD-Qwen3-14B-Step200"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id, torch_dtype="auto", device_map="auto"
)
messages = [{"role": "user", "content": "Write a Python function that returns the unique elements of a list in order."}]
inputs = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,

    enable_thinking=False,

    return_dict=True,
    return_tensors="pt",
).to(model.device)
output = model.generate(
    **inputs,
    max_new_tokens=1024,
    do_sample=True,
    temperature=1.0,
    top_p=1.0,
)
print(tokenizer.decode(output[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Scope and limitations

This is a research checkpoint for reproducing and studying OPD. The paper reports one run per condition under a fixed 200-update horizon. These results do not establish broad general-purpose performance, safety, or that loss plateaus persist under every training configuration. The checkpoint retains the limitations of its initial student and can produce incorrect answers or code.

License and provenance

This OPD checkpoint modifies the Apache-2.0 Qwen3 student. Preserve the upstream Apache-2.0 license and attribution, and state that the weights were modified by 200 OPD updates. No teacher weights are included. See LICENSE and UPSTREAM_ATTRIBUTION.md. The code repository's MIT license is separate from the model's upstream terms.

The link is the official public repository for the named teacher. Its training-time revision is not recorded in the public release. The teacher repository is linked for attribution and reproducibility; it is not listed as the initial student. Training-time upstream revisions are not recoverable from the public numerical release alone. This release includes SHA256SUMS, checkpoint provenance, and validation.json documenting export checks separately from the archived benchmark results.

Citation

@misc{zhao2026opdlearningsignals,
  title={Why On-Policy Distillation Sometimes Fails: Vanishing Learning Signals},
  author={Lei Zhao and Qichao Zhao and Bowen Zuo and Qishi Zhan},
  year={2026},
  eprint={2610.11247},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2610.11247}
}

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

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

0 моделей