Downloads · 30 days
7
6% of all-time downloads
shalinm/Kemcho-Gemma-3-1B-IT
Kemcho-Gemma-3-1B-IT is a text generation model from shalinm. 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.
Kemcho-Gemma-3-1B-IT is a fine-tuned model from google/gemma-3-1b-it for Gujarati instruction following and general assistant tasks. The training used LoRA and was merged into the base weights for single-repo deployment.
Downloads · 30 days
7
6% of all-time downloads
All-time downloads
115
Public
Parameters
1000M
4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4 GB · 99%
From the Hugging Face model README
Kemcho-Gemma-3-1B-IT is a fine-tuned model from google/gemma-3-1b-it for Gujarati instruction following and general assistant tasks. The training used LoRA and was merged into the base weights for single-repo deployment.
model.safetensors (~4 GB, bf16 recommended)import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "shalinm/Kemcho-Gemma-3-1B-IT"
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "system", "content": "તમે મદદરૂપ ગુજરાતી સહાયક છો."},
{"role": "user", "content": "આપેલ વાક્યોને એક વાક્યમાં ભેગા કરો.\n\nહું કામ માટે મોડો પડ્યો હતો. મારે મારા બાળકોને શાળાએ લઈ જવાનું હતું."},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=256,
do_sample=True,
temperature=0.7,
top_p=0.9,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
google/gemma-3-1b-itq_proj, k_proj, v_proj, o_proj, mlp up_proj, down_proj,gate_proj| step | train_loss | val_loss |
|---|---|---|
| 300 | 1.1884 | 1.7497 |
google/gemma-3-1b-it. Use is subject to the Gemma license and terms set by Google.