/ Модель

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

Контекст
8 192 токена
Параметры
149 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
ModernBERT-base
Библиотека
transformers
Опубликована
19 июл 2026

hscodeclassify

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

Локальный классификатор FlowX.AI, который относит описание товара к одному из 20 заданных разделов HS.

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

Бенчмарки

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

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

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

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

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

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

HSCodeClassify — модель классификации текста компании FlowX.AI из семейства OpenNER, дообученная на базе answerdotai/ModernBERT-base. Она относит описание товара к одному из 20 заданных разделов HS, включая рыбу и морепродукты, напитки, фармацевтику, одежду, машины и транспорт. Модель классифицирует текст целиком: она не извлекает сущности, не определяет их положение и не проверяет корректность кодов.

Модель содержит 149 млн параметров, принимает контекст до 8192 токенов и доступна в форматах Safetensors и ONNX. Её можно запускать локально на CPU, Apple Silicon, GPU или в браузере и на периферийных устройствах с ONNX INT8. В README указана оценка около 100–160 мс на документ на CPU. Обучение проводилось на синтетических описаниях товаров; охвачены 20 глав, а не вся номенклатура Гармонизированной системы, насчитывающая примерно 97 глав. F1 1,0 получен на данных из того же генератора, что и обучающие, поэтому не подтверждает точность на реальных документах; перед применением модель следует проверить на собственных данных.

Лицензия — Apache-2.0. Локальный запуск позволяет обрабатывать документы без передачи данных за пределы инфраструктуры пользователя.

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

  • классификация описаний товаров для таможенного оформления
  • предварительное распределение товарных описаний по главам HS
  • локальная сортировка логистических документов по категориям товаров
  • классификация описаний товаров в изолированной или on-premise среде

Ограничения

Модель охватывает только 20 глав HS, а не полную номенклатуру. Оценка F1 1,0 получена на синтетических данных из того же генератора, поэтому качество на реальных документах не подтверждено; модель также не извлекает сущности и не валидирует коды.

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

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

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

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

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

Открыть на Hugging Face

HSCodeClassify

HSCodeClassify is a small, on-device logistics text classifier from the FlowX OpenNER family. Developed by FlowX.AI. Runs 100% on-premise / air-gapped, so no data leaves your boundary.

What it does

  • Task: text-classification
  • Base model: answerdotai/ModernBERT-base
  • Classes (20): 03 Fish & seafood, 08 Edible fruit & nuts, 09 Coffee, tea & spices, 22 Beverages & spirits, 30 Pharmaceuticals, 39 Plastics & articles, 40 Rubber & articles, 44 Wood & articles, 48 Paper & paperboard, 61 Apparel, knitted, 62 Apparel, not knitted, 64 Footwear, 72 Iron & steel, 73 Articles of iron/steel, 84 Machinery & mechanical, 85 Electrical machinery, 87 Vehicles & parts, 90 Optical/medical instr., 94 Furniture & bedding, 95 Toys, games & sports
  • Trained on: synthetic customs product descriptions. It classifies into 20 HS chapters, not the full Harmonised System nomenclature of roughly 97.
  • Runtime: CPU, Apple Silicon, one GPU, or browser/edge via ONNX (INT8). ~100-160 ms/doc on CPU.

Evaluation

Held-out F1 on synthetic data: 1.0000. Read that as a pipeline check, not as accuracy on your documents.

Train and test are drawn from the same generator, so a rule of the form "the entity sits at position N of template T" is sufficient to score on the test split, and the reported test loss of 2.5e-06 is consistent with close to that having been learned. Human annotators do not agree with each other at 1.0 on this task.

What makes that more than a caveat is that two models from this same pipeline did not reach 1.0: flowxai/filingtag scores 0.6444 across 139 labels, and flowxai/ibandetect scores 0.9488. The pipeline is capable of reporting a number below 1.0. So a 1.0 here says the generated task was trivially separable, rather than that the model is perfect.

There is no per-label breakdown, only this aggregate, so it cannot tell you whether the label you depend on is one of the ones the model is good at. An aggregate hides the tail.

Validate on your own documents before production use. Treat 1.0000 as evidence that training converged and the pipeline is wired up correctly, and as nothing more.

What this model does not do

It assigns one class to the whole text. It does not extract entities, it does not locate anything within the text, and it validates nothing.

Correction, 2026-09-14. Until this date the card claimed that identifiers are "validated by checksum (IBAN mod-97, card Luhn, ISIN/LEI, container ISO-6346, VIN, national IDs), a correctness guarantee general LLMs lack". That sentence was shared boilerplate across the OpenNER family and it was not true of any model in it. These repositories contain a config, weights, an ONNX export, a tokenizer and a metrics file, and no validation code of any kind. If you relied on that sentence, the guarantee it described does not exist and never did.

The licence note at the foot of this card says the model was trained on "synthetic, checksum-validated data". That is a statement about how the training corpus was generated. It is not a statement about anything this model checks when you run it, and the two were being read as one claim.

Why a small model

Fine-tuned encoders match or beat frontier LLMs on structured, convention-bound extraction, at a fraction of the latency and cost, with zero data egress.

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification
tok = AutoTokenizer.from_pretrained("flowxai/hscodeclassify")
model = AutoModelForSequenceClassification.from_pretrained("flowxai/hscodeclassify")

License & attribution

Licensed under the Apache License 2.0. Copyright 2026 FlowX.AI (https://flowx.ai). See the NOTICE file. Trained on synthetic, checksum-validated data.

Part of the FlowX OpenNER model family.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ModernBertForSequenceClassification
Ревизия весов
0e8599d

0 моделей