Downloads · 30 days
10
14% of all-time downloads
Navneeth017/Malayalam_gemma-4-E2B-it
Malayalam_gemma-4-E2B-it is a text generation model from Navneeth017. 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.
A Malayalam instruction-tuned model built by supervised fine-tuning of google/gemma-4-E2B-it. It is specialised for natural, fluent Malayalam conversation and instruction following.
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
70
Public
Parameters
5.1B
10.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors10.2 GB · 100%
From the Hugging Face model README
A Malayalam instruction-tuned model built by supervised fine-tuning of
google/gemma-4-E2B-it. It is specialised
for natural, fluent Malayalam conversation and instruction following.
transformers text-generation model; use the chat
template as usual.This is a Gemma-4 model; load it with the multimodal class and use the chat template for text conversation.
from transformers import AutoModelForImageTextToText, AutoTokenizer
import torch
model_id = "Navneeth017/Malayalam_gemma-4-E2B-it"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
model_id, dtype=torch.bfloat16, device_map="auto"
)
messages = [
{"role": "system", "content": "നിങ്ങൾ സഹായകരമായ ഒരു മലയാളം സഹായിയാണ്."},
{"role": "user", "content": "കേരളത്തിലെ ഓണം ആഘോഷത്തെക്കുറിച്ച് വിശദീകരിക്കൂ."},
]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
out = model.generate(inputs, max_new_tokens=256, do_sample=True, temperature=0.7, top_p=0.9)
print(tokenizer.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))
Fine-tuned with QLoRA (4-bit NF4 base + LoRA adapters) and the adapters merged back into the base for a standalone model.
Apache 2.0, inherited from the base model google/gemma-4-E2B-it. See the
Gemma 4 license terms.