Downloads · 30 days
5
2% of all-time downloads
Akki-off/fine-tune-led
fine-tune-led is a machine learning model from Akki-off. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This repository contains a LED-based model fine-tuned for paraphrasing tasks using the Quora dataset.
Downloads · 30 days
5
2% of all-time downloads
All-time downloads
242
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin648 MB · 100%
From the Hugging Face model README
This repository contains a LED-based model fine-tuned for paraphrasing tasks using the Quora dataset.
The LED (Longformer Encoder-Decoder) model is a variant of the Transformer model designed for tasks requiring longer context. This particular model is fine-tuned to generate paraphrases of given input sentences, making it useful for tasks like text simplification, query rewriting, and more.
pytorch_model.bin: Model weightsconfig.json: Model configurationtokenizer_config.json: Tokenizer configurationvocab.json: Tokenizer vocabularyfine-tune-led.ipynb: IPython Notebook for training the modelTo use the model, ensure you have the following dependencies installed:
transformersdatasetstorchTo use this model, load it via the transformers library. The model and tokenizer can be initialized and used to generate paraphrases of input text.
The model is trained on the Quora dataset, which consists of pairs of paraphrased questions. A subset of 20,000 samples was used for training, with 80% of the data allocated for training and 20% for evaluation.
Each question pair is tokenized, and the inputs are prepared with appropriate attention masks and labels. The input sequence length is truncated to 1024 tokens, and the output sequence length is truncated to 256 tokens.
The model is fine-tuned using the Seq2SeqTrainer from the transformers library with specific training arguments. Gradient accumulation steps and evaluation strategies are employed to optimize the training process.
The model's performance is evaluated using ROUGE and BLEU metrics:
The evaluation results show the model's performance in terms of ROUGE and BLEU scores, which indicate the quality and accuracy of the generated paraphrases.
To generate a paraphrase using the trained model: