/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
bert-base-uncased
Библиотека
transformers
Опубликована
27 сен 2026

u2t01-bert-qa

Ответы на вопросыТекст → текст3 профессии

Дообученная на SQuAD v1.1 английская BERT-модель для поиска ответного фрагмента в контексте по заданному вопросу.

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

Бенчмарки

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

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

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

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

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

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

toyin88/u2t01-bert-qa — модель на основе BERT, разработанная в рамках проекта U2T01 по адаптации BERT для задач NLP. Она дообучена на SQuAD v1.1 для извлекающего ответа на вопросы: по вопросу и контексту модель находит начальную и конечную позиции фрагмента с ответом. Использованы архитектура BertForQuestionAnswering, библиотека Transformers и формат safetensors; размер модели — 136,7 млн параметров, длина контекста — до 512 токенов.

Модель предназначена для учебных и исследовательских сравнений методов адаптации и как отправная точка для смежных задач на английском языке. При дообучении обновлялись слои энкодера и голова ответа, а матрица эмбеддингов оставалась замороженной. На тестовой выборке указаны F1 47,74 и exact match 37,30; обучение проводилось на подвыборке SQuAD, поэтому эти результаты ниже опубликованных показателей на полном наборе.

Модель работает только с английскими текстами и контекстами Википедии, всегда возвращает фрагмент и не умеет сообщать, что ответа нет. Результаты зависят от случайного seed, а унаследованные от базового BERT ассоциации не устранялись. Лицензия — Apache-2.0.

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

  • извлечение ответа из абзаца Википедии по вопросу
  • учебное сравнение методов дообучения BERT для QA
  • эксперименты с извлекающим ответом на английском языке

Ограничения

Модель обучена на подвыборке SQuAD v1.1 с контекстами из Википедии, всегда предсказывает фрагмент и не распознаёт вопросы без ответа. Качество ограничено одним запуском и зависит от случайного seed; модель не предназначена для производственных решений о людях.

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

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

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

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

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

Открыть на Hugging Face

SQuAD v1.1 extractive question answering — full adaptation

Part of U2T01: Adapting BERT for NLP tasks. One of four models, each one a different head on the same bert-base-uncased body, each delivered with the adaptation method that its own measurements justified.

What this model does

Predicts start and end token positions of the answer span.

How it was adapted

Full fine-tuning. Every encoder layer and the head were trained. The embedding matrix was kept frozen (23M of BERT's 110M parameters), which changes nothing measurable at these dataset sizes and saves optimiser memory.

Base modelbert-base-uncased
Adaptationfull
Trainable parameters85,056,002 of 108,893,186 (78.11%)
Encoder layers trained12 of 12
Head learning rate0.001
Encoder learning rate3e-05
Epochs1
Batch size16
Max sequence length384
Seed42
Training time1.0 min on Tesla T4

A freshly initialised head and pretrained encoder layers were given separate learning rates through two optimiser parameter groups; a single learning rate for both silently cripples this kind of run.

Training data

SQuAD v1.1 (rajpurkar/squad). Training examples used: 2000. Sub-sampled to ~15k training examples as the assignment specifies.

Evaluation

MetricTestValidation
exact_match37.3029.50
f147.7443.68

Metric choice is argued in the project report. In short: entity-level F1 for NER because ~83% of CoNLL tokens are O and token accuracy would flatter a model that predicts nothing; token accuracy for POS because there is no dominant class; EM and F1 for SQuAD because each covers the other's blind spot.

Why this method, and what lost

RunMethodTrainable paramsf1 (test)
qa_full_minifull85,056,00247.74
qa_partial_minipartial28,353,02630.78

Decision rule: best primary metric on test, and where two methods fall inside a ±1 point band — smaller than the ±1–3 points a different random seed moves results by — the cheaper one wins.

Intended use and limitations

Intended for research and coursework: benchmarking adaptation strategies and as a starting point for related English tasks.

Not intended for production decisions about people. Concretely:

  • English only, and the training text is narrow. AG News is 2004 newswire; CoNLL-2003 is Reuters newswire, so it under-performs on social media, names outside Western European conventions, and any entity that became prominent after 2003. UD EWT is web English (blogs, reviews, emails). SQuAD contexts are Wikipedia paragraphs, and the model always returns a span — SQuAD v1.1 contains no unanswerable questions, so it cannot say "I don't know".
  • Single run, single seed. Re-running with a different seed moves results by roughly ±1–3 points. Differences smaller than that are not meaningful.
  • Inherited bias. bert-base-uncased carries the associations of its pretraining corpus, and nothing here mitigates them.
  • Sub-sampled training data, so these numbers sit below published full-data results. Every adaptation method on this task saw exactly the same data, so the comparison that chose this method is unaffected.

Reproduce it

git clone <this project>
pip install -r requirements.txt
python -m u2t01.cli run configs_mini/qa_full.yaml

Fixed seed (42), pinned dependencies, and one YAML file per experiment: config + seed + requirements.txt fully determine a run.

References

  • Devlin et al., BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding, 2018 — https://arxiv.org/abs/1810.04805 (§5.3 is the feature-based vs fine-tuning comparison this project mirrors)
  • Tunstall, von Werra & Wolf, Natural Language Processing with Transformers, O'Reilly, chapters 1–3
  • Hugging Face, Fine-tune a pretrained model — https://huggingface.co/docs/transformers/training
  • Dataset: rajpurkar/squad

Card generated 2026-09-27 from results/qa_full_mini.json.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertForQuestionAnswering
Ревизия весов
7f77ab0

0 моделей