/ Модель

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

Контекст
32 768 токенов
Параметры
494 млн
Лицензия
Apache 2.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-0.5B-Instruct
Библиотека
transformers
Опубликована
24 окт 2026

continual-lm

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

Экспериментальная англоязычная модель на базе Qwen2.5-0.5B-Instruct для генерации текста и изучения непрерывного обучения на последовательности учебных задач.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

makltd1/continual-lm — исследовательская языковая модель, созданная Федором Маковским на основе Qwen2.5-0.5B-Instruct. Модель Qwen2 с плотной архитектурой и 494 млн параметров дообучена последовательно на четырёх англоязычных учебных задачах: написании коротких историй, ответах на вопросы по тексту, арифметике и генерации аннотаций к работам по машинному обучению. При обучении применялись повторное предъявление примеров, отбор по «удивительности», порядок от простого к сложному и фаза «сна»; LoRA-адаптеры объединены с весами. Модель генерирует текст, поддерживает контекст до 32 768 токенов и распространяется в формате safetensors под лицензией Apache-2.0.

Модель рассчитана на эксперименты с непрерывным обучением и демонстрацию того, как при последовательном изучении задач можно снизить забывание ранее освоенных навыков. В отчёте авторов она улучшила результаты на изученных задачах относительно исходной модели, сохранив 95% её оценки на наборе инструкций. Для запуска достаточно обычной модели Hugging Face; для продолжения обучения на пользовательских примерах проект предоставляет отдельное состояние обучения и код.

Это небольшой экспериментальный чекпойнт, а не универсальный помощник: обучение проводилось на английских образовательных данных и только с одним seed для финальной конфигурации. Модель всё ещё забывает часть знаний и хуже справляется с общим текстом, чем исходная Qwen2.5-0.5B-Instruct; также она ненадёжно соблюдает точные форматные инструкции. Авторы рекомендуют подбирать модель под конкретный сценарий и, вероятно, использовать более крупную модель для практических задач.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

continual-lm

Qwen2.5-0.5B-Instruct trained on a stream of four tasks one after another (short stories, questions about a passage, arithmetic, machine-learning abstracts), with techniques that reduce forgetting: replay of old examples, selection by "surprise", easy-to-hard ordering, a "sleep" phase, and replay of the model's own answers to general requests. All LoRA adapters are merged into the weights, so this is an ordinary Hugging Face model; the project's code is not needed to run it.

This is a research artifact, not a general-purpose assistant. The tasks are educational, the data is English, and the model has 0.5 B parameters. See "Limitations".

Code, configs, and the full experiment report: https://github.com/makltd123/continual-lm

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

tok = AutoTokenizer.from_pretrained("makltd1/continual-lm")
model = AutoModelForCausalLM.from_pretrained("makltd1/continual-lm")
messages = [{"role": "user", "content": "What is 17 + 25? Reply with the answer only."}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True)
out = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

It runs on a CPU (an answer takes from a few seconds to half a minute).

Keep teaching it: the learner state

The state/ folder is the learner state at checkpoint ckpt-000020 (20 portions, 2 sleep phases): the merged adapters, the current adapter, the replay buffer, the counters and the random states. The project's chat.py (a chat that learns from your corrections) and live.py (training on your own .jsonl files) continue from it. The code is at https://github.com/makltd123/continual-lm.

pip install huggingface_hub
python -c "from huggingface_hub import snapshot_download; snapshot_download('makltd1/continual-lm', allow_patterns='state/*', local_dir='download')"
git clone https://github.com/makltd123/continual-lm && cd continual-lm
pip install torch && pip install -r requirements.txt
python chat.py --state ../download/state --low-memory

The base model Qwen2.5-0.5B-Instruct is downloaded on first run. Write each chat message on one line; after an answer, /good learns it and /fix <right answer> learns the right one. The replay buffer (state/ckpt-000020/buffer.json) holds 640 examples per task: excerpts of the datasets listed below, under their licenses, and the model's own answers to Dolly prompts.

Results

Final configuration E5_final_v2, a single seed, measured on the test split after the whole stream A → B → C → D. The original model is measured on the validation split.

Stories, ppl ↓Passage QA, EM ↑Arithmetic, EM ↑Abstracts, ppl ↓Instruction followingGeneral text, ppl ↓
Qwen2.5-0.5B-Instruct (original)5.740.370.4114.960.57925.9
continual-lm4.840.5980.79513.600.553 (95% of the original)27.75
  • Instruction following is the project's own set of 152 automatically checkable instructions (17 types, in the spirit of IFEval). One instruction is about 1% of the score, so the margin over the 90% acceptance threshold is small.
  • Perplexity on general text grew by about 7% (25.9 → 27.75): the model traded some general language breadth for the learned tasks.
  • Without replay of its own answers, training on narrow tasks always erodes instruction following (81–88% of the original remains).

Limitations

  • Small model, English-only data, educational tasks. A practical use needs a real scenario and probably a larger model.
  • Training was done once for the final model (one seed); the comparison experiments use three seeds.
  • The model does not follow format instructions such as "exactly N paragraphs", "in quotes", "start/end with a phrase", "no commas".
  • It forgets less than a plain fine-tune, but it still forgets. It is not "forgetting-free".

Training data and licenses

The datasets are not redistributed here; they were downloaded from the Hugging Face Hub at pinned revisions.

RoleDatasetLicense
Task A, storiesroneneldan/TinyStoriesCDLA-Sharing-1.0
Task B, passage QArajpurkar/squadCC BY-SA 4.0
Task C, arithmeticgenerated by the project—
Task D, abstractsCShorten/ML-ArXiv-PapersAFL-3.0
Prompts for self-replaydatabricks/databricks-dolly-15kCC BY-SA 3.0

Evaluation only (never trained on): WikiText-2 (CC BY-SA 3.0 / GFDL). Several of these licenses carry attribution or share-alike conditions; how they apply to model weights is not settled, so check them before any commercial use.

The base model is released under Apache-2.0 by the Qwen team.

Author

Fedor Makovskiy, AI developer. Code and reports: https://github.com/makltd123/continual-lm

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей