NewsKoT5

The training data for this T5 model consists of Korean news articles (29GB). However, the performance has not been fine-tuned through the use of small batches and a limited number of training steps, so it may not be fully optimized.

Quick tour

from transformers import AutoTokenizer, T5ForConditionalGeneration
  
tokenizer = AutoTokenizer.from_pretrained("BM-K/NewsKoT5-small")
model = T5ForConditionalGeneration.from_pretrained("BM-K/NewsKoT5-small")

input_ids = tokenizer("ν•œκ΅­ν˜•λ°œμ‚¬μ²΄ λˆ„λ¦¬ν˜Έκ°€ μ‹€μš©κΈ‰ <extra_id_0> λ°œμ‚¬μ²΄λ‘œμ„œ β€˜λ°λ·”β€™λ₯Ό μ„±κ³΅μ μœΌλ‘œ <extra_id_1>", return_tensors="pt").input_ids
labels = tokenizer("<extra_id_0> μœ„μ„± <extra_id_1> λ§ˆμ³€λ‹€ <extra_id_2>", return_tensors="pt").input_ids

outputs = model(input_ids=input_ids,
                labels=labels)

News Summarization Performance (F1-score)

After restoring the model's tokenized output to the original text, Rouge performance was evaluated by comparing it to the reference and hypothesis tokenized using mecab.

  • Dacon ν•œκ΅­μ–΄ λ¬Έμ„œ μƒμ„±μš”μ•½ AI κ²½μ§„λŒ€νšŒ Dataset
    • Training: 29,432
    • Validation: 7,358
    • Test: 9,182
#Param rouge-1 rouge-2 rouge-l
pko-t5-small 95M 51.48 33.18 44.96
NewsT5-small 61M 52.15 33.59 45.41
  • AI-Hub λ¬Έμ„œμš”μ•½ ν…μŠ€νŠΈ Dataset
    • Training: 245,626
    • Validation: 20,296
    • Test: 9,931
#Param rouge-1 rouge-2 rouge-l
pko-t5-small 95M 53.44 34.03 45.36
NewsT5-small 61M 53.74 34.27 45.52
Downloads last month
5
Safetensors
Model size
61.5M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using BM-K/NewsKoT5-small 1

Collection including BM-K/NewsKoT5-small