/ Модель

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

Контекст
512 токенов
Параметры
124 млн
Лицензия
CC BY 4.0
Архитектура
t5 · dense
Базовая модель
flan-t5-base
Библиотека
transformers
Опубликована
30 авг 2026

codllm-base-deploy

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

Модель на базе FLAN-T5-base преобразует исторические описания причин смерти с данными о возрасте и поле в коды ICD10h.

136скачиваний за 30 дней2лайкавеса обновлены19 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

codLLM-base-deploy — модель семейства T5, разработанная авторами проекта на базе Google FLAN-T5-base и дообученная для преобразования исторических текстовых описаний причин смерти в коды ICD10h. Это контрольная точка для развёртывания, созданная в рамках бакалаврской работы Технического университета Дании. На вход подаются причина смерти, возраст и пол в заданном формате; модель генерирует список кодов через запятую. Архитектура — T5ForConditionalGeneration, размер — 123,8 млн параметров, максимальный контекст — 512 токенов. Модель предназначена для поддержки исторического кодирования и экспертной проверки записей на нидерландском, датском, испанском и английском языках.

В работе приведены высокие показатели на тестовых исторических записях, однако большая часть тестовых текстов дословно встречалась в обучающих данных. На новых формулировках качество ниже; редкие коды и незнакомые причины смерти представляют трудность. Сгенерированные коды не ограничены справочником ICD10h, поэтому их необходимо проверять по мастер-списку и передавать на экспертную проверку. Модель не оценивалась для клинической диагностики, современного медицинского кодирования или произвольных новых архивов. Лицензия — CC-BY-4.0.

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

  • кодирование исторических причин смерти по ICD10h
  • предварительная разметка архивных записей о смертности
  • подготовка списка кодов для проверки экспертом
  • сопоставление текстовых причин смерти с кодами ICD10h

Ограничения

Качество зависит от формулировок архивов и представленности кодов в обучении; редкие коды и новые тексты сложнее, а генерация не проверяет принадлежность к справочнику ICD10h. Модель не оценивалась для клинической диагностики и современного кодирования, поэтому результаты следует проверять экспертно.

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

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

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

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

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

Открыть на Hugging Face

codLLM-base-deploy

A fine-tuned FLAN-T5-base model that maps historical free-text causes of death to ICD10h codes. This is the deployment checkpoint from our June 2026 bachelor's thesis at the Technical University of Denmark (DTU). The main model series for the forthcoming publication will be released separately.

Thesis (PDF) · Source code · codLLM organization

PropertyDescription
TaskSequence-to-sequence, multi-label ICD10h coding
Base modelgoogle/flan-t5-base
Training inputCause-of-death text, age, and sex
OutputOne or more comma-separated ICD10h codes
Intended useHistorical mortality research with expert review
AuthorsLucas E. B. Mortensen and Elias Dahl Lunøe

Quick start

Install the inference dependencies; Transformers 5.1.0 is the version recorded with this checkpoint:

uv add "transformers==5.1.0" torch sentencepiece
import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model_id = "codllm/codllm-base-deploy"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
model.eval()

text = "cod: fever | age: unknown | sex: unknown"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)

with torch.inference_mode():
    outputs = model.generate(
        **inputs,
        max_new_tokens=32,
        do_sample=False,
        num_beams=1,
    )

prediction = tokenizer.decode(outputs[0], skip_special_tokens=True)
codes = [code.strip() for code in prediction.split(",") if code.strip()]
print(codes)

This is a minimal CPU example with an illustrative input. It does not compute uncertainty or reproduce the thesis evaluation. The explicit generation limit overrides the bundled generation_config.json default of max_length=20. The training pipeline raises its target budget when needed for longer multi-code targets; check for truncation in such cases.

Input and output

Use the deployment training format, with all three fields in this order:

cod: fever | age: unknown | sex: unknown
  • Preserve the cod: , age: , and sex: prefixes and the | separators.
  • Use the literal unknown for missing or unmappable metadata; keep the field in the input.
  • Follow the project's input preprocessing for age and sex normalization. The quick start assumes text has already been formatted.
  • COD-only inputs were studied in separate experiments. Their bare-string format should not be treated as interchangeable with this checkpoint's metadata input or as reproducing its reported scores.

Predictions are comma-separated code strings. Evaluation treats codes as an unordered set. Use the included ICD10h 2024 masterlist for code descriptions and validity checks; free generation does not enforce membership in the masterlist.

Training and data

The thesis describes 1,525,048 historical records from Amsterdam, Copenhagen, Madrid, Belgium, and Ipswich, plus English reference strings. Raw archival records are subject to a data-use agreement and are not distributed here. The model uses masterlist pretraining followed by historical fine-tuning.

