Downloads · 30 days
5
6% of all-time downloads
KemiOm/poetry-meter-best
poetry-meter-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. The card lists the license as cc-by-sa-4.0.
KemiOm/poetry-meter-best is a LoRA-adapted google/flan-t5-large model for line-level meter/stress prediction in English poetry. Given a single poetic line, the model predicts its stress pattern (meter representation)…
Downloads · 30 days
5
6% of all-time downloads
All-time downloads
79
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-meter-best is a LoRA-adapted google/flan-t5-large model for line-level meter/stress prediction in English poetry.
Given a single poetic line, the model predicts its stress pattern (meter representation) as a compact symbolic sequence.
-+-+-+-+-+)
Example:Tired Nature's sweet restorer, balmy Sleep!+-+-+-+-+-+
This is a meter-only labeling model, not a full poetry generator.The meter-only dataset uses line-level supervision:
input: poetic line texttarget: stress/meter pattern string
The model is trained to map each line directly to its metrical stress pattern.google/flan-t5-largeBest meter-only performance in your results appears in:
results/round3/meter_only_lora_r3_lr1e4_flan-t5-large_lora_20260415_160740/zero_shot_meter_only_line_only.json
Associated run configuration (sft_runs/round3/meter_only_lr1e4/run_params.json):
5.01e-40.010.181425664r): 16320.05q,v42bf16=true, fp16 enabledfrom transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = "KemiOm/poetry-meter-best"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
line = "Tired Nature's sweet restorer, balmy Sleep!"
inputs = tokenizer(line, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=24, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# expected format: "+-+-+-+-+-+" (example)