Instructions to use TORNADOGE/gemma-4-e4b-tweet-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TORNADOGE/gemma-4-e4b-tweet-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use TORNADOGE/gemma-4-e4b-tweet-GGUF with Ollama:
ollama run hf.co/TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use TORNADOGE/gemma-4-e4b-tweet-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use TORNADOGE/gemma-4-e4b-tweet-GGUF with Docker Model Runner:
docker model run hf.co/TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
- Lemonade
How to use TORNADOGE/gemma-4-e4b-tweet-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gemma-4-e4b-tweet-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use TORNADOGE/gemma-4-e4b-tweet-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use TORNADOGE/gemma-4-e4b-tweet-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "TORNADOGE/gemma-4-e4b-tweet-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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) forunsloth/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
- -
4-bit