Downloads · 30 days
0
skolvankar/Marathi_SmolLM_135M
Marathi_SmolLM_135M is a text generation model from skolvankar. 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 compact LLaMA‑style Marathi language model (~134.5M parameters) finetuned for Marathi text generation and creative tasks (e.g., haiku). The model uses a native Marathi tokenizer (49,152 BPE vocab) and a 30‑layer, 9‑…
Downloads · 30 days
0
Access
Public
Updated Nov 16, 2025
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.pt1.6 GB · 100%
From the Hugging Face model README
A compact LLaMA‑style Marathi language model (~134.5M parameters) finetuned for Marathi text generation and creative tasks (e.g., haiku). The model uses a native Marathi tokenizer (49,152 BPE vocab) and a 30‑layer, 9‑head decoder‑only transformer with GQA, RMSNorm, and RoPE.
HuggingFaceTB/SmolLM-135Mmr)Using transformers:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "skolvankar/Marathi_SmolLM_135M" # replace with your namespace if different
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32)
model.eval()
prompt = "आजचा दिवस"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Using the pipeline API:
from transformers import pipeline
pipe = pipeline("text-generation", model="skolvankar/Marathi_SmolLM_135M")
print(pipe("आजचा दिवस", max_new_tokens=50)[0]["generated_text"]) # adjust key per transformers version
Training is demonstrably resumed from the final checkpoint (e.g., step 5000 → 5050). See repository logs and next_50.py for a minimal resume script that loads checkpoint_final.pt and runs exactly +50 steps, saving checkpoint_5050.pt.
HuggingFaceTB/SmolLM-135MIf you use this model, please cite the base model and this repository/model card.
@misc{Marathi_SmolLM_135M,
title = {Marathi SmolLM 135M},
author = {Shivranjan Kolvankar},
year = {2025},
url = {https://huggingface.co/skolvankar/Marathi_SmolLM_135M}
}