/ Модель

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

Лицензия
Gemma
Базовая модель
gemma-4-E2B-it
Библиотека
transformers
Опубликована
30 июн 2026

hades-2-2b

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

Дообученная Gemma 4 E2B для классификации новостных статей на корейском и английском языках и извлечения названий компаний.

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

Бенчмарки

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

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

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

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

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

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

davidkim205/hades-2-2b — дообученная модель на базе unsloth/gemma-4-E2B-it, созданная для классификации новостных статей и извлечения названий компаний. Модель класса 2B обучалась методом ORPO на небольшой внутренней выборке примерно из 1,6 тыс. примеров на корейском и английском языках; веса представлены в формате BF16.

Модель принимает текст статьи, обычно заголовок и основной текст, и формирует JSON-подобный ответ для извлечения компаний, отнесения статьи к одному или нескольким разделам и выбора экономической либо неэкономической категории. Внутренняя оценка на 1 207 примерах показала улучшение общей точности относительно базовой модели, однако результаты различаются между задачами и языками. Рекомендуемая длина контекста — до 16 384 токенов, хотя базовая конфигурация поддерживает до 131 072 токенов.

Модель подходит для классификации новостного потока и извлечения упоминаемых компаний. Она обучена на небольшой внутренней выборке, поэтому качество на других форматах статей, схемах меток, языках и предметных областях может отличаться; корректность JSON не гарантируется. Лицензия — Gemma.

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

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

Ограничения

Модель дообучена на небольшой внутренней выборке, поэтому качество может снижаться на других языках, форматах статей, схемах меток и предметных областях. Обучение проводилось с контекстом до 16 384 токенов, а корректность JSON-ответов не гарантируется.

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

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

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

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

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

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

Открыть на Hugging Face

hades-2-2b

Model Summary

davidkim205/hades-2-2b is a fine-tuned version of unsloth/gemma-4-E2B-it, optimized for internal news article classification and company name extraction tasks.

Compared with the base model, this fine-tuned model showed improved overall performance across the main supported tasks in internal evaluation, although performance varies by language, task, and subset.

  • Model ID: davidkim205/hades-2-2b
  • Base model: unsloth/gemma-4-E2B-it
  • Parameter count: 2B-class parameters, following the base model configuration
  • Base maximum context length: 131,072 tokens
  • Recommended evaluated context length: Up to 16,384 tokens
  • Tensor type: BF16

Intended Use

davidkim205/hades-2-2b is intended for internal news article classification and company name extraction tasks.

The model is designed to process news article text, typically including fields such as title and body, and perform the following tasks:

  • Company name extraction (stock): Extract company names from the article.
  • Section classification (section): Classify the article into one or more predefined news sections.
  • Category classification (category): Classify the article into exactly one predefined economic or non-economic category label.

Each task is expected to return a JSON-formatted response. The exact schema depends on the task-specific instruction.

Training Details

This model was fine-tuned using ORPO on task-specific preference pairs.

  • Fine-tuning algorithm: ORPO
  • Training objective: Preference optimization using chosen and rejected responses
  • Training format: Task-specific instruction plus news article input, typically including title and body
  • Output format: JSON-formatted response
  • Model weights: Merged 16-bit weights
  • Precision: BF16
  • Training sequence length: 16,384 tokens
  • Training tasks: stock_extraction, section_classification, category_classification

Dataset

This model was fine-tuned on a small internal preference dataset for news classification and company name extraction. Labels were produced with assistance from GPT-5.4 as part of an internal annotation workflow. Stock labels were subsequently reviewed by human annotators as part of the quality-control process.

The dataset contains approximately 1.6K news article examples in Korean and English. Each example consists of news article text, typically including title and body fields, and is associated with one of the supported tasks: stock_extraction, section_classification, or category_classification.

The data was formatted as preference pairs for ORPO training, with a chosen response and a rejected response.

The dataset is not publicly released because it contains internal annotation data.

Evaluation

The model was evaluated on an internal held-out news article evaluation set containing 1,207 task-level examples across Korean and English data.

