benjamin/compoundpiece
Viewer • Updated • 44.2M • 232 • 1
Run benjamin/compoundpiece on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/benjamin/compoundpiece. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/benjamin/compoundpiece on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use benjamin/compoundpiece with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("benjamin/compoundpiece")
model = AutoModelForSeq2SeqLM.from_pretrained("benjamin/compoundpiece", device_map="auto")Compound normalization model from CompoundPiece: Evaluating and Improving Decompounding Performance of Language Models.
from transformers import pipeline
pipe = pipeline("text2text-generation", "benjamin/compoundpiece")
pipe("Hauswirtschaftslehre", max_length=32)
# [{'generated_text': 'Haus-Wirtschaft-Lehre'}]
@article{minixhofer2023compoundpiece,
title={CompoundPiece: Evaluating and Improving Decompounding Performance of Language Models},
author={Minixhofer, Benjamin and Pfeiffer, Jonas and Vuli{\'c}, Ivan},
journal={arXiv preprint arXiv:2305.14214},
year={2023}
}
MIT