Views
No views yet
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.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-largeresults/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 enabled1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2model_id = "KemiOm/poetry-meter-best"
3tokenizer = AutoTokenizer.from_pretrained(model_id)
4model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
5line = "Tired Nature's sweet restorer, balmy Sleep!"
6inputs = tokenizer(line, return_tensors="pt")
7outputs = model.generate(**inputs, max_new_tokens=24, do_sample=False)
8print(tokenizer.decode(outputs[0], skip_special_tokens=True))
9# expected format: "+-+-+-+-+-+" (example)