Downloads · 30 days
7
18% of all-time downloads
ovinduG/gemma4-sinhala-cpt
gemma4-sinhala-cpt is a machine learning model from ovinduG. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gemma.
Continually pre-trained variant of google/gemma-4-E4B adapted for Sinhala using a Grapheme Pair Encoding (GPE) tokenizer extension and LoRA-based continual pre-training on the MADLADCulturaXcleaned Sinhala corpus.
Downloads · 30 days
7
18% of all-time downloads
All-time downloads
40
Public
Parameters
7.5B
15.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15 GB · 100%
From the Hugging Face model README
Continually pre-trained variant of google/gemma-4-E4B adapted for Sinhala using
a Grapheme Pair Encoding (GPE) tokenizer extension and LoRA-based continual
pre-training on the MADLAD_CulturaX_cleaned Sinhala corpus.
This model is part of ongoing research on knowledge-graph-driven hybrid RAG for Sinhala institutional information retrieval (university admissions domain).
Sinhala is an abugida script where standard byte/codepoint-level BPE tokenization fragments grapheme clusters (virama-bound consonant conjuncts) into linguistically meaningless pieces. This model extends Gemma-4-E4B's tokenizer using Grapheme Pair Encoding (GPE), following Velayuthan & Sarveswaran (2024), implemented via the SLTK library.
polyglots/MADLAD_CulturaX_cleaned| Metric | Base Gemma-4-E4B | GPE only (pre-CPT) | GPE + CPT (this model) |
|---|---|---|---|
| Perplexity (held-out) | 8.77 | 433478.11 | 20.88 |
| Token fertility | 3.239x | — | 2.835x |
Held-out evaluation set: 500 Sinhala sentences from MADLAD_CulturaX_cleaned, excluded from the CPT training range.
Embedding drift: mean cosine similarity between new-token embeddings before and after CPT: 1.0 — confirms the new GPE embeddings moved substantially during training rather than remaining at their mean-initialization starting point.
Note: GPE-only perplexity is expected to be very high — this measures the model immediately after vocabulary extension and embedding resize, before any training has occurred on the new tokens. CPT recovers this to a usable range, which is the primary validation of the continual pre-training stage.
This is a continually pre-trained base model intended as a starting point for supervised fine-tuning (SFT) on downstream Sinhala NLP tasks. It has not been instruction-tuned. For the SFT-adapted version specialized for Subject-Predicate-Object (SPO) triple extraction, see the related repository.
If you use this model, please cite the GPE tokenization approach:
Velayuthan, M., & Sarveswaran, K. (2024). Egalitarian Language Representation in Language Models: It All Begins with Tokenizers.