/ Модель

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

Контекст
2 048 токенов
Параметры
148 млн
Лицензия
Apache 2.0
Опубликована
7 окт 2025

NER-Small

Генерация текстаТекст → текст3 профессии

Компактная модель Minibase для извлечения именованных сущностей из коротких англоязычных текстов с локальным запуском.

313скачиваний за 30 дней0лайковвеса обновлены7 окт 2025

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Minibase-NER-Small — компактная языковая модель, разработанная Minibase и дообученная для распознавания именованных сущностей в тексте. Она извлекает имена людей, организаций, географические названия и другие сущности, выдавая их нумерованным списком; типы сущностей в ответе не отмечаются.

Модель построена на архитектуре LlamaForCausalLM и содержит 147,8 млн параметров по метаданным. Репозиторий содержит квантизированную версию GGUF Q8_0; контекст составляет 2048 токенов. Карточка сообщает о поддержке английского языка, локальном запуске через llama.cpp и среднем времени ответа 76,6 мс. На описанной в README оценке F1 составил 43,5%, точность — 63%, полнота — 34,3%.

Подходит для локального извлечения сущностей из коротких англоязычных текстов и дальнейшего разбора результатов. Ограничения включают пропуски сущностей, нестабильный или повреждённый формат вывода, отсутствие меток типов и ограничение контекста. Лицензия — Apache-2.0.

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

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

Ограничения

По оценке из README, F1 составляет 43,5%, а полнота — 34,3%, поэтому модель может пропускать многие сущности. Она иногда выдаёт неполный или искажённый ответ, не указывает типы сущностей и ограничена контекстом в 2048 токенов.

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

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

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

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

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

Открыть на Hugging Face

NER-Small 🤖

A compact, efficient Named Entity Recognition model for identifying and classifying entities in text.

Model Size Architecture Context Window License Discord

Built by Minibase - Train and deploy small AI models from your browser. Browse all of the models and datasets available on the Minibase Marketplace.

📋 Model Summary

Minibase-NER-Small is a specialized language model fine-tuned for Named Entity Recognition (NER) tasks. It automatically identifies and extracts named entities from text, outputting them in structured numbered lists for entities like persons, organizations, locations, and miscellaneous terms.

Key Features

  • 🎯 Strong NER Performance: 43.5% F1 score on entity recognition tasks
  • 📊 Entity Extraction: Identifies and lists PERSON, ORG, LOC, and MISC entities
  • 📏 Compact Size: 143MB (Q8_0 quantized)
  • ⚡ Fast Inference: 76.6ms average response time
  • 🔄 Local Processing: No data sent to external servers
  • 📝 Structured Output: Uses numbered lists for clear entity extraction

🚀 Quick Start

Local Inference (Recommended)

  1. Install llama.cpp (if not already installed):

    # Clone and build llama.cpp
    git clone https://github.com/ggerganov/llama.cpp
    cd llama.cpp
    make
    
    # Return to project directory
    cd ../NER_small
    
  2. Download the GGUF model:

    # Download model files from HuggingFace
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/model.gguf
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/ner_inference.py
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/config.json
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/tokenizer_config.json
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/generation_config.json
    
  3. Start the model server:

    # Start llama.cpp server with the GGUF model
    ../llama.cpp/llama-server \
      -m model.gguf \
      --host 127.0.0.1 \
      --port 8000 \
      --ctx-size 2048 \
      --n-gpu-layers 0 \
      --chat-template
    
  4. Make API calls:

    import requests
    
    # NER tagging via REST API
    response = requests.post("http://127.0.0.1:8000/completion", json={
        "prompt": "Instruction: Identify and tag all named entities in the following text. Use BIO format with entity types: PERSON, ORG, LOC, MISC.\n\nInput: John Smith works at Google in New York.\n\nResponse: ",
        "max_tokens": 512,
        "temperature": 0.1
    })
    
    result = response.json()
    print(result["content"])
    # Output: "John B-PERSON\nSmith I-PERSON\nworks O\nat O\nGoogle B-ORG\nin O\nNew York B-LOC\nI-LOC\n."
    

Python Client (Recommended)

# Download and use the provided Python client
from ner_inference import NERClient

# Initialize client (connects to local server)
client = NERClient()

# Tag entities in text
text = "Apple Inc. was founded by Steve Jobs in Cupertino, California."
entities = client.extract_entities(text)

print(entities)
# Output: [
#   {"text": "Apple Inc.", "type": "ORG", "start": 0, "end": 9},
#   {"text": "Steve Jobs", "type": "PERSON", "start": 24, "end": 34},
#   {"text": "Cupertino", "type": "LOC", "start": 38, "end": 47},
#   {"text": "California", "type": "LOC", "start": 49, "end": 59}
# ]

