/ Модель

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

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

hw2-distilbert-garment-type

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

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

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

Дообученная DistilBERT классифицирует короткие англоязычные описания одежды по типам для учебной задачи.

jackstev/hw2-distilbert-garment-type — классификатор коротких описаний одежды, созданный для учебного задания. Это полноценно дообученная DistilBERT с uncased-токенизатором и классификационной головой; модель относит описание к одному из пяти типов одежды. В карточке приведены примеры top, bottom и outerwear; она также упоминает dress и jumpsuit среди типов, определённых авторской разметкой. Максимальная длина контекста по метаданным — 512 токенов, при обучении использовалось ограничение 64 токена. Модель рассчитана на английские описания.

В учебном эксперименте точность составила 100% на тестовой выборке из 15 примеров. Этот результат ограничен малым размером выборки и однообразными описаниями, написанными одним автором; стресс-тест с заменой названия одежды словом «item» показал снижение точности до 83,3%. Модель заметно опирается на название предмета одежды, поэтому качество на реальных, разнообразных товарных описаниях может быть хуже. Автор указывает, что модель предназначена только для учебных целей. Лицензия — Apache-2.0.

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

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

Ограничения

Тестовая выборка содержит только 15 примеров, а обучающие и контрольные описания однообразны и составлены одним автором; результат на реальных товарных текстах может быть хуже. Модель сильно опирается на название предмета одежды, а набор категорий и их границы следуют авторской разметке.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

DistilBERT Garment Type Classifier

Homework 2, Problem 3.

What it does

Reads a short product-style clothing description and predicts the garment type:

LabelType
0top
1bottom
2outerwear
3dress
4footwear

Data

  • Source: leixiang25/24679-hw1-text-garments, revision 49d58b5a0942. A classmate wrote 100 original descriptions (~190 characters each) from retail product photos.
  • Splits used as published: train = 70 originals + 1,289 noisy copies (character swaps/deletions, word swaps, WordNet synonyms), validation = 15 originals, test = 15 originals, 3 per class in each holdout. No original crosses splits.
  • Preprocessing: DistilBERT uncased tokenizer, max length 64 tokens, dynamic padding. No other cleaning, so the model also sees the typo copies during training.

Training

  • Base: distilbert-base-uncased, full fine-tune with a new 5-way head. Every weight is updated, which is what AutoGluon calls optim.peft = None; the partial options (bit_fit, norm_fit) were not needed with this much text.
  • Up to 6 epochs, learning rate 5e-5 with linear decay and 10% warmup, batch size 16, weight decay 0.01, seed 24679, mixed precision on GPU.
  • Early stopping on validation loss with patience 2. Kept epoch 1 of 3.
  • Compute: Tesla T4, 35 s of training.

Results

SplitAccuracyMacro F1Errors
Validation (15)1.0001.0000
Test (15)1.0001.0000

Per-class on test:

ClassPrecisionRecallF1
top1.001.001.00
bottom1.001.001.00
outerwear1.001.001.00
dress1.001.001.00
footwear1.001.001.00

Stress test: with the garment noun replaced by "item" in the 30 validation and test descriptions, accuracy is 0.833 (macro F1 0.792). The gap between this and the normal score shows how much the model relies on the noun itself. Confusion matrices for both are in the repo.

Limitations

  • 15 test examples is very small; one error is 6.7 points of accuracy.
  • The descriptions all follow the same listing template written by one person, and the garment noun nearly gives away the answer. Expect worse results on real, messier product listings.
  • Only 5 broad types. Edge cases follow the author's labels (for example, a jumpsuit counts as a dress, a zip pullover as outerwear).
  • The noisy copies are not independent examples.

Ethics

The texts are the dataset author's own fictional product descriptions with no brands or personal data. The model is not meant for anything beyond coursework.

How to use

from transformers import pipeline
clf = pipeline("text-classification", model="jackstev/hw2-distilbert-garment-type")
clf("Relaxed crewneck sweatshirt in heather gray fleece, with dropped shoulders and ribbed cuffs.")

License

Apache 2.0, the same as the DistilBERT base model. The dataset card assigns no license, so check with its author before reusing the data.

AI usage disclosure

I used Claude (Anthropic) to help write this notebook and draft this model card. I chose the dataset, ran the training, and checked the results and the card against the outputs.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DistilBertForSequenceClassification
Ревизия весов
9aa5e33

0 моделей