The exact training notebooks, job scripts, and deploy scripts used to build the SakThai family —
LoRA fine-tune → GGUF conversion → HF publish, all on free Kaggle GPUs.
Part of the House of Sak.
This dataset is a collection of Python scripts and Jupyter notebooks, not a tabular dataset. Each file is a self-contained artifact with the following attributes:
Field
Type
Description
filename
string
File name (e.g., job-0.5b-v7.py)
path
string
Full path within the repo (e.g., scripts/train-sakthai-1.5b-v2.py)
size
integer
File size in KB
type
string
Category: training-notebook, training-script, eval-script, validation-script, deployment-script, infra
model_target
string
Target model size: 0.5B, 1.5B, 7B, or all
purpose
string
One-sentence description of the file's role in the pipeline
Origin. These notebooks were written from scratch by the SakThai project as part of the iterative model development pipeline. They are not scraped or collected from external sources — each script was authored to solve a specific training, evaluation, or deployment need.
Evolution. The collection grew organically across multiple training cycles:
v6 era (July 2026) — Initial notebooks trained the 1.5B and 7B models on sakthai-combined-v6 via Kaggle's free T4 GPU. These produced the first merged models and established the LoRA → GGUF pipeline.
v7 era (late July 2026) — A new generation of job scripts was written to fine-tune the 0.5B variant on sakthai-combined-v7. These scripts incorporated lessons from earlier failures:
No mid-run Hub pushes (save_strategy="no") — a checkpoint push failure had killed a 2-hour run
Bench-exclusion filtering — every row reserved by sakthai-bench-v1 is excluded from training
Prompt masking — loss computed only on completion tokens, not the system prompt
Validation scripts — Two validate*.py scripts were added to prove every non-GPU component locally before launching paid jobs, catching data pipeline bugs early.
Experimental scripts — job-0.5b-exp.py, job-0.5b-nanguard.py, and job-0.5b-nanhunt.py capture specific run configurations for reproducibility of ablation studies on prompt masking and LoRA strategies.
Filtering criteria. Scripts were included if they:
Directly contribute to training, evaluating, validating, or deploying a SakThai model
Are self-contained (PEP 723 inline script metadata for dependencies where applicable)
Are licensed Apache 2.0
Are functionally distinct (duplicate-mode scripts like nanguard/nanhunt are included because they capture specific run configurations for reproducibility)
Usage
Load with the 🤗 Datasets library
from datasets import load_dataset
# Load the dataset (returns a Dataset with file metadata)
ds = load_dataset("Nanthasit/sakthai-kaggle-notebooks", split="train")
print(ds)
# Dataset({# features: ['filename', 'path', 'size', 'type', 'model_target', 'purpose', 'era', 'dependencies'],# num_rows: 16# })# List all filenames in the collectionfor row in ds:
print(f"{row['filename']:40s}{row['type']:20s}{row['model_target']:6s}{row['era']}")
List all available files via HfApi
from huggingface_hub import HfApi
api = HfApi()
files = api.list_repo_files("Nanthasit/sakthai-kaggle-notebooks", repo_type="dataset")
for f insorted(files):
print(f)
Download a specific script
from huggingface_hub import hf_hub_download
# Download a specific training script
script_path = hf_hub_download(
repo_id="Nanthasit/sakthai-kaggle-notebooks",
repo_type="dataset",
filename="job-0.5b-v7.py"
)
print(f"Downloaded to: {script_path}")
Run a training job (PEP 723 inline-script)
# All job scripts are PEP 723 inline-script compatiblecd /tmp
curl -OL https://huggingface.co/datasets/Nanthasit/sakthai-kaggle-notebooks/raw/main/job-0.5b-v7.py
uv run job-0.5b-v7.py
Open notebooks in Kaggle
curl -OL https://huggingface.co/datasets/Nanthasit/sakthai-kaggle-notebooks/raw/main/sakthai-engine.ipynb
# Then upload to Kaggle via kaggle kernels push