/ Модель

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

Контекст
32 768 токенов
Параметры
1,7 млрд
Лицензия
Apache 2.0
Архитектура
qwen3_looped · dense
Базовая модель
Qwen3-1.7B-Base
Библиотека
transformers
Опубликована
16 ноя 2026

DRV-Qwen3-1.7B-loop4-run2

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

Экспериментальная базовая языковая модель на основе Qwen3-1.7B с повторным выполнением блока слоёв для генерации текста.

302скачиваний за 30 дней0лайковвеса обновлены16 ноя 2026

Бенчмарки

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

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

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

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

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

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

DRV-Qwen3-1.7B-loop4-run2 — экспериментальная модель из коллекции Depth Recurrent Vector, созданная автором CharlesDDDD на основе Qwen3-1.7B-Base. Модель продолжала предварительно обучать примерно на 20 млрд токенов из смеси веб-страниц, PDF, кода и траекторий агентов. В ней 1,7 млрд параметров и контекст до 32 768 токенов; веса доступны в формате SafeTensors, лицензия — Apache-2.0.

Это базовая авторегрессионная языковая модель для генерации текста. Блок из 12 слоёв (слои 8–19) повторно выполняется с общими весами, увеличивая вычисления на токен без увеличения числа параметров; основной вариант обучен на четырёх проходах. Модель не проходила инструкционную настройку. Для загрузки требуется Transformers с trust_remote_code=True, а KV-кэш при нескольких проходах больше, чем у обычной Qwen3-1.7B. README отмечает, что vLLM и другие движки обслуживания пока не поддерживают эту архитектуру.

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

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

Ограничения

Модель не прошла инструкционную настройку и требует загрузки с trust_remote_code=True. vLLM и другие движки обслуживания пока не поддерживают эту архитектуру; при нескольких проходах KV-кэш заметно больше.

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

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

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

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

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

Открыть на Hugging Face

DRV-Qwen3-1.7B-loop4-run2

Main. Block repeated 4 times; different random seed from loop4-run1.

What this is

Qwen3-1.7B-Base, continued-pretrained for about 20B tokens (one pass over a web / PDF / code / agent-trajectory mix, 16K-token sequences, AdamW, peak LR 3e-4 with cosine decay). In the looped models, layers 8-19 (12 of the 28 layers, counting from 0) form a block that runs several times in a row with the same weights, so the model gets more computation per token without more parameters. Layers 0-7 run once before the block, layers 20-27 once after it.

How passes are connected: the first pass reads the output e of layer 7. Every later pass reads e + g * (previous pass output - e), where g is one learned number per hidden channel (model.loop_gate). With g = 0 the model is exactly the original Qwen3. The ablation-loop3-chained* models connect passes differently (see their description).

Unless the description says otherwise, training also put a small loss (weight 0.0555) on the prediction made after each intermediate pass, so stopping early still gives sensible output.

Part of the Depth Recurrent Vector collection; the reference model without looping is CharlesDDDD/DRV-Qwen3-1.7B-midtrain-noloop.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

name = "CharlesDDDD/DRV-Qwen3-1.7B-loop4-run2"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(name, dtype="bfloat16", trust_remote_code=True).cuda()
ids = tok("The capital of France is", return_tensors="pt").input_ids.cuda()
out = model.generate(ids, max_new_tokens=20)                 # trained number of passes
out = model.generate(ids, max_new_tokens=20, num_loops=4)    # any other number of passes
  • Requires trust_remote_code=True (tested with transformers 5.14). Each pass keeps its own KV cache, so with 3 passes the cache is about 1.9x that of a standard Qwen3-1.7B.
  • vLLM and other serving engines do not support this architecture yet.
  • These are base models (no instruction tuning). The HF implementation matches our training code to within 0.003 nats of loss at every number of passes.

Test loss by number of passes (trained with 4)

passes12345678
loss1.20271.14891.14051.11801.12961.13511.11981.1299

Held-out test set from the training data mix; lower is better. The control without looping gets 1.1460.

Averaged-weights version (ema branch)

The ema branch of this repo holds a running average of the weights over training, which is usually slightly better than the final weights. Recent steps count more than early ones (power EMA with gamma = 36.7: step t gets weight proportional to t^36.7, so the average effectively covers the last few percent of training). For models that average several runs, the ema branch averages those runs' averaged weights. Same architecture and code, only the weights differ:

model = AutoModelForCausalLM.from_pretrained("CharlesDDDD/DRV-Qwen3-1.7B-loop4-run2", revision="ema", dtype="bfloat16", trust_remote_code=True)
passes12345678
final weights (main)1.20271.14891.14051.11801.12961.13511.11981.1299
averaged weights (ema)1.19831.14581.13721.11461.12611.13171.11631.1264

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
Qwen3LoopedForCausalLM
Ревизия весов
50eddf8

0 моделей