The project's reviewed language inventory identifies Dutch (including Flemish/Belgian Dutch), Danish, Spanish, and English. The Belgian dataset owner's clarification supersedes the thesis's French/Dutch description. Historical Latin expressions can occur within records; this is not a separately evaluated Latin capability.

Settings below are reported in the thesis, Sections 6.1–6.2 and Table 6.4.

SettingValue
Historical splitRandom record-level 90/5/5; data seed 333
Input fieldsCOD + age + sex
Rare-code upsampling floor200
Synthetic multi-COD ratio0.30
Base perturbation rate0.50
Learning rate / schedule2.5e-5 / constant with warmup
Warmup ratio0.10
Effective batch size256
Maximum fine-tuning epochs80
Early-stopping patience10 epochs
Checkpoint selectionHighest validation macro-F1
Source / target token budgets256 / 32 by default; target budget raised when necessary

These are the thesis recipe settings. Current publication experiment specifications describe later work.

Evaluation

The following are thesis-reported results for codLLM-base-deploy, Table 7.1, on historical records with English reference strings excluded. They have not been recomputed for this card update.

MetricFull historical testUnseen-string slice
Records76,2495,862
Exact-match accuracy0.985 ± 0.0010.843 ± 0.009
Jaccard0.989 ± 0.0010.884 ± 0.007
Macro-F10.7490.625
Micro-F10.987 ± 0.0010.902 ± 0.006

Split context matters: 92.19% of historical test records share their exact cause text with a training record (thesis Table 5.3). The unseen-string slice excludes cause strings appearing verbatim in training or validation. It is a subset of the same record-level split, not an independently grouped or source-held-out test. Rare causes and near-duplicate wording affect its interpretation.

The ± values are 95% cluster-bootstrap half-widths over distinct input strings, using 5,000 resamples. They describe a fixed model and test set, not variation across training seeds. Macro-F1 is reported without an interval.

The thesis's leave-one-source-out results use five separately trained holdout checkpoints (Section 7.4). They are not transfer scores for this uploaded checkpoint and do not establish cross-lingual performance.

Uncertainty and limitations

The thesis ranks predictions by mean token entropy to study selective prediction. On the unseen-string slice, retaining the most confident 80% raises exact-match accuracy from 0.843 to 0.925 (Figure 7.3). This is a rank-based result, not a calibrated probability or a universal entropy threshold. Evaluate any acceptance rule on representative target data before using it to defer records for review.

  • Performance depends on the archive's wording, label conventions, and representation in training.
  • Rare codes and unfamiliar cause strings are harder; a correct broad category can still have an incorrect sub-code.
  • Confident errors occur, and generated codes should be checked against the reference vocabulary.
  • Training labels come from human-coded registers and can contain errors. The thesis does not establish performance across repeated training seeds or arbitrary new archives.

Use the model as support for historical coding and expert review. Clinical diagnosis and contemporary medical coding were not evaluated.

Citation

Please credit Lucas E. B. Mortensen and Elias Dahl Lunøe when using this model, and cite the thesis in research publications. Include the model name and revision used. CITATION.cff provides machine-readable citation metadata. This citation request is not an additional license condition.

Lucas E. B. Mortensen and Elias Dahl Lunøe (2026). Automated Historical Cause-of-Death Coding Using Fine-Tuned Language Models. Bachelor's thesis, DTU Compute, Technical University of Denmark. Read the thesis.

@thesis{mortensen_lunoe_2026_codllm,
  author = {Mortensen, Lucas E. B. and Lunøe, Elias Dahl},
  title = {Automated Historical Cause-of-Death Coding Using Fine-Tuned Language Models},
  institution = {Technical University of Denmark},
  type = {Bachelor's thesis},
  year = {2026},
  month = jun,
  url = {https://huggingface.co/spaces/codllm/README/resolve/main/codLLM_Thesis.pdf}
}

License and attribution

The codLLM model contributions and this model card are offered under CC BY 4.0. Commercial and non-commercial use, modification, and redistribution are permitted under the applicable terms. When sharing licensed material or adaptations, credit Lucas E. B. Mortensen and Elias Dahl Lunøe, link to this model and the license, retain supplied notices, and indicate changes as required by CC BY 4.0.

This checkpoint modifies Google's FLAN-T5-base through codLLM training. The upstream Apache-2.0 terms and notices remain applicable; the CC BY declaration does not replace them. These are licenses for different contributions, not a choice between two licenses for the whole model. The project software uses Apache-2.0.

See NOTICE and LICENSING.md for scope, attribution, and third-party exclusions. Raw archival data and ICD10h reference materials retain their own terms. Earlier model revisions remain available under their original Apache-2.0 terms; this update does not revoke prior grants. The standard licenses do not create a universal citation obligation merely for running the model or publishing outputs.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
T5ForConditionalGeneration
Ревизия весов
992a7ea

0 моделей