Downloads · 30 days
28
3% of all-time downloads
liliplanet/propositionizer-mt5-small
propositionizer-mt5-small is a text generation model from liliplanet. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A multilingual atomic fact decomposition model that converts unstructured text into a list of self-contained atomic propositions.
Downloads · 30 days
28
3% of all-time downloads
All-time downloads
899
Public
Parameters
300M
5 GB on disk
Likes
0
Public
Click a slice to open those files.
.onnx1.3 GB · 51%
From the Hugging Face model README
A multilingual atomic fact decomposition model that converts unstructured text into a list of self-contained atomic propositions.
| Property | Value |
|---|---|
| Base Model | google/mt5-small (300M params) |
| Training Method | Claude → mT5-small distillation |
| Languages | English, Korean, Japanese, Chinese |
| Training Data | v1: ~9,700 + v2: ~5,900 Korean examples |
| Format | ONNX (int8 quantized) |
| License | Apache 2.0 |
Based on the Dense X Retrieval (Propositionizer) approach, extended to multilingual.
import { pipeline } from '@huggingface/transformers';
const decomposer = await pipeline(
'text2text-generation',
'liliplanet/propositionizer-mt5-small'
);
const result = await decomposer(
'Title: Meeting. Section: . Content: The deadline is Friday and the rate was reduced.',
{ max_new_tokens: 256, repetition_penalty: 2.0 }
);
console.log(JSON.parse(result[0].generated_text));
// ["The deadline is Friday.", "The rate was reduced."]
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("liliplanet/propositionizer-mt5-small")
model = AutoModelForSeq2SeqLM.from_pretrained("liliplanet/propositionizer-mt5-small")
input_text = "Title: 회의. Section: . Content: 김 대리가 시급을 낮추고 마감은 금요일이다."
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256, repetition_penalty=2.0, no_repeat_ngram_size=3, num_beams=4)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Follow the Propositionizer format:
Title: {title}. Section: {section}. Content: {content}
| Original (Flan-T5-Large) | This Model (mT5-Small) | |
|---|---|---|
| Parameters | 780M | 300M |
| Languages | English only | EN, KO, JA, ZH |
| Teacher | GPT-4 | Claude |
| Training Data | English only | Multilingual |
@article{chen2023densex,
title={Dense X Retrieval: What Retrieval Granularity Should We Use?},
author={Chen, Tong and Wang, Hongwei and Chen, Sihao and Yu, Wenhao and Ma, Kaixin and Zhao, Xinran and Zhang, Hongming and Yu, Dong},
journal={arXiv preprint arXiv:2312.06648},
year={2023}
}
This model is a component of the MemRosetta project for multilingual memory and knowledge extraction.