Downloads · 30 days
15
68% of all-time downloads
Lorobert/text-simplification-runpod
text-simplification-runpod is a machine learning model from Lorobert. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
- Training Loss: 0.2796 - Training Time: 22:39 (3 epochs) - Dataset: GEM/wikiautoassetturk (483,801 samples) - GPU: NVIDIA H100 80GB - Batch Size: 64
Downloads · 30 days
15
68% of all-time downloads
All-time downloads
22
Public
Parameters
139M
558 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors558 MB · 100%
From the Hugging Face model README
from transformers import BartTokenizer, BartForConditionalGeneration
model = BartForConditionalGeneration.from_pretrained("Lorobert/text-simplification-runpod")
tokenizer = BartTokenizer.from_pretrained("Lorobert/text-simplification-runpod")
text = "Complex sentence here."
inputs = tokenizer(text, return_tensors="pt", max_length=128, truncation=True)
outputs = model.generate(**inputs, max_length=128, num_beams=4)
simplified = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(simplified)