75M / local workstation
RTX 4070 SUPER
Nominal GPU memory: 12 GB.
Ryzen 7 5700X · 32 GB system RAM.
8 × 8 × 1,024microbatch × accumulation steps × context
65,536 positions / update
Learning rate 5 × 10⁻⁴
Harits Raharjo Setiono / Gunadarma / 2026
For my undergraduate thesis, I implemented and trained a 75M baseline and a 750M decoder-only Transformer from scratch on Indonesian text, using Python, PyTorch and Hugging Face.
Final training loss was 5.62 for the baseline and 5.58 for the larger model. The recorded continuations showed no consistent improvement; the runs also differed in training exposure and hardware.
01 / LANGUAGE
Byte-level byte-pair encoding (BPE) converts input text into vocabulary IDs, which select the model’s learned token embeddings.
Both models used the oscar_all_uncased subset of Indo4B-hf, streamed with a 50,000-example shuffle buffer. They shared a byte-level BPE tokenizer and a context length of 1,024 positions.
The training pipeline applied no additional manual cleaning, deduplication or language filtering.
Thesis Figure 4.2 documents the tokenization of “mengumumkan pemberdayaan masyarakat desa”.
The tokenizer divides “mengumumkan” into “meng” and “umumkan”, yielding five tokens for the four-word input. The final three token strings include a leading space.
The corresponding IDs are 1688, 5121, 11036, 851 and 1367. These integers identify entries in the shared vocabulary of 32,000 tokens.
Each ID selects a learned embedding vector. Adding a learned positional embedding gives the decoder a representation of the token and its sequence position.
Thesis Figure 4.2 documents the tokenization of “mengumumkan pemberdayaan masyarakat desa”.
The tokenizer divides “mengumumkan” into “meng” and “umumkan”, yielding five tokens for the four-word input. The final three token strings include a leading space.
The corresponding IDs are 1688, 5121, 11036, 851 and 1367. These integers identify entries in the shared vocabulary of 32,000 tokens.
Each ID selects a learned embedding vector. Adding a learned positional embedding gives the decoder a representation of the token and its sequence position.
02 / THE DECODER
The GPT-2-style decoder combines causal self-attention with a position-wise feed-forward network and residual connections.
Token and positional embeddings define a vector at each sequence position. In this pre-normalized architecture, layer normalization precedes each attention and feed-forward sublayer.
Multi-head self-attention computes query, key and value projections of the input representations. A causal mask restricts each query to its own position and earlier positions.
The feed-forward network expands the hidden dimension fourfold, applies GELU and projects back to the original width. It processes each position independently using shared weights.
Each attention and feed-forward sublayer has a residual connection that adds its input to its output. This provides a direct path through the decoder blocks.
After 12 or 36 decoder blocks, final layer normalization and a tied output head produce scores for 32,000 vocabulary entries. Sampling from the resulting distribution selects the next token.
Causal-mask inspection
A query can attend to its own position and preceding keys. Later positions are masked.
KEY POSITIONS → / QUERY POSITIONS ↓
Thesis §4.2 and appendix implementation · GPT2LMHeadModel. Learned positional embeddings, pre-normalized sublayers, causal attention and GELU feed-forward layers.
03 / CAPACITY
The 750M configuration increased decoder depth from 12 to 36 blocks and hidden width from 612 to 1,280 dimensions.
| Configuration | 75M baseline | 750M main |
|---|---|---|
| Decoder layers | 12 | 36 |
| Hidden width | 612 | 1,280 |
| Attention heads | 12 | 16 |
| Feed-forward width | 2,448 | 5,120 |
| Vocabulary / context | 32,000 / 1,024 positions | |
| Approx. component count | 74.145024M | 750.059520M |
The reported component counts are approximately 74.145024M and 750.059520M parameters. They exclude biases and layer-normalization parameters, so they differ from exact loaded-model totals.
Thesis Tables 4.5–4.6 · defense slide 6.
04 / TRAINING CONSTRAINTS
The two runs used different hardware, batch sizes and learning rates. Their durations and cumulative training exposure also differed.
75M / local workstation
Nominal GPU memory: 12 GB.
Ryzen 7 5700X · 32 GB system RAM.
8 × 8 × 1,024microbatch × accumulation steps × context
65,536 positions / update
Learning rate 5 × 10⁻⁴
750M / academic allocation
A single 20 GB GPU allocation at UG AI CoE.
1 × 32 × 1,024microbatch × accumulation steps × context
32,768 positions / update
Learning rate 3 × 10⁻⁴
349M / 1.81B
Reported, including padding.
Total cannot be reconstructed
Padding and resumed counters limit accounting.
Not established
Cumulative exposure does not identify distinct data.
GPU hours are reported for different devices and therefore do not provide a hardware-normalized compute comparison. The 750M run used gradient checkpointing and a smaller microbatch to accommodate memory constraints.
Training used AdamW with FP16 through Accelerate, a cosine learning-rate schedule, 200 warm-up steps, weight decay of 0.1 and gradient norm clipping at 1.0. Hyperparameters were not independently tuned to equalize the runs.
Reported wall-clock durations were 83.8 h and 195.7 h, including idle time between sessions. The local run reports 12.8 GB VRAM against a nominal capacity of 12 GB; the units and measurement provenance remain unresolved.
Transformers 4.38.2 · Datasets 2.18.0 · Accelerate 0.28 · Tokenizers 0.15.2.
Thesis Tables 4.8–4.9, 4.13 and 4.17 · PDF pp. 90, 97–98.
05 / TRAINING EVIDENCE
The milestone summaries show how training loss and perplexity changed over optimizer steps.
The baseline has five recorded milestones and ends at step 5,331 with a training loss of 5.62. The common step axis shows the smaller number of optimizer updates.
The larger model has eight recorded milestones through step 55,343, where training loss reaches 5.58. Its reported training-position exposure was approximately 5.2 times that of the baseline.
Final training losses differ by 0.04. The corresponding training perplexities are approximately 275 and 265. These measures describe fit to the training objective and do not evaluate factual accuracy.
Detail / same step axis
The expanded loss scale compares the final values of 5.62 and 5.58. It includes only recorded points within 5.4–6.3.
| Model | Step | Loss | Approx. PPL |
|---|---|---|---|
| 75M | 1 | 10.29 | ≈29,300 |
| 75M | 500 | 6.86 | ≈952 |
| 75M | 1,000 | 6.34 | ≈564 |
| 75M | 2,000 | 6.10 | ≈447 |
| 75M | 5,331 | 5.62 | ≈275 |
| 750M | 1 | 9.35 | ≈11,400 |
| 750M | 5,000 | 5.90 | ≈365 |
| 750M | 10,000 | 5.85 | ≈348 |
| 750M | 20,000 | 5.80 | ≈330 |
| 750M | 30,000 | 5.78 | ≈323 |
| 750M | 40,000 | 5.71 | ≈302 |
| 750M | 50,000 | 5.65 | ≈285 |
| 750M | 55,343 | 5.58 | ≈265 |
Thesis Tables 4.10, 4.12–4.13 · PDF pp. 86, 89–90. Raw run notes disagree on intermediate losses; this figure retains the thesis summaries.
06 / HELD-OUT EVALUATION
A supplemental checkpoint record reports perplexity for the 750M model on 1,000 fixed Tempo samples.
Minimum recorded perplexity at step 9,000.
Final recorded checkpoint at step 55,000.
Held-out perplexity declined to 507.1 at step 9,000 and then rose to 725.1 at step 55,000. The record contains no equivalent 75M series, preventing a comparison of generalization between models. It does not identify the cause of the later deterioration.
| Step | Held-out perplexity |
|---|---|
| 3,000 | 656.4 |
| 6,000 | 525.4 |
| 9,000 | 507.1 |
| 21,000 | 543.4 |
| 30,000 | 540.2 |
| 40,000 | 630.3 |
| 50,000 | 704.3 |
| 55,000 | 725.1 |
Supplemental portfolio evidence: held-out CSV · run notes. Distinct from the thesis training milestones.
07 / GENERATED LANGUAGE
The thesis compares first-sentence excerpts from both models for ten prompts.
Prompt 1 / first-sentence excerpts
75M“…proses yang sangat baik untuk meningkatkan kualitas dan kemampuan dalam melakukan kegiatan.”
750M“…proses yang sangat baik.”
Thesis author’s qualitative assessment · 750M: less drift; neither explains photosynthesis.
Prompt 2 / first-sentence excerpts
75M“…memiliki nilai-nilai yang tinggi.”
750M“…memiliki banyak orang.”
Thesis author’s qualitative assessment · 750M: the author’s preference; both generic.
Prompt 3 / first-sentence excerpts
75M“…salah satu tempat wisata yang sangat populer.”
750M“…salah satu tempat yang sangat baik untuk anda.”
Thesis author’s qualitative assessment · 75M: the author’s preference; neither names the capital.
Prompt 4 / first-sentence excerpts
75M“…ada seorang wanita yang tidak tahu bahwa ia memiliki banyak orang.”
750M“…ada seorang yang tidak bisa di dalam waktu.”
Thesis author’s qualitative assessment · 75M: more plausible opening; still weak coherence.
Prompt 5 / first-sentence excerpts
75M“…seekor kucing bernama k.”
750M“…seekor kucing bernama yang tidak ada di dalam rumah.”
Thesis author’s qualitative assessment · 75M: both fail to supply a useful name.
Prompt 6 / first-sentence excerpts
75M“…salah satu jenis penyakit yang bisa anda lakukan.”
750M“…salah satu dari beberapa orang yang memiliki banyak yang tidak bisa anda lakukan.”
Thesis author’s qualitative assessment · 750M: the author’s preference; neither answers correctly.
Prompt 7 / first-sentence excerpts
75M“…tidak ada yang bisa di gunakan untuk membuat wajah.”
750M“…tidak ada yang memiliki banyak orang.”
Thesis author’s qualitative assessment · 750M: the author’s preference; neither explains the phenomenon.
Prompt 8 / first-sentence excerpts
75M“…semakin banyak sekali.”
750M“…semakin banyak orang yang ingin membuat anda tidak bisa mendapatkan harga dari produk ini.”
Thesis author’s qualitative assessment · 75M: the larger model drifts into product language.
Prompt 9 / first-sentence excerpts
75M“…salah satu tempat wisata yang sangat populer…”
750M“…salah satu dari beberapa orang…”
Thesis author’s qualitative assessment · 75M: both continuations are weak; excerpts retain the table’s ellipses.
Prompt 10 / first-sentence excerpts
75M“…tidak ada yang bisa di lakukan.”
750M“…tidak ada yang memiliki banyak orang.”
Thesis author’s qualitative assessment · Tie: neither provides a meaningful explanation.
75M preferred / 750M preferred / tie.
Counts of the author’s qualitative preferences across ten prompts; they do not constitute an accuracy score.
Chapter 4 reports top-p 0.9, temperature 0.8 and a 60-token generation cap; the appendix research preset specifies 80 tokens. The settings used for the excerpt table cannot be resolved from these accounts. A supplementary check of three prompts across four seeds also recorded failures.
Thesis Table 4.14 · PDF pp. 91–93; multi-seed check in §4.4.2.
08 / FINDINGS
The 750M run achieved slightly lower final training loss, without a consistent improvement in the recorded continuations.
The final loss difference was 0.04, with substantially greater reported training exposure and GPU time for the 750M run. In the author’s qualitative assessment, the 75M model was preferred for five prompts, the 750M model for four, and one comparison was tied.
Differences in hardware, learning rate, batch size, optimizer steps and data exposure prevent attribution of these outcomes to parameter count alone.
Similar final training losses.
Unequal exposure and GPU time.
Errors in recorded continuations.
Matched-budget scaling.
Comparable held-out evaluation.
Broader Indonesian benchmarks.
The principal source is Harits Raharjo Setiono’s 2026 undergraduate thesis at Gunadarma University, supplemented by the defense slides and identified experimental records. Figure and table references follow the thesis captions; PDF page numbers include front matter.
The complete thesis and defense slides are retained privately. · Editable Inscribe project · Self-contained story