The evaluation set was constructed from 400 news articles from April and May 2026: 100 Korean and 100 English articles per month. Because each article can be evaluated across multiple supported tasks, this resulted in 1,207 task-level evaluation examples.

The evaluation covers the three supported tasks: stock, section, and category.

Evaluation Method

For category, the model returns one category label, and accuracy is calculated by exact match between the predicted top-1 label and the reference top-1 label.

For section, the model may return multiple section objects, but this evaluation uses top-1 label accuracy: the predicted top-1 section label must exactly match the reference top-1 section label.

For stock, company objects with confidence < 0.7 are removed from the prediction output. Exact-match accuracy is then calculated by comparing the normalized reference and prediction company sets after filtering. Entity order is not considered in the exact-match criterion.

Overall Results

Task / Splitdavidkim205/hades-2-2bunsloth/gemma-4-E2B-itImprovement
total71.67% (865/1207)45.48% (549/1207)+26.19 pp
ko68.04% (413/607)40.03% (243/607)+28.01 pp
us75.33% (452/600)51.00% (306/600)+24.33 pp
section72.50% (290/400)51.25% (205/400)+21.25 pp
category72.50% (290/400)42.75% (171/400)+29.75 pp
stock70.02% (285/407)42.51% (173/407)+27.51 pp

Economic News Subset

The economic news subset is calculated by aggregating the April 2026 and May 2026 economic-news rows for each language and task. For section and category, it reports recall on examples whose reference labels indicate economic relevance. For stock, it reports exact-match company name extraction accuracy on economic-news examples.

TaskSplitMetricdavidkim205/hades-2-2bunsloth/gemma-4-E2B-itImprovement
SectionKoreanEconomic recall30.77% (12/39)56.41% (22/39)-25.64 pp
SectionEnglishEconomic recall76.67% (46/60)73.33% (44/60)+3.33 pp
CategoryKoreanEconomic recall86.27% (88/102)93.14% (95/102)-6.86 pp
CategoryEnglishEconomic recall89.42% (93/104)98.08% (102/104)-8.65 pp
StockKoreanExact-match accuracy70.59% (60/85)50.59% (43/85)+20.00 pp
StockEnglishExact-match accuracy65.92% (118/179)40.78% (73/179)+25.14 pp

Usage

Inference Example

The following code is an illustrative example. In production, the model should be prompted with the task-specific instruction defined for each supported task.

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "davidkim205/hades-2-2b"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

task_instruction = """
Read the following news article and classify it into exactly one of the following categories:

- economic_incident
- economic_crime
- economic
- non_economic_incident
- non_economic_crime
- non_economic

Return the result as JSON only, with the following format:
{"category": "economic", "confidence": 0.0}
"""

article = {
    "title": "금융위, ‘회계기준 위반’ 국보에 과징금 6500만원",
    "body": "금융위원회가 회계처리기준을 위반해 재무제표를 허위 작성·공시한 국보에 과징금을 부과했다.",
}

messages = [
    {
        "role": "user",
        "content": f"""{task_instruction}

{article}
""",
    }
]

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=512,
    do_sample=False,
)

generated_tokens = outputs[0][inputs["input_ids"].shape[1]:]
print(tokenizer.decode(generated_tokens, skip_special_tokens=True))

vLLM Serving Example

The model can be served with vLLM using the following command:

vllm serve davidkim205/hades-2-2b \
  --dtype bfloat16 \
  --max-model-len 16384 \
  --gpu-memory-utilization 0.90

Limitations

This model was fine-tuned on a small internal dataset for news classification and company name extraction. Performance may vary on article formats, languages, label schemas, or domains that differ from the fine-tuning and evaluation data.

Although the base model configuration supports up to 131,072 tokens, this fine-tuned model was trained with a maximum sequence length of 16,384 tokens. Performance beyond 16,384 tokens has not been fully evaluated and should be validated before production use.

The model is prompted to return JSON-formatted responses, but valid JSON output is not guaranteed in all cases. Downstream systems should apply JSON validation and error handling.

Users should evaluate the model on their own target data before using it in production.

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

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

GPU в ailist

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

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

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
e298a15

0 моделей