CoolFace
Modelpublic

Shayde182/rhymeai-gemma-4-gguf

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes184downloads
Model Card

RhymeAI Gemma 4 (E2B / E4B) — on-device lyric assistant models

LoRA fine-tunes of Gemma 4 E2B-it and E4B-it for RhymeAI / Writers Block, a native songwriting app. Trained to follow the app's exact on-device prompt format for four tasks: rhyme-constrained next-line suggestions, passage rewrites, single-word rewrites, and synonyms. Runs fully offline via llama.cpp.

Files

FileSizeUse
gemma-4-E2B-it-rhymeai-Q4_K_M.gguf3.2 GBdefault phones (4–8 GB RAM)
gemma-4-E4B-it-rhymeai-Q4_K_M.gguf5.0 GBlarger devices (10 GB+ RAM)
gemma-4-E2B-it-rhymeai-lora-adapter-F16.gguf48 MBLoRA adapter only
gemma-4-E4B-it-rhymeai-lora-adapter-F16.gguf70 MBLoRA adapter only

Eval (app's 43-case harness, temp 0.8 / top-k 40 / top-p 0.95, ctx 2048)

TaskE2B stock → tunedE4B stock → tuned
Suggestions — format pass4% → 96%4% → 83%
Suggestions — rhyme hit60% → 92%82% → 84%
Passage rewrite — format0% → 100%33% → 83%
Single-word rewrite56% → 22%11% → 78%

Training

QLoRA (r=16, alpha=16, 2 epochs, lr 2e-4 cosine, effective batch 16, prompt-masked loss) on 4,947 synthetic examples generated from original seed lyrics and machine-verified for rhyme + format correctness before training (CMU-dictionary rhyme checking). No copyrighted lyrics and no user data. Trained with Unsloth on a Colab L4; merged and quantized with llama.cpp (llama-export-lora + llama-quantize, Q4KM).

Prompt format: raw Gemma turn markers (<start_of_turn>user\n... / <start_of_turn>model\n), stop string <end_of_turn>.