# Batch processing
texts = [
    "Microsoft announced a new CEO.",
    "Paris is the capital of France."
]
all_entities = client.extract_entities_batch(texts)
print(all_entities)

Direct llama.cpp Usage

# Alternative: Use llama.cpp directly without server
import subprocess
import json

def extract_entities_with_llama_cpp(text: str) -> str:
    prompt = f"Instruction: Identify and tag all named entities in the following text. Use BIO format with entity types: PERSON, ORG, LOC, MISC.\n\nInput: {text}\n\nResponse: "

    # Run llama.cpp directly
    cmd = [
        "../llama.cpp/llama-cli",
        "-m", "model.gguf",
        "--prompt", prompt,
        "--ctx-size", "2048",
        "--n-predict", "512",
        "--temp", "0.1",
        "--log-disable"
    ]

    result = subprocess.run(cmd, capture_output=True, text=True, cwd=".")
    return result.stdout.strip()

# Usage
result = extract_entities_with_llama_cpp("John Smith works at Google in New York.")
print(result)

📊 Benchmarks & Performance

Overall Performance (100 samples)

MetricScoreDescription
NER F1 Score43.5%Overall entity recognition performance
Precision63.0%Accuracy of positive predictions
Recall34.3%Ability to find all relevant entities
Accuracy93.6%Accuracy on identified entities (103/110 correct)
Average Latency76.6msResponse time performance

Entity Recognition Performance

  • Entity Identification Accuracy: 93.6% (103/110 correct predictions when entities are found)
  • Evaluation Methodology: Type-agnostic matching with fuzzy string comparison
  • Output Format: Numbered lists (e.g., "1. Entity Name", "2. Another Entity")

Performance Insights

  • ✅ Good Precision: 63% of predicted entities are correct
  • ✅ Reasonable Recall: Finds about 34% of expected entities
  • ✅ High Accuracy: 93.6% accuracy on entities that are identified
  • ✅ Fast Inference: 76.6ms average response time
  • ✅ Structured Output: Clear numbered list format for easy parsing
  • ✅ Robust Parsing: Handles entity variations and partial matches

🏗️ Technical Details

Model Architecture

  • Architecture: LlamaForCausalLM
  • Parameters: 135M (small capacity)
  • Context Window: 2,048 tokens
  • Max Position Embeddings: 2,048
  • Quantization: GGUF (Q8_0 quantization)
  • File Size: 143MB
  • Memory Requirements: 8GB RAM minimum, 16GB recommended

Training Details

  • Base Model: Custom-trained Llama architecture
  • Fine-tuning Dataset: Mixed-domain entity recognition data
  • Training Objective: Named entity extraction and listing
  • Optimization: Quantized for efficient inference
  • Model Scale: Small capacity optimized for speed

System Requirements

ComponentMinimumRecommended
Operating SystemLinux, macOS, WindowsLinux or macOS
RAM8GB16GB
Storage150MB free space500MB free space
Python3.8+3.10+
Dependenciesllama.cppllama.cpp, requests

Notes:

  • ✅ CPU-only inference supported but slower
  • ✅ GPU acceleration provides significant speed improvements
  • ✅ Apple Silicon users get Metal acceleration automatically

📚 Limitations & Biases

Current Limitations

LimitationDescriptionImpact
Variable Output QualitySometimes produces garbled or incomplete responsesMay miss entities in certain contexts
No Entity Type LabelsOutputs entity names but not their typesRequires post-processing for type classification
Context WindowLimited to 2,048 token context windowCannot process very long documents
Language ScopePrimarily trained on English textLimited performance on other languages
Inconsistent ExtractionPerformance varies by input complexityMay miss entities in complex sentences

Potential Biases

Bias TypeDescriptionMitigation
Output Format InconsistencySometimes outputs structured lists, sometimes garbled textImproved prompt engineering and training
Entity Recognition PatternsMay favor certain entity patterns over othersDiverse training data and evaluation
Domain SpecificityPerformance varies across different text typesMulti-domain training and fine-tuning

📜 Citation

If you use NER-Small in your research, please cite:

@misc{ner-small-2025,
  title={NER-Small: A Compact Named Entity Recognition Model},
  author={Minibase AI Team},
  year={2025},
  publisher={Hugging Face},
  url={https://huggingface.co/Minibase/NER-Small}
}

🤝 Community & Support

📋 License

This model is released under the Apache License 2.0.

🙏 Acknowledgments

  • CoNLL-2003 Dataset: Used for training and evaluation
  • llama.cpp: For efficient local inference
  • Hugging Face: For model hosting and community
  • Our amazing community: For feedback and contributions

Built with ❤️ by the Minibase team

Making AI more accessible for everyone

💬 Join our Discord

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

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

GPU в ailist

llama.cpp

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
37cfd07

0 моделей