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

Base Llama-3.2-3B-Instruct (4-bit)
Method LoRA, 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
Hardware Apple M4, 16 GB, MLX (mlx_lm.lora)
Schedule 4 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

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.

Downloads last month
30
Safetensors
Model size
3B params
Tensor type
U32
ยท
F16
ยท
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for tsfrm/cheese-3b