Datasets:
Tasks:
Text Generation
Languages:
English
Size:
n<1K
Tags:
code
notebooks
training-scripts
dataset:Nanthasit/sakthai-kaggle-notebooks
license-mit
dataset-card
License:
Update dataset card with size info, data fields table, list-files example
Browse files
README.md
CHANGED
|
@@ -35,7 +35,8 @@ datasets:
|
|
| 35 |
|
| 36 |
| Attribute | Value |
|
| 37 |
|-----------|-------|
|
| 38 |
-
| Files | **16** |
|
|
|
|
| 39 |
| Created | 2026-07-06 |
|
| 40 |
| Last updated | 2026-07-30 |
|
| 41 |
| Downloads | **184** (as of last check) |
|
|
@@ -43,48 +44,55 @@ datasets:
|
|
| 43 |
|
| 44 |
---
|
| 45 |
|
| 46 |
-
## Data Fields —
|
| 47 |
|
| 48 |
-
This dataset is a **collection of Python scripts and Jupyter notebooks**, not a tabular dataset. Each file serves a specific role in the SakThai model lifecycle:
|
| 49 |
|
| 50 |
### Training Notebooks
|
| 51 |
|
| 52 |
-
| File | Purpose |
|
| 53 |
-
|------|---------|
|
| 54 |
-
| `sakthai-engine.ipynb` | Training notebook for the 1.5B model (Qwen2.5-1.5B-Instruct base, LoRA on combined-v6) |
|
| 55 |
-
| `sakthai-7b-engine.ipynb` | Training notebook for the 7B model (Qwen2.5-7B-Instruct base, LoRA on combined-v6) |
|
| 56 |
|
| 57 |
### Job Scripts (0.5B)
|
| 58 |
|
| 59 |
-
| File | Purpose |
|
| 60 |
-
|------|---------|
|
| 61 |
-
| `train-sakthai-0.5b-v2.py` | Improved 0.5B fine-tune (MLP LoRA targets, r16/rsLoRA, completion-only loss, v6 + irrelevance) |
|
| 62 |
-
| `job-0.5b-v7.py` | 0.5B config-upgrade fine-tune on **combined-v7**, scored on sakthai-bench-v1. Uses `report_to="none"` and `save_strategy="no"` to avoid Trackio serialisation crashes |
|
| 63 |
-
| `job-0.5b-hfjobs.py` | 0.5B config-upgrade fine-tune with manual ChatML render + BFCL before/after eval. Designed for HF Jobs |
|
| 64 |
-
| `job-0.5b-exp.py` | 0.5B improvement experiments. Two modes via `SAK_MODE`: **lora-masked** (LoRA + prompt masking) and **full-masked** (full fine-tune + prompt masking) |
|
| 65 |
-
| `job-0.5b-nanguard.py` | Guard experiments — isolation of prompt masking vs full fine-tune (same structure as `job-0.5b-exp.py`) |
|
| 66 |
-
| `job-0.5b-nanhunt.py` | NanHunt experiments — further ablation studies on prompt masking variants |
|
| 67 |
|
| 68 |
### Training Scripts (1.5B, 7B)
|
| 69 |
|
| 70 |
-
| File | Purpose |
|
| 71 |
-
|------|---------|
|
| 72 |
-
| `scripts/train-sakthai-1.5b-v2.py` | 1.5B v2 training script — improved LoRA config and data pipeline |
|
| 73 |
-
| `scripts/sakthai-7b-post-train.py` | LoRA merge → GGUF convert → upload to HF Hub |
|
| 74 |
|
| 75 |
### Evaluation & Validation
|
| 76 |
|
| 77 |
-
| File | Purpose |
|
| 78 |
-
|------|---------|
|
| 79 |
-
| `eval-bfcl-0.5b.py` | BFCL-style eval on the held-out `test` split (simple / parallel / irrelevance) |
|
| 80 |
-
| `validate.py` | Validate every non-GPU part of `job-0.5b-v7.py` locally: renderer sanity, bench-exclusion filter, oracle-pass scorer, token-length distribution vs MAX_LEN |
|
| 81 |
-
| `validate_exp.py` | Validate prompt/completion explode locally: row counts, assistant markers, gold tool call recovery, no bench row leak into training |
|
| 82 |
|
| 83 |
### Deployment
|
| 84 |
|
| 85 |
-
| File | Purpose |
|
| 86 |
-
|------|---------|
|
| 87 |
-
| `deploy-endpoint.py` | Deploy fine-tuned models to Hugging Face Inference Endpoints |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
---
|
| 90 |
|
|
@@ -104,9 +112,11 @@ This dataset is a **collection of Python scripts and Jupyter notebooks**, not a
|
|
| 104 |
|
| 105 |
3. **Validation scripts** — Two `validate*.py` scripts were added to prove every non-GPU component locally before launching paid jobs, catching data pipeline bugs early.
|
| 106 |
|
|
|
|
|
|
|
| 107 |
**Filtering criteria.** Scripts were included if they:
|
| 108 |
- Directly contribute to training, evaluating, validating, or deploying a SakThai model
|
| 109 |
-
- Are self-contained (PEP 723 inline script metadata for dependencies)
|
| 110 |
- Are licensed Apache 2.0
|
| 111 |
- Are functionally distinct (duplicate-mode scripts like `nanguard`/`nanhunt` are included because they capture specific run configurations for reproducibility)
|
| 112 |
|
|
@@ -124,6 +134,18 @@ ds = load_dataset("Nanthasit/sakthai-kaggle-notebooks", split="train")
|
|
| 124 |
print(ds)
|
| 125 |
```
|
| 126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
### Download individual scripts
|
| 128 |
|
| 129 |
```python
|
|
|
|
| 35 |
|
| 36 |
| Attribute | Value |
|
| 37 |
|-----------|-------|
|
| 38 |
+
| Files | **16** (15 files + 1 subdirectory) |
|
| 39 |
+
| Total size | **~141 KB** |
|
| 40 |
| Created | 2026-07-06 |
|
| 41 |
| Last updated | 2026-07-30 |
|
| 42 |
| Downloads | **184** (as of last check) |
|
|
|
|
| 44 |
|
| 45 |
---
|
| 46 |
|
| 47 |
+
## Data Fields — All Files
|
| 48 |
|
| 49 |
+
This dataset is a **collection of Python scripts and Jupyter notebooks**, not a tabular dataset. Each file serves a specific role in the SakThai model lifecycle. Below is the complete file listing:
|
| 50 |
|
| 51 |
### Training Notebooks
|
| 52 |
|
| 53 |
+
| File | Size | Purpose |
|
| 54 |
+
|------|------|---------|
|
| 55 |
+
| `sakthai-engine.ipynb` | 10.5 KB | Training notebook for the 1.5B model (Qwen2.5-1.5B-Instruct base, LoRA on combined-v6) |
|
| 56 |
+
| `sakthai-7b-engine.ipynb` | 24.0 KB | Training notebook for the 7B model (Qwen2.5-7B-Instruct base, LoRA on combined-v6) |
|
| 57 |
|
| 58 |
### Job Scripts (0.5B)
|
| 59 |
|
| 60 |
+
| File | Size | Purpose |
|
| 61 |
+
|------|------|---------|
|
| 62 |
+
| `train-sakthai-0.5b-v2.py` | 6.8 KB | Improved 0.5B fine-tune (MLP LoRA targets, r16/rsLoRA, completion-only loss, v6 + irrelevance) |
|
| 63 |
+
| `job-0.5b-v7.py` | 10.2 KB | 0.5B config-upgrade fine-tune on **combined-v7**, scored on sakthai-bench-v1. Uses `report_to="none"` and `save_strategy="no"` to avoid Trackio serialisation crashes |
|
| 64 |
+
| `job-0.5b-hfjobs.py` | 7.8 KB | 0.5B config-upgrade fine-tune with manual ChatML render + BFCL before/after eval. Designed for HF Jobs |
|
| 65 |
+
| `job-0.5b-exp.py` | 12.9 KB | 0.5B improvement experiments. Two modes via `SAK_MODE`: **lora-masked** (LoRA + prompt masking) and **full-masked** (full fine-tune + prompt masking) |
|
| 66 |
+
| `job-0.5b-nanguard.py` | 13.2 KB | Guard experiments — isolation of prompt masking vs full fine-tune (same structure as `job-0.5b-exp.py`) |
|
| 67 |
+
| `job-0.5b-nanhunt.py` | 11.8 KB | NanHunt experiments — further ablation studies on prompt masking variants |
|
| 68 |
|
| 69 |
### Training Scripts (1.5B, 7B)
|
| 70 |
|
| 71 |
+
| File | Size | Purpose |
|
| 72 |
+
|------|------|---------|
|
| 73 |
+
| `scripts/train-sakthai-1.5b-v2.py` | 4.5 KB | 1.5B v2 training script — improved LoRA config and data pipeline |
|
| 74 |
+
| `scripts/sakthai-7b-post-train.py` | 13.7 KB | LoRA merge → GGUF convert → upload to HF Hub |
|
| 75 |
|
| 76 |
### Evaluation & Validation
|
| 77 |
|
| 78 |
+
| File | Size | Purpose |
|
| 79 |
+
|------|------|---------|
|
| 80 |
+
| `eval-bfcl-0.5b.py` | 3.9 KB | BFCL-style eval on the held-out `test` split (simple / parallel / irrelevance) |
|
| 81 |
+
| `validate.py` | 4.9 KB | Validate every non-GPU part of `job-0.5b-v7.py` locally: renderer sanity, bench-exclusion filter, oracle-pass scorer, token-length distribution vs MAX_LEN |
|
| 82 |
+
| `validate_exp.py` | 3.7 KB | Validate prompt/completion explode locally: row counts, assistant markers, gold tool call recovery, no bench row leak into training |
|
| 83 |
|
| 84 |
### Deployment
|
| 85 |
|
| 86 |
+
| File | Size | Purpose |
|
| 87 |
+
|------|------|---------|
|
| 88 |
+
| `deploy-endpoint.py` | 3.1 KB | Deploy fine-tuned models to Hugging Face Inference Endpoints |
|
| 89 |
+
|
| 90 |
+
### Repository Infrastructure
|
| 91 |
+
|
| 92 |
+
| File | Size | Purpose |
|
| 93 |
+
|------|------|---------|
|
| 94 |
+
| `.gitattributes` | 2.4 KB | Git LFS configuration for dataset storage |
|
| 95 |
+
| `README.md` | 7.0 KB | This dataset card — documentation and usage guide |
|
| 96 |
|
| 97 |
---
|
| 98 |
|
|
|
|
| 112 |
|
| 113 |
3. **Validation scripts** — Two `validate*.py` scripts were added to prove every non-GPU component locally before launching paid jobs, catching data pipeline bugs early.
|
| 114 |
|
| 115 |
+
4. **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.
|
| 116 |
+
|
| 117 |
**Filtering criteria.** Scripts were included if they:
|
| 118 |
- Directly contribute to training, evaluating, validating, or deploying a SakThai model
|
| 119 |
+
- Are self-contained (PEP 723 inline script metadata for dependencies where applicable)
|
| 120 |
- Are licensed Apache 2.0
|
| 121 |
- Are functionally distinct (duplicate-mode scripts like `nanguard`/`nanhunt` are included because they capture specific run configurations for reproducibility)
|
| 122 |
|
|
|
|
| 134 |
print(ds)
|
| 135 |
```
|
| 136 |
|
| 137 |
+
### List available files
|
| 138 |
+
|
| 139 |
+
```python
|
| 140 |
+
from datasets import get_dataset_split_names
|
| 141 |
+
from huggingface_hub import HfApi
|
| 142 |
+
|
| 143 |
+
api = HfApi()
|
| 144 |
+
files = api.list_repo_files("Nanthasit/sakthai-kaggle-notebooks", repo_type="dataset")
|
| 145 |
+
for f in sorted(files):
|
| 146 |
+
print(f)
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
### Download individual scripts
|
| 150 |
|
| 151 |
```python
|