/ Модель

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

Контекст
32 768 токенов
Параметры
3,1 млрд
Лицензия
Своя лицензия
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-3B-Instruct
Библиотека
transformers
Опубликована
27 авг 2026

tei-bibl-annotator-citext

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

Модель размечает библиографические цитаты, включая ссылки в сносках, встроенными тегами TEI XML.

80скачиваний за 30 дней0лайковвеса обновлены27 авг 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TEI Bibliographic Annotator — модель cmboulanger, дообученная методом LoRA на базе Qwen/Qwen2.5-3B-Instruct и объединённая с базовыми весами. Она принимает обычный текст библиографической цитаты и размечает его встроенными тегами TEI XML, выделяя авторов, названия, даты, издателей и другие библиографические элементы. Модель предназначена для разбора цитат в сносках научных работ по правовой социологии, в том числе сокращённых и анафорических ссылок, а также цитат, встроенных в авторский текст.

Это плотная авторегрессионная архитектура Qwen2 с 3,1 млрд параметров, рассчитанная на контекст до 32 768 токенов. На проверочной выборке из 1 207 записей корректный XML получен для 99,83% примеров, а точное совпадение с эталонной разметкой — для 42,50%; эти результаты являются предварительной проверкой, а не полной оценкой по полям. Обучающие данные преимущественно немецкоязычные, часть цитат — на английском. Для работы требуется использовать формат чата и инструкцию, соответствующие обучению. Лицензия указана как other, конкретные условия в карточке не раскрыты.

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

  • разметка авторов, названий и дат в библиографических цитатах
  • структурирование ссылок из сносок в научных текстах
  • разбор сокращённых и анафорических библиографических ссылок
  • извлечение библиографических элементов из текста о праве и обществе

Ограничения

Точное совпадение с эталонной разметкой составило 42,50% на проверочной выборке; опубликованные метрики не включают полную оценку отдельных полей. Для генерации ожидаются обучающий формат чата и фиксированная системная инструкция; условия лицензии требуют отдельной проверки.

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

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

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

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

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

Открыть на Hugging Face

TEI Bibliographic Annotator

A LoRA fine-tune of Qwen/Qwen2.5-3B-Instruct, merged back into the base weights, that tags a plain-text bibliographic citation with inline TEI XML markup. It reproduces the input text exactly, inserting tags around the spans that carry bibliographic structure (author, title, date, publisher, and so on) — nothing is paraphrased or normalized away. The output is just the tagged citation: no XML declaration, no wrapping element.

Source & training pipeline: github.com/cboulanger/tei-annotation-model · Live demo: cmboulanger/tei-bibl-annotator-demo

The training citations come from footnotes in legal-sociology scholarship (mostly German, some English), where citations are frequently given in short-form or anaphoric form ("Id.", "ibid.", a bare case name introduced earlier) and are mixed in with the author's own prose — harder than the clean one-per-line entries of a reference list.

Example:

input:  Scheingold, The Politics of Rights (1974).
output: <author><persName><surname>Scheingold</surname></persName>,</author>
        <title level="a">The Politics of Rights</title> <date>(1974).</date>

License

This checkpoint is for research use only. The base model, Qwen/Qwen2.5-3B-Instruct, is released under Alibaba's Qwen Research License, which restricts commercial use. Because the LoRA adapter is merged directly into the base weights, this checkpoint is a derivative work and inherits those terms. See the linked license text for the exact conditions.

How to use

The model expects the same chat prompt used during training and evaluation: a fixed system instruction plus the raw citation as the user turn. Generation is greedy (do_sample=False), max_new_tokens=1024.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

REPO = "cmboulanger/tei-bibl-annotator"
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"

INSTRUCTIONS = (
    "Tag this bibliographic citation with inline TEI XML markup, exactly "
    "reproducing the input text with tags inserted around the parts that "
    "carry structure (author, title, date, etc). Output only the tagged "
    "citation, with no XML declaration or wrapping element."
)


def build_messages(input_text: str) -> list[dict]:
    return [
        {"role": "system", "content": INSTRUCTIONS},
        {"role": "user", "content": input_text},
    ]


tokenizer = AutoTokenizer.from_pretrained(REPO)
model = AutoModelForCausalLM.from_pretrained(REPO, dtype=torch.bfloat16).to(DEVICE)
model.eval()

input_text = "Scheingold, The Politics of Rights (1974)."
inputs = tokenizer.apply_chat_template(
    build_messages(input_text), add_generation_prompt=True,
    tokenize=True, return_dict=True, return_tensors="pt",
).to(DEVICE)

with torch.inference_mode():
    generated = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
completion_ids = generated[:, inputs["input_ids"].shape[1]:]
print(tokenizer.batch_decode(completion_ids, skip_special_tokens=True)[0].strip())

Results

First training pilot: LoRA fine-tune (rank 16, all attention + MLP projections) for 3 epochs over the 9,050-record train set; training loss dropped to 0.028. Scored on the full 1,207-record held-out dev set:

MetricResult
Parse success (valid TEI XML)99.83% (1,205 / 1,207)
Exact match (byte-identical to gold markup)42.50% (513 / 1,207)

These are a lightweight sanity signal — is the output well-formed, and how often is a citation exactly right — not a full per-field or per-tier evaluation.

Training data

99 TEI documents, each a <listBibl> of individually tagged <bibl> citation records extracted from footnotes. After filtering one degenerate record, 11,467 records remain, split by whole document (a document's citations are never split across sets) at roughly an 80/10/10 ratio:

SplitDocumentsRecords
train789,050
dev101,207
test101,210

The split is stratified so the rare legal tier (citations containing a case reference) appears in the dev and test sets, not only in train.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей