/ Модель

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

Лицензия
CC BY 4.0
Базовая модель
distilbert-base-uncased
Библиотека
autogluon
Опубликована
23 сен 2026

2026-24679-distilbert-nj-text

Классификация текстаТекст → label

Учебный классификатор на основе DistilBERT определяет, описывает ли короткий текст Нью-Джерси или относится к объединённому классу Нью-Йорка и Пенсильвании.

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

Бенчмарки

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

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

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

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

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

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

Это классификатор коротких текстов о жизни на северо-востоке США, созданный для учебного задания по тонкой настройке моделей в курсе 24-679 Designing with AI. Он дообучен на DistilBERT с uncased WordPiece-токенизацией и принимает только текст; последовательности обрезаются до 128 токенов. Модель относит отрывок к Нью-Джерси (метка 1) или к объединённому классу Нью-Йорка и Пенсильвании (метка 0).

Для обучения использован набор yennik16/ny-pa-nj-text с короткими отрывками о еде, законодательстве, транспорте, географии и культуре. Выбран режим bit_fit: обучались 52 994 из примерно 66,4 млн параметров. На тестовой выборке из 15 исходных примеров точность составила 53,3%, столько же, сколько у предсказания самого частого класса; выборка мала, а результаты заметно различаются по штатам. Это учебный эксперимент, не предназначенный для практических решений о людях или местах. Лицензия модели — CC BY 4.0.

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

  • Классификация коротких отрывков о жизни в Нью-Джерси
  • Отнесение текстов о северо-востоке США к Нью-Джерси или к классу Нью-Йорк/Пенсильвания
  • Учебные эксперименты с тонкой настройкой DistilBERT для классификации текста

Ограничения

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

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

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

Открыть на Hugging Face

DistilBERT New Jersey passage classifier — 24-679 Fall 2026

Given a short passage about life in the US Northeast, predicts whether it describes New Jersey (1) or New York / Pennsylvania (0).

Purpose

Homework 2 (fine-tuning a small text model) for 24-679 Designing with AI. Coursework only.

Data

yennik16/ny-pa-nj-text, written by a classmate: 100 passages of about 200 characters on food, law, transport, geography and culture, each about one state.

SplitRowsOriginal passagesNJ / other
train107070536 / 534
validation15157 / 8
test15158 / 7

Published splits used unchanged. No passage crosses splits; validation and test are originals only (both checked in the notebook). Training augmentation (by the dataset author) is character noise, word dropout, word swaps and sentence shuffling at four strengths.

Preprocessing

Input is the text column only. The state column is the label at finer grain and is excluded. Tokenization is DistilBERT's uncased WordPiece, truncated at 128 tokens (passages are far shorter). No extra augmentation during training.

Training

AutoGluon Multimodal 1.6.1, distilbert-base-uncased, seed 24679, 5 epochs, batch size 8, weight decay 0.01, layer-wise learning-rate decay, validation after each epoch, best single checkpoint kept.

Three fine-tuning modes were compared on validation:

ModeLRTrainableVal accuracyVal log lossFit (s)
bit_fit0.0010.08%73.3%0.642928
full2e-05100.00%66.7%1.798845
norm_fit0.00010.09%53.3%0.668622

Selected: bit_fit (learning rate 0.001; 52,994 of 66,364,418 parameters trainable), by validation accuracy with log loss as tiebreak.

Results (test, 15 original passages)

MetricDistilBERTMajority class
Accuracy53.3%53.3%
Balanced accuracy51.8%50.0%
Weighted F10.5070.371
Precision (NJ)0.5450.533
Recall (NJ)0.7501.000

95% exact (Clopper-Pearson) interval on test accuracy: 26.6% – 78.7%. One error moves accuracy by 6.7 points.

Error analysis

Misclassified holdout passages (validation and test):

  • (validation, NJ) predicted NY or PA at P(NJ) = 0.16: "The most popular gas stations are Wawa and QuickChek. Both of these have attached convenience stores that sell fresh coffee and let you orde..."
  • (validation, NJ) predicted NY or PA at P(NJ) = 0.25: "The military has strong roots in the state with George Washingtons former home being located in Morristown. The state was also home to many ..."
  • (validation, PA) predicted New Jersey at P(NJ) = 0.93: "The middle of the state is very rural while the west and east are much more urban. As a result, either side tends to lean more liberal while..."
  • (validation, PA) predicted New Jersey at P(NJ) = 0.79: "The state has an abundance of junkyards in the east, with many acting as U-Pull-its. Harrys is one of the largest, with three locations and ..."
  • (test, NJ) predicted NY or PA at P(NJ) = 0.24: "It has a high cost of living and higher property taxes than most of the country. The average salaries also tend to be higher as a result. It..."
  • (test, NJ) predicted NY or PA at P(NJ) = 0.38: "The northern part of the state near the George Washington bridge has a very large korean population. As a result, it has one of the largest ..."
  • (test, PA) predicted New Jersey at P(NJ) = 0.85: "The property taxes are much lower than NJ, leading to many opting to live in pennsylvania but work in new jersey. It is not uncommon for peo..."
  • (test, PA) predicted New Jersey at P(NJ) = 0.65: "Sheetz is the most common gas station/convenience store rest stop and has full kitchens that you can order food at. Get go is also very comm..."
  • (test, PA) predicted New Jersey at P(NJ) = 0.99: "Automotive inspections must be done yearly and cover both emissions and safety. There is a separate sticker displayed on windshields for eac..."
  • (test, PA) predicted New Jersey at P(NJ) = 0.97: "Open carry of a firearm is legal throughout the state except for in philadelphia where a license is required. Concealed carry is legal throu..."
  • (test, NY) predicted New Jersey at P(NJ) = 0.95: "Beer, cider, and seltzers can be bought in most convenience stores, drug stores, bodegas, and gas stations while liquor is sold exclusively ..."

Why. Accuracy by state on the 30 holdout passages: NJ 73%, NY 86%, PA 25%. Half the PA errors are about cars or law, and their closest training passages are New Jersey ones about driving, so the model learned topic rather than state. For 7 of 11 errors, the most similar training passage carries the other label. Naming a state did not raise accuracy, only confidence. The task needs facts (which chains, laws and places belong to which state) that 70 training passages do not contain.

Limitations and ethics

  • Small data. 70 original training passages by one author; 30 holdout passages in total.
  • One writer's view. Passages reflect one person's impressions, including stereotypes (e.g. drivers, accents). The model learns those associations too.
  • Pooled negative class. NY and PA share label 0, so the model is not a three-way state classifier.
  • Named states. Some passages name a state; accuracy on those may overstate skill on passages that do not (see the notebook's breakdown).
  • Not suitable for any real decision about people or places.

Compute

Tesla T4; three fits totalling 94 s. Python 3.13.15, PyTorch 2.11.0+cu128.

Usage

from pathlib import Path
import pandas as pd
from huggingface_hub import snapshot_download
from autogluon.multimodal import MultiModalPredictor

path = Path(snapshot_download("ssg1/2026-24679-distilbert-nj-text", allow_patterns=["automm/*"]))
model = MultiModalPredictor.load(str(path / "automm"))
model.predict(pd.DataFrame({"text": ["Full-service gas stations are the law here."]}))  # 1 = NJ

AI usage disclosure

Claude helped choose the dataset, draft the notebook from the course reference, and draft this card from values computed in the run. Settings, results and error analysis were checked against notebook output. The passages are a classmate's; none were generated for this model.

Author

Sohum Goel, CMU 24-679, Fall 2026. Dataset by yennik16, CC BY 4.0.

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
2e793c9

0 моделей