Downloads · 30 days
1.2K
16% of all-time downloads
twinkle-ai/gemma-3-4B-T1-it-GGUF
gemma-3-4B-T1-it-GGUF is a text generation model from twinkle-ai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
<div align="center" style="line-height: 1;" <a href="https://discord.gg/Cx737yw4ed" target="blank" style="margin: 2px;" <img alt="Discord" src="https://img.shields.io/badge/Discord-Twinkle%20AI-7289da?logo=discord&log…
Downloads · 30 days
1.2K
16% of all-time downloads
All-time downloads
7.3K
Public
Repo size
35.6 GB
Likes
5
Public
Click a slice to open those files.
.gguf30.8 GB · 100%
From the Hugging Face model README
GGUF quantized models converted from twinkle-ai/gemma-3-4B-T1-it for use with llama.cpp.

Gemma 3 4B T1-it is a small language model fine-tuned on Taiwan-focused datasets, supporting both English and Traditional Chinese. This repository provides multiple quantization formats optimized for different use cases.
| Model | Size | Use Case |
|---|---|---|
twinkle-ai-gemma-3-4B-T1-it-BF16.gguf | Largest | Best quality, highest precision |
twinkle-ai-gemma-3-4B-T1-it-F16.gguf | Large | High quality, good precision |
twinkle-ai-gemma-3-4B-T1-it-Q8_0.gguf | Medium | Balanced quality and speed |
twinkle-ai-gemma-3-4b-t1-it-q4_k_m.gguf | Smallest | Fastest inference, lower memory |
Install llama.cpp via Homebrew:
brew install llama.cpp
Run inference directly from Hugging Face:
llama-cli --hf-repo thliang01/gemma-3-4B-T1-it-Q8_0-GGUF \
--hf-file gemma-3-4b-t1-it-q8_0.gguf \
-p "Your prompt here"
Start as a server:
llama-server --hf-repo thliang01/gemma-3-4B-T1-it-Q8_0-GGUF \
--hf-file gemma-3-4b-t1-it-q8_0.gguf \
-c 2048
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
Basic build (CPU only):
LLAMA_CURL=1 make
Hardware-specific build options:
NVIDIA GPU (Linux):
LLAMA_CUDA=1 LLAMA_CURL=1 make
Apple Silicon (Mac):
LLAMA_METAL=1 LLAMA_CURL=1 make
AMD GPU (ROCm):
LLAMA_HIPBLAS=1 LLAMA_CURL=1 make
./llama-cli --hf-repo thliang01/gemma-3-4B-T1-it-Q8_0-GGUF \
--hf-file gemma-3-4b-t1-it-q8_0.gguf \
-p "Your prompt here"
./llama-server --hf-repo thliang01/gemma-3-4B-T1-it-Q8_0-GGUF \
--hf-file gemma-3-4b-t1-it-q8_0.gguf \
-c 2048
Select a model based on your needs:
BF16 or F16 versions (requires more memory)Q8_0 version (recommended for most users)q4_k_m version (suitable for devices with limited memory)-p "prompt": Your input text for the model to respond to-c 2048: Context length (maximum number of tokens that can be processed)--hf-repo: Hugging Face repository name--hf-file: Model file name to usellama-cli --hf-repo thliang01/gemma-3-4B-T1-it-Q8_0-GGUF \
--hf-file gemma-3-4b-t1-it-q8_0.gguf \
-p "Your prompt here" \
--temp 0.7 \
--top-p 0.9 \
--repeat-penalty 1.1
Parameter explanations:
--temp: Temperature (0.0-2.0), higher values produce more random output--top-p: Nucleus sampling parameter (0.0-1.0)--repeat-penalty: Repetition penalty to avoid repetitive contentQ: Getting out of memory errors?
A: Try using a smaller quantized version like q4_k_m, or reduce the context length parameter -c.
Q: How can I speed up inference?
A:
q4_k_m)Q: What prompt format does the model support?
A: This is an instruction-tuned model. Use a clear instruction format, for example:
Please analyze the main clauses of the following contract: [contract content]
If you have any questions or suggestions, please feel free to open a discussion in the Hugging Face repository.
Note: On first run, llama.cpp will automatically download the model file from Hugging Face. Please ensure you have a stable internet connection.