Downloads · 30 days
4
5% of all-time downloads
Maazwaheed/mallow-gemma-3-270m-it
mallow-gemma-3-270m-it is a text generation model from Maazwaheed. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
4
5% of all-time downloads
All-time downloads
87
Public
Parameters
268M
574 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors536 MB · 93%
From the Hugging Face model README
This model is a clone of the powerful instruction-following model, Gemma 3 270M IT, originally developed by Google. This repository serves as a personal mirror for testing and development under the username Maazwaheed.
The original model is a lightweight, decoder-only Large Language Model (LLM) designed for instruction-following and dialogue. It is a smaller variant of the Gemma family, fine-tuned specifically for chat and interactive use cases.
Maazwaheed)google/gemma-3-270m-itThis model is intended for:
The model is not intended for generating hate speech, malicious code, or engaging in high-stakes decisions without human oversight. Its small size means it may struggle with complex reasoning or long-context tasks compared to larger models.
You can load and use this model directly using the Hugging Face transformers library.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Maazwaheed/mallow-gemma-3-270m-it"
# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
# Load the model
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16, # Use bfloat16 for better performance/memory
device_map="auto"
)
# Example Chat Interaction
chat = [
{"role": "user", "content": "Explain the concept of quantum entanglement in simple terms."},
]
prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
inputs = tokenizer.encode(prompt, add_special_tokens=True, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0]))