/ Модель

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

Контекст
512 токенов
Параметры
25,9 млн
Архитектура
bert · dense
Базовая модель
all-MiniLM-L6-v2
Библиотека
setfit
Опубликована
20 авг 2026

setfit_category_model_new3

Классификация текстаТекст → label3 профессии

SetFit-модель для классификации текстовых высказываний на проблемы, решения или действия и прочие сообщения, в том числе в контексте образования.

126скачиваний за 30 дней1лайквеса обновлены20 авг 2026

Бенчмарки

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

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

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

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

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

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

PrashantG6838/setfit_category_model_new3 — модель классификации текста на базе SetFit, построенная на дообученном sentence-transformers/all-MiniLM-L6-v2 с классификатором LogisticRegression. Она относит текст к одному из трёх классов: «Challenge» (проблема или препятствие), «Solution or Action» (решение или действие) и «Other» (прочее). Модель предназначена для few-shot классификации коротких сообщений и высказываний, в том числе о трудностях и действиях, связанных с образованием.

В основе модели — энкодер семейства BERT с 25,9 млн параметров; заявленная длина контекста в метаданных — 512 токенов. README указывает максимальную длину последовательности 256 токенов. Веса представлены в формате safetensors. Лицензия в предоставленных данных не указана.

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

  • выделение проблем и препятствий в сообщениях об образовании
  • поиск предложенных решений и действий в текстовых заметках
  • сортировка сообщений сообщества по трём тематическим категориям

Ограничения

Модель различает только три заданных класса и обучена на примерах, связанных с проблемами, решениями и прочими сообщениями; качество на других темах и языках не описано. README указывает максимальную последовательность 256 токенов, тогда как метаданные — контекст 512 токенов.

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

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

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

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

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

Открыть на Hugging Face

SetFit with sentence-transformers/all-MiniLM-L6-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/all-MiniLM-L6-v2 as the Sentence Transformer embedding model. 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 Sources

Model Labels

LabelExamples
Solution or Action'The women of the community decided that they would not make the electricity bill and would send their children to school''Since the children did not have a father the mother decided to enroll them in school''Preeti Kumari age 18 does not want to appear for the matriculation examination due to failure Explain the solution to her parents and try to get her to appear for the examination and take her forward'
Challenge'Girls have work responsibilities so they dont get a chance to study''Due to poverty children are unable to pursue further studies''Kavita didis daughter has left her studies after the fifth lesson'
Other'The community woman shared that one childs birth certificate has not been made which could potentially affect their education''No community members should hold meetings with teachers at school''Regarding Siddhanta it was said that you must study only then your future will be bright and you will not face any problems in future'

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("setfit_model_id")
# Run inference
preds = model("Education is very important for children in poverty and can also create a future")

Training Details

Training Set Metrics

Training setMinMedianMax
Word count119.8416402
LabelTraining Sample Count
Challenge1634
Other440
Solution or Action1852

Training Hyperparameters

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

Training Results

EpochStepTraining LossValidation Loss
0.000210.2792-
0.0102500.2964-
0.02041000.2595-
0.03061500.23-
0.04072000.1881-
0.05092500.1349-
0.06113000.109-
0.07133500.1024-
0.08154000.0855-
0.09174500.0751-
0.10195000.0792-
0.11215500.074-
0.12226000.0643-
0.13246500.0668-
0.14267000.0624-
0.15287500.0604-
0.16308000.0513-
0.17328500.0455-
0.18349000.038-
0.19369500.0439-
0.203710000.0331-
0.213910500.0323-
0.224111000.0269-
0.234311500.0376-
0.244512000.0256-
0.254712500.0279-
0.264913000.0276-
0.275113500.0289-
0.285214000.0241-
0.295414500.0179-
0.305615000.0177-
0.315815500.0226-
0.326016000.0176-
0.336216500.0182-
0.346417000.0171-
0.356617500.0175-
0.366718000.0141-
0.376918500.0177-
0.387119000.0136-
0.397319500.0127-
0.407520000.0173-
0.417720500.0106-
0.427921000.01-
0.438121500.0113-
0.448222000.0091-
0.458422500.0071-
0.468623000.01-
0.478823500.0112-
0.489024000.0104-
0.499224500.0089-
0.509425000.0096-
0.519625500.0098-
0.529726000.0113-
0.539926500.005-
0.550127000.0074-
0.560327500.0078-
0.570528000.007-
0.580728500.0047-
0.590929000.0111-
0.601129500.0054-
0.611230000.0088-
0.621430500.0045-
0.631631000.0031-
0.641831500.0084-
0.652032000.005-
0.662232500.0058-
0.672433000.0048-
0.682633500.0057-
0.692734000.0048-
0.702934500.0059-
0.713135000.0078-
0.723335500.0057-
0.733536000.0056-
0.743736500.0039-
0.753937000.0059-
0.764137500.0058-
0.774238000.0022-
0.784438500.0064-
0.794639000.0033-
0.804839500.0037-
0.815040000.003-
0.825240500.0063-
0.835441000.0047-
0.845641500.0056-
0.855742000.0026-
0.865942500.0028-
0.876143000.0066-
0.886343500.0026-
0.896544000.0045-
0.906744500.0052-
0.916945000.0017-
0.927145500.0056-
0.937246000.0043-
0.947446500.0034-
0.957647000.0042-
0.967847500.0031-
0.978048000.004-
0.988248500.0064-
0.998449000.0033-

Framework Versions

  • Python: 3.12.13
  • SetFit: 1.1.0
  • Sentence Transformers: 3.1.1
  • Transformers: 4.45.2
  • PyTorch: 2.10.0+cu128
  • Datasets: 3.2.0
  • Tokenizers: 0.20.3

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
Ревизия весов
3dea811

0 моделей