Views
No views yet
| 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 |
1import { pipeline } from '@huggingface/transformers';
2
3const decomposer = await pipeline(
4 'text2text-generation',
5 'liliplanet/propositionizer-mt5-small'
6);
7
8const result = await decomposer(
9 'Title: Meeting. Section: . Content: The deadline is Friday and the rate was reduced.',
10 { max_new_tokens: 256, repetition_penalty: 2.0 }
11);
12console.log(JSON.parse(result[0].generated_text));
13// ["The deadline is Friday.", "The rate was reduced."]1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
3tokenizer = AutoTokenizer.from_pretrained("liliplanet/propositionizer-mt5-small")
4model = AutoModelForSeq2SeqLM.from_pretrained("liliplanet/propositionizer-mt5-small")
5
6input_text = "Title: 회의. Section: . Content: 김 대리가 시급을 낮추고 마감은 금요일이다."
7inputs = tokenizer(input_text, return_tensors="pt")
8outputs = model.generate(**inputs, max_new_tokens=256, repetition_penalty=2.0, no_repeat_ngram_size=3, num_beams=4)
9print(tokenizer.decode(outputs[0], skip_special_tokens=True))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 |
1@article{chen2023densex,
2 title={Dense X Retrieval: What Retrieval Granularity Should We Use?},
3 author={Chen, Tong and Wang, Hongwei and Chen, Sihao and Yu, Wenhao and Ma, Kaixin and Zhao, Xinran and Zhang, Hongming and Yu, Dong},
4 journal={arXiv preprint arXiv:2312.06648},
5 year={2023}
6}