CoolFace
Modelpublic

tsfrm/cheese-3b

sourceHugging Facellama3.2updated 29d agoView on Hugging Face
3likes417downloads
Model Card

cheese-3b

Llama 3.2 3B Instruct turned into a cheese pun machine. Input a phrase, get the phrase cheesed back.

>>> just do it
just brie it

>>> good morning everyone
gouda morning everyone

>>> resistance is futile prepare to be assimilated
resistance is futile prepare to brie assimilated

Why

Fine-tunes that answer questions are a solved problem. I wanted one that warps whatever you type. The whole thing trains on a laptop in an afternoon, which felt like a decent demo of how far a small LoRA run can push behavior takeover on a narrow task.

Training

BaseLlama-3.2-3B-Instruct (4-bit)
MethodLoRA, r=32, alpha=64, last 16 of 28 layers
Data~5,000 phrase→pun pairs (30+ cheese varieties), plus ~300 synthetic pairs written to kill echo fallbacks
HardwareApple M4, 16 GB, MLX (mlx_lm.lora)
Schedule4 rounds, ~1,750 steps total, LR 2e-4 → 5e-5

The interesting part was round 3. After two rounds the model handled idiom-shaped input fine but echoed anything without an obvious pun word ("the quick brown fox jumps over the lazy dog" came back unchanged). Adding 262 hand-written transformations of arbitrary text fixed it — "quiche brown fox", "cheddar-ing today". Echo fallback didn't come back.

Usage

python
from mlx_lm import load, generate

model, tokenizer = load("e12ex2/cheese-3b")
msgs = [{"role": "user", "content": "break a leg tonight"}]
prompt = tokenizer.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=25))

Or mlx_lm.chat --model e12ex2/cheese-3b.

Known failures

  • Sometimes appends chatty filler after the pun instead of stopping ("netflix and chill, wine and cheese for two" — acceptable, but not what I asked for).
  • Substitution quality varies: tight phonetic swaps (be→brie, good→gouda) are the norm, but it occasionally reaches for a stretchy swap (odds→goudas) when nothing phonetic is available.
  • Prompts with zero dairy potential mostly still transform now, though quality there is more hit-and-miss than on idioms.

Trained for fun on personal hardware; the base model carries Meta's Llama 3.2 community license.