11-47 commited on
Commit
eaa45c0
·
verified ·
1 Parent(s): c206e33

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +75 -0
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Here is the full `README.md` – copy and paste directly into your Hugging Face dataset repo:
2
+ ---
3
+
4
+ ## Data Splits
5
+
6
+ Single split, 25,000 examples. Recommended random split for SFT:
7
+ - train: 23,500
8
+ - validation: 1,500
9
+
10
+ Stratify by `category` if you want balanced accelerator coverage.
11
+
12
+ Category breakdown:
13
+ Total: 20,778 T4 dual / 4,222 TPU v3-8
14
+
15
+ Models covered: Llama-3.1-8B, Mistral-7B-v0.3, Qwen2.5-7B, Gemma-2-9b, Phi-3-medium, Hermes-3, DeepSeek-LLM-7B, Yi-1.5-9B, Flan-T5-XXL, Pythia-2.8B
16
+
17
+ Tasks: SFT, QLoRA 4bit, DPO, ORPO, continued pretraining, classification, embedding training, vision-text finetuning
18
+
19
+ ---
20
+
21
+ ## Usage
22
+
23
+ ### Load with datasets
24
+ ### SFT training – QLoRA on Kaggle T4x2
25
+ Training a 7B base on this dataset with QLoRA r=64 fits comfortably in a single Kaggle T4 (16GB). For faster training, use both T4s with Accelerate: `accelerate launch --multi_gpu --num_processes=2 train.py`
26
+
27
+ ### Prompt format
28
+
29
+ Alpaca-style:
30
+ ---
31
+
32
+ ## Proven formulas encoded in every example
33
+
34
+ **T4 dual bring-up**
35
+ **Unsloth QLoRA**
36
+ **TPU v3-8**
37
+ **Kaggle API agentic**
38
+ **Memory – 7B QLoRA on T4**
39
+ `∼4.4GB base (NF4) + 0.2GB adapters + 2GB activations ≈ 6.7GB → fits 1x T4`
40
+
41
+ **Effective batch**
42
+ `global_batch = per_device_batch × grad_accum_steps × world_size`
43
+
44
+ ---
45
+
46
+ ## Limitations
47
+
48
+ - Synthetic expert-curated. All 25,000 examples are programmatically generated from 100+ competition-proven templates, grounded in public Kaggle docs / kernels (Dec 2025 – May 2026). Not scraped from private notebooks. No PII, no secrets.
49
+ - Kaggle-specific. Paths, quotas, NCCL env vars, and API commands target Kaggle Notebooks (July 2026). Adapt for other platforms.
50
+ - Code is illustrative. Always review before running in production. Check `transformers`, `peft`, `trl`, `unsloth`, `torch_xla` versions – Kaggle images change.
51
+ - English only.
52
+
53
+ Intended use: SFT / instruction-tuning LLMs to generate correct Kaggle T4 / TPU training code, debug DDP/TPU jobs, and drive the Kaggle API CLI agentically.
54
+
55
+ ---
56
+
57
+ ## Citation
58
+ ---
59
+
60
+ ## License
61
+
62
+ Apache-2.0 – commercial use allowed.
63
+
64
+ ---
65
+
66
+ ## Acknowledgments
67
+
68
+ Built from public sources:
69
+ - Kaggle Docs – TPUs / GPUs – https://www.kaggle.com/docs/tpu
70
+ - PyTorch Distributed Data Parallel – Kaggle T4x2 guide – LearnOpenCV
71
+ - Unsloth – Fine-Tuning Qwen VL on a Single T4 – Towards AI, May 2026
72
+ - Kaggle API – `kaggle kernels push --accelerator NvidiaTeslaT4` – https://github.com/Kaggle/kaggle-api
73
+ - TRL – SFTTrainer with UnslothVisionDataCollator
74
+
75
+ Thanks to the Kaggle community for publishing competition kernels that made the ground-truth formulas possible.