/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Архитектура
bert · dense
Библиотека
setfit
Опубликована
17 июл 2026

setfit-prom-bac

Классификация текстаТекст → label3 профессии
4скачиваний за 30 дней0лайковвеса обновлены17 июл 2026

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

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

SetFit-классификатор на базе BERT относит высказывания об опыте онкологических заболеваний к одной из 16 тематических категорий.

brendaac/setfit-prom-bac — модель SetFit для классификации текстов по 16 категориям, связанным с опытом людей с онкологическими заболеваниями. Она использует дообученный Sentence Transformer на базе BERT, обученный контрастивным методом, и классификатор LogisticRegression. Модель принимает текст длиной до 512 токенов; в карточке указано 136,7 млн параметров. В README приведена точность 0,8715 для всех классов.

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

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

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

Ограничения

Модель предназначена для специализированной тематической классификации и не является диагностическим инструментом. Указанная точность 0,8715 не раскрывает качество по отдельным классам; сведения о лицензии отсутствуют.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

SetFit

This is a SetFit model that can be used for Text Classification. A LogisticRegression instance is used for classification.

The model has been trained using an efficient few-shot learning technique that involves:

  1. Fine-tuning a Sentence Transformer with contrastive learning.
  2. Training a classification head with features from the fine-tuned Sentence Transformer.

Model Details

Model Description

  • Model Type: SetFit
  • Classification head: a LogisticRegression instance
  • Maximum Sequence Length: 512 tokens
  • Number of Classes: 16 classes

Model Sources

Model Labels

LabelExamples
Appetite'I consider myself to be a spiritual person''I would feel out of place eating fruits and vegetables at a party where everyone is eating other foods''I cook healthy foods'
Future'I have the impression that the world tends toward collapse (apocalyptic end)''I feel anxious about death''I am uneasy about possible mishaps'
Concentration'I have to push myself to get things done because I am tired''I have trouble remembering things because I am tired''I have enough energy to exercise strenuously'
Financial Worries'Is your financial condition worsening as a result of your cancer diagnosis or treatment?''I am satisfied with my current financial situation''I am frustrated that I cannot work or contribute as much as I usually do'
Outcome'I can make sense of my life''I have very clear goals and aims for my life''I am confident in this treatment'
Alcohol'Alcohol makes it easier to talk to people''I drank because I had nothing to do''Drinking can be harmful to physical health'
Present'My life is meaningful''I feel disconnected from others''I make time for family and friends'
Physical Function'Are you able to climb up five steps?''Body pain impedes my exercise participation.''Are you able to use a hammer to pound a nail?'
Spiritual Concerns'I ask people to pray for me''My illness has strengthened my faith or spiritual beliefs ''My life lacks meaning and purpose '
Drugs'I did risky things while using drugs''When I used drugs, I felt alone''I experienced cravings for pain medication'
Loss of Usual Health'I can rely on my judgment to manage my symptoms, even when others disagree with me''I am unable to do the things I want to do because of my medical condition''My medical condition makes it hard for me to take care of myself'
Smoking'I am tempted to smoke when I have arguments or conflicts with others'"When I'm alone, a cigarette can help me pass the time"'Smoking keeps me from overeating'
Treatment UX'Overall, how bothered were you by the amount of time it took to take your cancer therapy?''I am angry about the lack of care coordination for my healthcare.'"I feel like I don't have access to all the healthcare services I need"
Support'Do you have someone to help with your daily chores if you are sick?''Someone to give you information to help you understand a situation''I have someone I trust to talk with about my problems'
Feeling Out of Control'I have trouble doing all of my usual work (include work at home)''How much did pain interfere with your ability to participate in leisure activities?''How often was pain distressing to you?'
Sleep'I felt tired''I tossed and turned at night''I was satisfied with my sleep'

Evaluation

Metrics

LabelAccuracy
all0.8715

Uses

Direct Use for Inference

First install the SetFit library:

pip install setfit

Then you can load this model and run inference.

from setfit import SetFitModel

# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("brendaac/setfit-prom-bac")
# Run inference
preds = model("My sleep was deep")

Training Details

Training Set Metrics

Training setMinMedianMax
Word count39.62520
LabelTraining Sample Count
Alcohol8
Appetite8
Concentration8
Drugs8
Feeling Out of Control8
Financial Worries8
Future8
Loss of Usual Health8
Outcome8
Physical Function8
Present8
Sleep8
Smoking8
Spiritual Concerns8
Support8
Treatment UX8

Training Hyperparameters

  • batch_size: (32, 32)
  • num_epochs: (2, 2)
  • max_steps: -1
  • sampling_strategy: oversampling
  • body_learning_rate: (2e-05, 1e-05)
  • head_learning_rate: 0.01
  • loss: CosineSimilarityLoss
  • distance_metric: cosine_distance
  • margin: 0.25
  • end_to_end: True
  • use_amp: False
  • warmup_proportion: 0.1
  • l2_weight: 0.01
  • seed: 101010
  • eval_max_steps: -1
  • load_best_model_at_end: True

Training Results

EpochStepTraining LossValidation Loss
0.002110.1955-
0.1042500.1787-
0.20831000.1152-
0.31251500.0475-
0.41672000.0276-
0.52082500.0161-
0.6253000.0114-
0.72923500.0094-
0.83334000.007-
0.93754500.0063-
1.0480-0.0585
1.04175000.0055-
1.14585500.0051-
1.256000.0047-
1.35426500.0043-
1.45837000.0042-
1.56257500.004-
1.66678000.0039-
1.77088500.0037-
1.8759000.0037-
1.97929500.0038-
2.0960-0.0577

Framework Versions

  • Python: 3.10.20
  • SetFit: 1.1.3
  • Sentence Transformers: 3.4.1
  • Transformers: 4.41.0
  • PyTorch: 2.10.0
  • Datasets: 3.3.2
  • Tokenizers: 0.19.1

Citation

BibTeX

@article{https://doi.org/10.48550/arxiv.2209.11055,
    doi = {10.48550/ARXIV.2209.11055},
    url = {https://arxiv.org/abs/2209.11055},
    author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
    keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
    title = {Efficient Few-Shot Learning Without Prompts},
    publisher = {arXiv},
    year = {2022},
    copyright = {Creative Commons Attribution 4.0 International}
}

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

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

GPU в ailist

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

Нельзя запустить

Модели SetFit требуют отдельного рантайма.

Класс архитектуры
BertModel
Ревизия весов
22cc8f3

0 моделей