Downloads · 30 days
78
2% of all-time downloads
zeromodels/gemma-3-1b-it
gemma-3-1b-it is a text generation model from zeromodels. Use it when you need the model to write or continue text. It is set up for zeromodels. The card lists the license as gemma.
See our collection for all Gemma 3 sizes and variants.
Downloads · 30 days
78
2% of all-time downloads
All-time downloads
4.2K
Public
Repo size
2 GB
Likes
1
Public
Click a slice to open those files.
.h52 GB · 98%
From the Hugging Face model README
See our collection for all Gemma 3 sizes and variants.
Pure-Keras 3 conversion of google/gemma-3-1b-it for
zeromodels. One implementation runs unmodified on
TensorFlow / Torch / JAX. This is the instruction-tuned checkpoint, served here as text -> text via Gemma3TextGenerate; weights are
stored in bfloat16.
For model details, license, and usage terms, see Google's model card.
import os
os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
from zeromodels.models.gemma3 import Gemma3TextGenerate, Gemma3Tokenizer
model = Gemma3TextGenerate.from_weights("zeromodels/gemma-3-1b-it")
tokenizer = Gemma3Tokenizer.from_weights("zeromodels/gemma-3-1b-it")
inputs = tokenizer([{"role": "user", "content": "Hello, who are you?"}])
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0]))
Load any Gemma 3 variant the same way with from_weights("zeromodels/<variant>"):
| Variant | Hub |
|---|---|
gemma-3-12b-it | zeromodels/gemma-3-12b-it |
gemma-3-12b-pt | zeromodels/gemma-3-12b-pt |
gemma-3-1b-it | zeromodels/gemma-3-1b-it |
gemma-3-1b-pt | zeromodels/gemma-3-1b-pt |
gemma-3-270m | zeromodels/gemma-3-270m |
gemma-3-270m-it | zeromodels/gemma-3-270m-it |
gemma-3-27b-it | zeromodels/gemma-3-27b-it |
gemma-3-27b-pt | zeromodels/gemma-3-27b-pt |
gemma-3-4b-it | zeromodels/gemma-3-4b-it |
gemma-3-4b-pt | zeromodels/gemma-3-4b-pt |
KERAS_BACKEND before importing Keras / zeromodels.load_dtype="float32" for full precision,
or quantization="int8" to shrink further.hf: prefix:
Gemma3TextGenerate.from_weights("hf:google/gemma-3-1b-it").A huge thank you to the Google Gemma authors for creating and releasing these models.
License: Gemma (gated). Accept the license on the upstream Hub card before downloading.