๐Ÿ“– Simple-Stories-Hindi-10M (11.45M Parameters)

A 11.45M parameter decoder-only Transformer language model trained from scratch on 2.11 million Hindi simple stories. The model generates coherent, creative, and grammatically sound Hindi stories given a short text prompt.


๐Ÿ“Š Evaluation & Training Metrics

Metric / Property Value
Best Validation Loss 1.8157 (Cross-Entropy Loss)
Total Training Steps 202,000 steps
Total Parameters 11,453,120 (11.45M)
Non-Embedding Parameters 10,173,120 (10.17M)
Training Dataset SmallScale/Simple-Stories-Hindi (~2.11M stories)
Model Size on Disk ~45.8 MB (model.safetensors)

๐Ÿ—๏ธ Model Architecture Details

Parameter Value Notes
Architecture LLaMA-style Decoder RoPE + SwiGLU + RMSNorm
Hidden Size (d_model) 320 Vector dimension
FFN Intermediate Size 896 8/3 ร— d_model rounded to multiple of 64
Layers (n_layers) 7 Transformer blocks
Attention Heads (n_heads) 5 Multi-Head Self Attention
Head Dimension 64 d_model / n_heads
Context Length (max_seq_len) 512 tokens Sequence window
Vocabulary Size 4,000 SentencePiece Unigram (Devanagari optimized)
Weight Tying Enabled Token embeddings & output projection share weights
Precision float32 Weights stored in native FP32 safetensors

๐Ÿš€ Quick Start & Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

# Load tokenizer and model directly from Hugging Face
tokenizer = AutoTokenizer.from_pretrained("SmallScale/Simple-Stories-Hindi-10M", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("SmallScale/Simple-Stories-Hindi-10M", trust_remote_code=True)

if torch.cuda.is_available():
    model = model.to("cuda")

# Prompt input
prompt = "เคเค• เคธเคฎเคฏ เค•เฅ€ เคฌเคพเคค เคนเฅˆ"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

# Generate story
outputs = model.generate(
    **inputs,
    max_new_tokens=200,
    do_sample=True,
    top_k=40,
    top_p=0.95,
    temperature=0.8
)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))

๐Ÿ“ Sample Generated Stories

Prompt: เคเค• เคธเคฎเคฏ เค•เฅ€ เคฌเคพเคค เคนเฅˆ

เคเค• เคธเคฎเคฏ เค•เฅ€ เคฌเคพเคค เคนเฅˆ, เค”เคฐ เคฎเฅˆเค‚ เค›เคพเคฏเคพ เคธเฅ‡ เคฆเฅ‡เค–เคคเคพ เคนเฅ‚เค‚เฅค เคฎเฅ‡เคฐเฅ‡ เคฆเฅ‹ เคฒเฅ‹เค—, เคœเฅ€เคจ เค”เคฐ เคธเฅˆเคฎเฅเค…เคฒ เคนเฅˆเค‚, เคœเฅ‹ เคเค• เคญเคตเฅเคฏ เคฏเคพเคคเฅเคฐเคพ เคชเคฐ เคœเคพ เคฐเคนเฅ‡ เคนเฅˆเค‚เฅค เคตเฅ‡ เคเค• เคนเฅ€ เคธเฅเคฅเคพเคจ เคชเคฐ เคฐเคนเคคเฅ‡ เคนเฅˆเค‚, เคฒเฅ‡เค•เคฟเคจ เคตเฅ‡ เคฆเฅ‹เคจเฅ‹เค‚ เค…เคชเคจเฅ€-เค…เคชเคจเฅ€ เค•เคนเคพเคจเคฟเคฏเคพเค เคšเคพเคนเคคเฅ‡ เคนเฅˆเค‚...


๐Ÿ”— Related Resources


๐Ÿ“„ License

MIT License

Downloads last month
18
Safetensors
Model size
11.5M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for SmallScale/Simple-Stories-Hindi-10M

Quantizations
1 model

Dataset used to train SmallScale/Simple-Stories-Hindi-10M