Skip to content
Other

Looped Qwen Controlled Adapters

экспериментальные адаптеры для изучения цепочек рассуждений в моделях Qwen

1 min read

Этот репозиторий содержит набор чекпоинтов адаптеров для тестирования закольцованной архитектуры (looped adapters) поверх семейств языковых моделей Qwen. Согласно выводам автора, небольшие закольцованные адаптеры заставляют Qwen3.5-35B и Qwen3.6-35B рассуждать короче по сравнению с обычным файнтюном, хотя это не привело к росту точности ответов. Набор предназначен для исследователей, которые изучают поведение весов и механизмы мышления больших языковых моделей на базе MLX и PyTorch.

Ключевые особенности

  • Экспериментальные веса: Набор адаптеров для различных версий Qwen3, Qwen3.5, Qwen3.6 и Qwen4.
  • Сравнение подходов: Включает закольцованные варианты и контрольные модели без петли для чистоты экспериментов.
  • Интеграция с GitHub: Полный код тестов, рецепты «открытого канала» и данные доступны в связанном репозитории автора.
  • Различные форматы: Чекпоинты оптимизированы под разные бэкенды, включая 8-бит MLX и FP8 PyTorch/vLLM.

Что можно сделать

  • Провести тестирование: Загрузить адаптеры поверх базовых моделей Qwen с помощью кода из репозитория проекта.
  • Изучить механику: Проанализировать влияние закольцованных слоев на длину рассуждений и логику ответов моделей.

Пример

Адаптеры не являются самостоятельными моделями. Для их запуска необходимо использовать специализированный код репозитория `bojieli/looped-qwen-controlled` совместно с базовыми весами Qwen.

ПодробнееБазовые модели: Qwen3.5-35B, Qwen3.6-35B-A3B, Qwen4-35B и другие.
Форматы чекпоинтов: safetensors с конфигурационными .json файлами.
Ограничение: адаптеры не повышают точность ответов на тестах, а лишь изменяют структуру рассуждений.
Discuss TelegramReport 1

Will it run?

Working out the memory needs

The bot is still collecting this model's weight sizes; the estimate will appear here in a few minutes. Meanwhile you can rent a GPU with headroom.

Massed ComputeOpen Massed Compute

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # boj-pine/looped-qwen-controlled-adapters
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download boj-pine/looped-qwen-controlled-adapters --local-dir ~/models/looped-qwen-controlled-adapters
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b42from December 2, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of looped-qwen-controlled-adapters (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

boj-pine/looped-qwen-controlled-adapters
Author
boj-pine
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

01

Ask AI about this model

Generated by external AI (Google Gemini) · chat stays only in this tab · Privacy Policy

Comments