/ Модель

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

Лицензия
Apache 2.0
Базовая модель
distilbert-NER
Библиотека
loom-py-rt
Опубликована
4 сен 2026

distilbert-ner-loom

Разметка токеновТекст → label7 профессий

Компактная модель DistilBERT извлекает людей, организации, места и другие именованные сущности из английского текста.

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

Бенчмарки

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

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

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

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

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

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

loom-ai-org/distilbert-ner-loom — экспорт модели dslim/distilbert-NER для выполнения в loom.cpp. Это дообученная на наборе CoNLL-2003 модель DistilBERT для распознавания именованных сущностей: она принимает английский текст и предсказывает класс для каждого токенизатора. Экспорт упакован в один файл GGUF с графом модели и необходимыми компонентами для запуска через loom-py-rt.

Модель предназначена для извлечения из текста людей (PER), организаций (ORG), мест (LOC) и прочих сущностей (MISC), например, из новостных материалов. Поддерживается английский язык, последовательность ограничена 512 токенами. Лицензия Apache-2.0.

Модель обучалась на новостных текстах CoNLL-2003 1996–1997 годов, поэтому может хуже работать на современных именах и текстах других жанров. Она чувствительна к регистру; метки относятся к частям токенов, и при объединении их в слова требуется собственное правило. Обрабатывается одна последовательность за вызов.

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

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

Ограничения

Обучение на новостных текстах CoNLL-2003 1996–1997 годов ограничивает перенос на современные имена и другие жанры; модель распознаёт только PER, ORG, LOC и MISC. Она чувствительна к регистру, выдаёт метки для токенизаторных частей, обрабатывает одну последовательность за вызов и ограничена 512 токенами.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

DistilBERT-NER

dslim's DistilBERT fine-tuned on CoNLL-2003 for named-entity recognition, exported for loom.cpp. Family 12: text in, one class per token out.

This is a loom.cpp export: a single self-describing GGUF that carries its own graph topologies, tokenizer (if any) and driver script, produced by loom-exporter.

Original model

Exported from dslim/distilbert-NER. Weights are unmodified; this repo packages the same parameters into loom.cpp's GGUF format.

License

apache-2.0, inherited from the base model above.

Language(s)

en

Usage

Run it with loom-py -- loom-py-rt on PyPI:

pip install -U "loom-py-rt[hub]>=1.0.0"
import loom

model = loom.Model.from_pretrained("loom-ai-org/distilbert-ner-loom")

result = model.text2class.infer("My name is Wolfgang and I live in Berlin")
print(result.text)
# My/O name/O is/O Wolfgang/B-PER and/O I/O live/O in/O Berlin/B-LOC

# The labels come back beside the PIECES the tokenizer produced, not the words you wrote -- a
# WordPiece encode splits unknown and long words, so "Wolfgang" may be one piece here and three in
# another sentence. Joining them back into words is a rule only you can make, which is why both
# halves are handed over rather than one.
for token in result:
    print(token.piece, token.label)

# Every class this checkpoint can choose between, in the order its ids run:
print(result.labels)

# The framing tokens the encode adds ([CLS] and [SEP]) are dropped for you, on the ids the file
# declares rather than on their spelling. Ask for the raw alignment if you want them:
raw = model.text2class.infer("My name is Wolfgang and I live in Berlin", strip_special=False)
print(len(raw), "rows including [CLS] and [SEP], against", len(result), "without")

The layer underneath

The call above is the high-level door: one per task, named for the modality pair it maps between, with the windowing, sampling and assembly this model needs already applied. Under it, model.infer(...) passes your arguments straight to the driver this GGUF embeds -- which is where you go for a knob the door does not name.

model.driver_source prints that driver, including a header comment documenting every argument it accepts for this model, and is the authority on it. See loom-py for the API and loom.cpp for what the engine does between the two.

Known limitations

Trained on CoNLL-2003, which is newswire from 1996-1997 -- entity names that did not exist then, and text that does not read like a news wire, are outside what it saw. It recognises four types (PER, ORG, LOC, MISC) and nothing else, and it is cased: lowercasing your input before passing it costs real accuracy, because capitalisation is most of what a NER model has to go on.

The labels line up with the tokenizer's PIECES, not with your words. A word the vocabulary splits gets one label per piece, and they can disagree -- deciding which one wins is the caller's rule, which is why the export hands back the pieces alongside the labels rather than a list of words.

The export takes one sequence at a time and no padding, so there is no batch dimension to fill and no attention mask to pass. Sequences are capped at 512 tokens by the checkpoint's own learned position table.

Files

  • distilbert-ner.gguf -- the model, exported with loom-exporter.

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

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

GPU в ailist

Универсальный рантайм · loom-py-rt

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

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

Ревизия весов
0c36afd

0 моделей