/ Модель

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

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

u2t01-bert-squad

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

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

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

Бенчмарки

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

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

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

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

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

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

abelcetina/u2t01-bert-squad — англоязычная модель для извлечения ответа на вопрос из заданного текста. Команда U2T01 дообучила всю модель BERT base uncased, включая энкодер и линейную голову, предсказывающую начальную и конечную позиции ответа. Модель содержит 136,7 млн параметров, использует библиотеку Transformers и принимает контекст длиной до 512 токенов по метаданным; при обучении входы обрезались до 384 токенов.

Модель предназначена для ответов на вопросы по англоязычным отрывкам, особенно похожим на статьи Википедии с вопросами из SQuAD v1.1. На валидационной выборке указаны exact match 72,56 и F1 81,78; отдельная тестовая оценка не проводилась. Модель всегда возвращает фрагмент контекста и не умеет воздерживаться от ответа, поэтому она не подходит для вопросов без ответа в тексте или для извлечения фактов без предоставленного контекста.

Обучение выполнено на подвыборке примерно из 15 тысяч примеров и оценено с одним seed, поэтому качество и его устойчивость за пределами указанного домена не установлены. Карточка предупреждает о смещениях данных и базового предобучения, а также не рекомендует использовать модель для решений, влияющих на людей. Лицензия модели — Apache-2.0; обучающий датасет SQuAD v1.1 указан под CC BY-SA 4.0, поэтому условия его использования следует учитывать отдельно.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

BERT adapted to extractive question answering (SQuAD v1.1) — full fine-tuning

abelcetina/u2t01-bert-squad — bert-base-uncased adapted to extractive question answering (SQuAD v1.1) with full fine-tuning.

Produced for the university assignment U2T01: Adapting BERT for NLP tasks. The companion repository contains the training code, the raw results file behind every number below, and the comparison against the alternative adaptation methods.

Model description

  • Base encoder: bert-base-uncased (108,893,186 parameters in total).
  • Task: extractive question answering (SQuAD v1.1).
  • Adaptation method: full fine-tuning. Every parameter of the encoder and of the task head received gradients, with a small learning rate on the body and a larger one on the randomly initialised head.
  • Head: two linear outputs predicting the start and the end token of the answer span.
  • Label set: start and end token positions of the answer span inside the context
  • Trained by: U2T01 team · generated 2026-09-26.

Intended use

  • Research and teaching: reproducing the feature-based versus fine-tuning comparison of BERT section 5.3 across four task types.
  • Inference on English text that resembles the training domain (paragraphs from English Wikipedia with crowd-written questions).
  • Usage:
from transformers import pipeline
qa = pipeline("question-answering", model="abelcetina/u2t01-bert-squad")
print(qa(question="Where was the treaty signed?",
         context="The treaty was signed in Lisbon in December 2007."))

Out-of-scope use

  • Any decision affecting a person (hiring, moderation with consequences, credit, legal or medical decisions). This is a coursework model validated on one academic benchmark with a single seed.
  • Languages other than English, and domains far from paragraphs from English Wikipedia with crowd-written questions — performance is not characterised there and is expected to drop.
  • Extracting facts about the world: for the QA model, the answer is a span copied from the context passage it is given, never knowledge the model holds.
  • Commercial redistribution without checking the training-data licence below.

Training data

DatasetSQuAD v1.1
Identifier used in coderajpurkar/squad
LicenceCC BY-SA 4.0
Splitstrain 87,599 · validation 10,570 questions (a subsample was used for training)
Training examples actually used15,000
Evaluation split reported belowvalidation

Around 15,000 training examples were subsampled to fit the Colab T4 budget, so absolute EM/F1 are below a full-data run.

Adaptation method and what was frozen

  • Method flag: --method full
  • Trainable components: the whole BERT encoder (embeddings + 12 layers) and the task head
  • Frozen components: nothing
ParametersValue
Total108,893,186
Trainable108,893,186
Trainable share100 %

Hyper-parameters

