Downloads · 30 days
4
4% of all-time downloads
KemiOm/poetry-combined-best
poetry-combined-best is a machine learning model from KemiOm. 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. The card lists the license as cc-by-sa-4.0.
KemiOm/poetry-combined-best is a LoRA-adapted google/flan-t5-large model for English poetry generation with explicit structural constraints, especially meter and rhyme. This checkpoint represents the best-performing c…
Downloads · 30 days
4
4% of all-time downloads
All-time downloads
108
Public
Parameters
783M
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
KemiOm/poetry-combined-best is a LoRA-adapted google/flan-t5-large model for English poetry generation with explicit structural constraints, especially meter and rhyme.
This checkpoint represents the best-performing combined run from a multi-round fine-tuning workflow.
This model is fine-tuned on an English poetry corpus curated for line-level form analysis.
Replace dataset references with exact public/private IDs and include any additional licensing notes for upstream poem sources.
The preprocessing pipeline includes:
KemiOm/poetry-combined-best performs combined line-level structure evaluation for poetry.
Given an input line, the model predicts a structured label string:
stress:<pattern>|meter_type:<meter>|rhyme:<phones>|end:<0_or_1>|caesura:<index_or_->
Where:
stress: token-level stress sequence patternmeter_type: predicted metrical class (e.g., iambic pentameter)rhyme: phonetic rhyme representation of the line endingend: end-of-unit flag (1 if line ends a unit, else 0)caesura: caesura position or - if nonegoogle/flan-t5-largetransformers + PEFTBest combined run parameters (from round2/combined/run_params.json):
google/flan-t5-larger): 32640.05q,k,v,o5.05e-050.010.18216 per device group (multiply by number of GPUs if distributed)4384128300 steps42no_fp16=true, bf16=false-1 (epoch-based)truefrom transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = "KemiOm/poetry-combined-best"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
prompt = "Tired Nature's sweet restorer, balmy Sleep!"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_new_tokens=180,
do_sample=True,
temperature=0.8,
top_p=0.95
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))