Downloads · 30 days
44
2% of all-time downloads
dleemiller/Penny-1.7B
Penny-1.7B is a text generation model from dleemiller. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is a style transfer from the Irish Penny Journal (1840) to Smollm2 using GRPO. For example, this response to "What is the capital of France"
Downloads · 30 days
44
2% of all-time downloads
All-time downloads
2.6K
Public
Parameters
1.7B
13.7 GB on disk
Likes
24
Public
Click a slice to open those files.
.safetensors6.8 GB · 100%
From the Hugging Face model README
This is a style transfer from the Irish Penny Journal (1840) to Smollm2 using GRPO. For example, this response to "What is the capital of France"
Verily, in the grand tapestry of European monarchies, the city of Paris, the seat of the mighty Emperor Napoleon, holds a place of singular distinction. This city, which hath borne the name of 'La Ville Lumière' for nigh on two centuries, doth shine forth as a beacon of art, culture, and intellect, its very existence a testament to the ingenuity and brilliance of its people. And so, it is with great honour and reverence that we declare Paris, the majestic capital of the French realm, to be our noble question's answer.
Penny‑1.7B is a 1.7 billion‑parameter causal language model fine‑tuned with Group Relative Policy Optimization (GRPO) to emulate the 19ᵗʰ‑century prose of the Irish Penny Journal (1840). The RL stage ran for 6,800 policy steps, using a reward model trained to classify sentences as original IPJ vs modern translation. Maximizing this score nudges generations toward authentic Victorian‑era diction while retaining the general reasoning ability of the base SmolLM2 model.
| Base model | SmolLM2‑1.7B-Instruct |
| Tuning method | GRPO (RL) |
| Policy steps | 6,800 |
| Reward model | MiniLM2 L6 384H classifier |
| Optimiser | AdamW 8‑bit · lr 5 × 10^⁻6 |
| Hardware | 1× RTX A6000 (48 GB) · bf16 |
Corpora
Reward = classifier output
Not recommended for: contemporary fact Q&A or contexts where archaic language could mislead readers.
19ᵗʰ‑century texts can contain outdated social views. Outputs may reflect such biases or archaic spelling. Always review generations before use.
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "dleemiller/Penny-1.7B"
device = "cuda" # or "cpu"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# For multi‑GPU: install accelerate and use device_map="auto"
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
messages = [{"role": "user", "content": "What is the capital of France."}]
input_text = tokenizer.apply_chat_template(messages, tokenize=False)
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs,
max_new_tokens=512,
temperature=0.8,
top_p=0.9,
do_sample=True)
print(tokenizer.decode(outputs[0]))
@software{penny_1.7b_2025,
title = {Penny‑1.7B: Irish Penny Journal Style Language Model},
author = {Lee Miller},
year = 2025,
publisher = {Hugging Face},
url = {https://huggingface.co/dleemiller/Penny-1.7B}
}
Apache 2.0 (inherits from the base model).