Hyper-parameterValue
Epochs2
Batch size16
Head learning rate0.001
Body learning rate0.00003
Weight decay0.01
Max sequence length384
Top layers unfrozenall 12 encoder layers (full fine-tuning)
Seed42

Evaluation results

Metrics computed by src/metrics.py; the raw values live in qa__full__seed42.json.

Evaluation split (validation)

MetricValue
exact_match72.5639
f181.7763

Test split

This run was not evaluated on a held-out test split.

Headline number: f1 = 81.7763 (exact_match = 72.5639).

The comparison against the other adaptation methods of this task, with the gap in percentage points and the noise flag, is in report/results_tables.md of the companion code repository (Table 1, Table 2.qa and Table 3). A gap below one point there is reported as noise, not as an improvement.

Limitations and bias

  • Dataset bias. SQuAD v1.1 questions are crowd-written while looking at the paragraph, so they share vocabulary with the answer far more than real questions do, and every question is answerable — the model has no way to abstain, and will always return a span. The model inherits both that domain skew and the social biases of the bert-base-uncased pre-training corpus (BookCorpus and English Wikipedia), which is known to encode gender, ethnic and occupational stereotypes. Nothing here mitigates or measures them.
  • Single seed. Every number on this card comes from one run with seed 42. No variance estimate exists, so a difference of roughly one point against another configuration must be read as noise rather than as an improvement.
  • Subsampling. Training used 15,000 examples (hyperparams.train_size). Around 15,000 training examples were subsampled to fit the Colab T4 budget, so absolute EM/F1 are below a full-data run.
  • Sequence truncation. Inputs were truncated to 384 tokens; longer inputs lose their tail at inference too.
  • Frozen-encoder caveat (feature-based models only). Not applicable: this model was fine-tuned, so the encoder weights moved.
  • Only a validation (and where available test) split was measured. No robustness, adversarial, out-of-domain or fairness evaluation was performed.

Environmental and compute footprint

Hardware1 × Tesla T4 (Google Colab), CUDA 12.8
Training wall time638.1 s (~10.6 min) over 1,894 steps
Seconds per step0.337
Peak GPU memory3905 MB
Softwaretransformers 5.16.1 · torch 2.11.0+cu128 · datasets 4.8.5
Run timestamp2026-09-25T23:56:04

A single short fine-tuning run on one T4 is a small footprint in absolute terms, and that is the point of this assignment: the cost-versus-quality table in the companion report shows how much of the quality survives when only a fraction of the parameters is trained, which is the part that scales. No CO₂e figure is claimed here, because the energy mix of the Colab region is unknown.

References and citation

  • Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. NAACL-HLT. arXiv:1810.04805. Section 5.3 is the feature-based versus fine-tuning comparison this model is part of.
  • Rajpurkar, P., Zhang, J., Lopyrev, K., & Liang, P. (2016). SQuAD: 100,000+ Questions for Machine Comprehension of Text. EMNLP. arXiv:1606.05250.
  • Tunstall, L., von Werra, L., & Wolf, T. (2022). Natural Language Processing with Transformers, chapters 1–3. O'Reilly.
  • Hugging Face, Fine-tuning a pretrained model: https://huggingface.co/docs/transformers/training
@inproceedings{devlin2019bert,
  title     = {BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding},
  author    = {Devlin, Jacob and Chang, Ming-Wei and Lee, Kenton and Toutanova, Kristina},
  booktitle = {Proceedings of NAACL-HLT},
  pages     = {4171--4186},
  year      = {2019},
  url       = {https://arxiv.org/abs/1810.04805}
}

Cite this adapted model as:

@misc{u2t01_qa_full,
  title  = {BERT adapted to extractive question answering (SQuAD v1.1) — full fine-tuning},
  author = {U2T01 team},
  year   = {2026},
  note   = {U2T01: Adapting BERT for NLP tasks. Adaptation method: full. Seed 42.},
  url    = {https://huggingface.co/abelcetina/u2t01-bert-squad}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей