/ Модель

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

Контекст
262 144 токена
Параметры
7,2 млрд
Размер весов
17,9 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5_text · dense
Базовая модель
Qwen3.5-9B
Библиотека
transformers
Опубликована
3 ноя 2026

qwen-3.5-babel-9b-sft-agent-multistep

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

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

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

Дообученная текстовая модель Qwen для многошаговой генерации тактик и восстановления доказательств в Lean и Rocq с учётом состояния доказательства и обратной связи верификатора.

Qwen-3.5-Babel-9B-SFT-Agent-Multistep — текстовая модель на базе Qwen/Qwen3.5-9B, дообученная авторами репозитория для восстановления доказательств Lean и Rocq по proof terms и пошаговой адаптации тактик к текущим гипотезам, целям и ответам верификатора. Модель имеет плотную архитектуру Qwen3_5ForCausalLM, около 7,2 млрд параметров и контекст до 262 144 токенов; опубликована в формате BF16 safetensors и рассчитана на диалоговый режим и интерфейс вызова инструментов.

Обучение выполнено полнопараметрическим supervised fine-tuning на 795 демонстрациях Lean и Rocq с записанными ответами верификатора, включая многошаговые вызовы тактик. Модель подходит для экспериментальных агентных сценариев формальной верификации: генерации следующих тактик и работы с обратной связью proof assistant. Карточка не заявляет улучшения решения теорем; обучающий корпус преимущественно содержит успешные демонстрации и почти не охватывает отказы и восстановление после ошибок. Естественно-языковые рассуждения не сертифицированы формально. Лицензия — Apache-2.0.

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

  • восстановление доказательств Lean по proof terms
  • восстановление доказательств Rocq по proof terms
  • генерация следующего блока тактик по текущим целям и гипотезам
  • адаптация тактик по ответам верификатора
  • создание агентных сценариев взаимодействия с Lean и Rocq

Ограничения

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

qwen-3.5-babel-9b-sft-agent-multistep

Qwen3.5-9B fine-tuned to reconstruct Lean/Rocq tactic proofs from proof terms, then adapt each next tactic block to the actual hypotheses, goals, and verifier feedback. This reviewed release was trained from the original upstream model and completed on November 6, 2026. It replaces the November 3 weights on the same model repository; the previous revision remains in history.

Training and dataset review

  • 795 demonstrations: 348 Lean and 447 Rocq.
  • 5,212 tactic calls with recorded real verifier replies; 789 examples contain multiple calls.
  • All 807 source entries were reviewed individually. Twelve entries were quarantined for semantic/provenance issues. 3,442 reasoning turns were edited across 787 retained entries to better explain the proof-term structure and reason from the actual current proof state.
  • Retained tactic actions, initial prompts and recorded verifier observations are unchanged. This is an editorial revision of existing replayed traces, not newly sampled rollouts or fresh verifier replay. No observations were fabricated. Natural-language reasoning is not formally certified.
  • Five epochs / 125 optimizer updates, final checkpoint epoch_4_step_124 (zero-based numbering), full-parameter BF16 SFT.
  • Sequence cap 12,288; global batch 32; learning rate 1e-5; 50-update warmup; retained 320-update cosine schedule horizon.
  • Assistant reasoning and tool calls receive loss. Verifier replies and user/system text are context only. Long source examples were retained in full; the unchanged loader shortened reasoning in 10 entries to fit the cap while preserving all proof actions and verifier feedback.

Lean replay originally used Mathlib with Lean v4.22.0-rc4. The original Rocq checkout was unavailable, so replay used a reconstructed CORN 8.20.0 environment. This corpus primarily contains successful demonstrations, with very little recorded rejection/recovery coverage. No theorem-solving improvement is claimed for these new weights; evaluation is separate from training loss.

Dataset SHA-256: edcddee603c8fd23dc66c2070bfe7755ee8bacc5869beae5138ed32754109bb3. Training manifest SHA-256: fe81776322095a0d8ac814c3aa44e0645e508f45346c8b4950fd67965b5e0f24. The release manifest records training provenance, source/export hashes and validation results.

Format and validation

This is a text-only Qwen3_5ForCausalLM with complete BF16 safetensors weights, tokenizer, native chat template and generation configuration. It has no vision encoder and is not an adapter. No NeMo installation or custom model code is required for inference. Every consolidated tensor tile is compared against the saved training checkpoint. Publication requires finite weights, standard Transformers loading without missing/unexpected/mismatched keys, and a finite CUDA forward pass. These checks do not measure proof quality.

Usage

Validated with Transformers 5.5.0. Install Transformers and Accelerate in a compatible PyTorch environment. The prompt below follows the training format:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "theostos/qwen-3.5-babel-9b-sft-agent-multistep"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id, dtype="auto", device_map="auto",
)
tool = {
    "type": "function",
    "function": {
        "name": "submit_tactic",
        "description": "Submit a tactic block to the Lean or Rocq verifier. The block may contain a complete proof.",
        "parameters": {
            "type": "object",
            "properties": {
                "tactic": {
                    "type": "string",
                    "description": "Tactics only, without theorem declarations or Markdown fences."
                }
            },
            "required": [
                "tactic"
            ]
        }
    }
}
messages = [{
    "role": "user",
    "content": (
        "Derive a Lean 4 tactic proof from the following proof term. "
        "Use submit_tactic to submit the next tactic block. Continue step by step until the proof is complete. "
        "Do not include theorem declarations or Markdown fences in the tactic argument.\n\n"
        "Proof term:\nfun (p : Prop) (h : p) => h\n\n"
        "Dependencies that may be useful:\n\n"
        "Initial proof state in Lean 4 (hypotheses already in context, then the goal):\n"
        "p : Prop\nh : p\n⊢ p"
    ),
}]
inputs = tokenizer.apply_chat_template(
    messages, tools=[tool], enable_thinking=True,
    add_generation_prompt=True, tokenize=True,
    return_tensors="pt", return_dict=True,
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024)
print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[1]:], skip_special_tokens=False))

This generates the next assistant turn. Your host must parse Qwen's native tool-call format, execute submit_tactic in Lean or Rocq, append the assistant message with its structured tool_calls and reasoning, then append a tool message with the matching tool_call_id and actual verifier response before generating the next turn. Keep one proof state across calls: append accepted tactic blocks, preserve Lean indentation across calls, and roll back rejected blocks. Include real initial goals in the user prompt. Supplying the schema alone does not run a prover; never fabricate verifier replies.

See Babel-Formal for the replay, training and export implementation. Generated proofs still require checking. Released under Apache 2.0, following the upstream Qwen3.5 model.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3_5ForCausalLM
Ревизия весов
7159f05

0 моделей