/ Модель

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

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

Qwen3-4B-OPD-RL-Code-Step200

Генерация текстаТекст → текст3 профессии

Экспериментальный чекпойнт Qwen3-4B после 200 обновлений дистилляции предназначен для генерации кода и изучения on-policy distillation.

46скачиваний за 30 дней0лайковвеса обновлены26 окт 2026

Бенчмарки

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

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Qwen3-4B-OPD-RL-Code-Step200 — языковая модель, разработанная как студенческий чекпойнт после 200 обновлений дистилляции на основе собственных ответов модели. Она основана на Qwen/Qwen3-4B и обучалась по reverse-KL с фиксированным учителем Qwen3-4B-Non-Thinking-RL-Code-Step300 на подмножестве кода из PRIME-RL/Eurus-2-RL-Data. Модель предназначена для генерации кода и изучения или воспроизведения метода on-policy distillation.

Это плотная авторегрессионная модель Qwen3 с 3,7 млрд параметров, поддерживающая текстовый диалог и контекст до 40 960 токенов. В README приведены архивные результаты одного экспериментального запуска на HumanEval+, MBPP+ и LiveCodeBench; загруженный чекпойнт отдельно при упаковке не переоценивался. Эти результаты не подтверждают качество для широкого круга задач, безопасность или устойчивость эффекта при других настройках обучения. Модель может выдавать неверные ответы и код. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3-4B-OPD-RL-Code-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-4B-Non-Thinking-RL-Code-Step300 (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-4B-Non-Thinking-RL-Code-Step300
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_rl

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+86.13
MBPP+70.44
LiveCodeBench24.62
Macro average60.39

The initial student scored 52.69%; the step-200 checkpoint scores 60.39% (+7.70 percentage points). The final logged top-16 loss is 0.00069608, a 99.4% 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.

  • Completed 2026-09-23 reproduction on 2 H200 GPUs with native checkpoint resumes, not the older 149-step run. Eight responses were generated; avg@4 uses the archived fixed reward-independent four-of-eight selection at every validation 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-RL-Code-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 linked Keven16 repository is a verified public checkpoint with the same name. The released local training configuration does not establish that this was the historical download origin; no historical HF source ID or revision is asserted. 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
Ревизия весов
675ac73

0 моделей