gemma-4-e4b-tweet

Gemma 4 E4B fine-tuned to turn a rough note into a tweet. It runs locally in LM Studio or llama.cpp.

It was trained on the open writer split of poseljacob/tweet-human-vs-ai-v5 (MIT). That split pairs 619 short notes ("sparks") with the real tweets people wrote from them. The dataset comes from the Inkling-2-Mini tweet writer project. That model lives on Tinker and can't be downloaded, so this is an independent local version trained on the same data.

Files

  • gemma-4-e4b-tweet-Q4_K_M.gguf: 5.3 GB, for LM Studio and llama.cpp.
  • lora/: the LoRA adapter (rank 16) for unsloth/gemma-4-E4B-it.
  • scripts/: the training, merge and evaluation scripts.

How to prompt

Send one user message that starts with Spark:. Turn thinking off (reasoning_effort: "none" in LM Studio), because the model was trained without it.

Spark: shipped dark mode today, took 3 weekends, people kept asking

Example output:

glowwww is now available in dark mode!

It was a fun journey that involved three weekends, fueled by many requests. Glad we finally got it done : )

For a quote tweet, put the quoted text first:

Quote-tweeting:
"<the post you are quoting>"

Spark: <your note>

Training

  • Base: unsloth/gemma-4-E4B-it, loaded in 4-bit with Unsloth.
  • LoRA rank 16, alpha 16, on the attention and MLP layers of the language model only.
  • 3 epochs, 234 steps, learning rate 2e-4, effective batch size 8. The loss covers only the tweet, not the prompt.
  • Hardware: one RTX 4070 Super (12 GB).

Evaluation

Both models got the 71 held-out sparks from the dataset's eval split, which come from 10 authors the model never saw. Both ran as Q4_K_M GGUFs in LM Studio, with thinking off and temperature 0.8.

Real tweets Base Gemma 4 E4B This model
Average length (characters) 186 995 255
Replies with a hashtag 0 69 0
Replies with an em or en dash 0 26 2
Replies with an emoji 3 35 7
Replies with line breaks 34 71 63

The base model mostly does not write a tweet from a spark. It analyses the note, asks what you want, or writes a long post with hashtags. This model writes a tweet every time.

We also scored all three sets with the dataset author's ModernBERT and RoBERTa human-vs-AI detectors. Those detectors rated the base model's long replies as more human (77.8%) than the real tweets (64.6%). Gemma's output is outside what they were trained on, so we don't use those scores as a result. This model scored 64.6%, the same as the real tweets.

Known issues

  • It uses more line breaks than people do (63 of 71 replies, against 34 of 71 real tweets).
  • It sometimes adds an emoji or a stock phrase such as "I strongly recommend".
  • It can write from the wrong person's point of view, for example as the builder of a product when the note was a user's complaint.
  • One reply had a Cyrillic "Π‘" inside "MCP".
  • About 21% of the training tweets come from one account, so the voice leans toward that author's casual style.

License

The model weights are a derivative of Gemma 4 and are covered by the Gemma Terms of Use. The training data is MIT-licensed by its author.

Downloads last month
-
GGUF
Model size
8B params
Architecture
gemma4
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 TORNADOGE/gemma-4-e4b-tweet-GGUF

Adapter
(537)
this model

Dataset used to train TORNADOGE/gemma-4-e4b-tweet-GGUF