Resumable Kaggle evaluations, sequential SliceGPT LoRA and exported Modal progress
Browse files- bundle_manifest.json +1 -1
- finetune_runner.py +4 -2
- kaggle_slicegpt_lora.ipynb +3 -1
- portable_eval.zip +2 -2
bundle_manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"run_id": "run-9fc515e82f313fab",
|
| 3 |
-
"zip_sha256": "
|
| 4 |
"available_checkpoints": 27,
|
| 5 |
"shared_config": "Pruning-LLMs/diffusion_eval_and_vis/config.py",
|
| 6 |
"smoke_tests": "All three methods on tiny LLaDA/Dream: likelihood, generation, CPU/disk and CUDA fp16 offload, reload agreement; task sharding and merging"
|
|
|
|
| 1 |
{
|
| 2 |
"run_id": "run-9fc515e82f313fab",
|
| 3 |
+
"zip_sha256": "42745741277f2faa095934a94f10580fde89b18b6f59c11dcc8e809f60c65972",
|
| 4 |
"available_checkpoints": 27,
|
| 5 |
"shared_config": "Pruning-LLMs/diffusion_eval_and_vis/config.py",
|
| 6 |
"smoke_tests": "All three methods on tiny LLaDA/Dream: likelihood, generation, CPU/disk and CUDA fp16 offload, reload agreement; task sharding and merging"
|
finetune_runner.py
CHANGED
|
@@ -49,11 +49,13 @@ def main():
|
|
| 49 |
p.add_argument("--upload", action="store_true", help="Save/reload/verify, then upload publicly with HF_TOKEN")
|
| 50 |
p.add_argument("--namespace", default="vanshnawander")
|
| 51 |
args = p.parse_args()
|
|
|
|
|
|
|
| 52 |
cfg = StructuredPruningConfig()
|
| 53 |
cfg.eval.dtype, cfg.eval.device = args.dtype, args.device
|
| 54 |
if args.show_config:
|
| 55 |
print(json.dumps({"finetune_config": asdict(cfg.finetune), "eval_config": asdict(cfg.eval),
|
| 56 |
-
"dataset_revisions": DATASET_REVISIONS,
|
| 57 |
"effective_dataset_order": cfg.finetune.datasets_for_model(args.repo)}, indent=2))
|
| 58 |
return
|
| 59 |
import torch
|
|
@@ -91,7 +93,7 @@ def main():
|
|
| 91 |
print(json.dumps(uploaded, indent=2))
|
| 92 |
return
|
| 93 |
result = training_core.train_one(asdict(cfg), identifier, job, upload, DATASET_REVISIONS,
|
| 94 |
-
lambda: None, deadline=time.monotonic()+args.time_budget_seconds)
|
| 95 |
print(json.dumps(result, indent=2), flush=True)
|
| 96 |
if args.upload and not result.get("continued"):
|
| 97 |
if not os.environ.get("HF_TOKEN"):
|
|
|
|
| 49 |
p.add_argument("--upload", action="store_true", help="Save/reload/verify, then upload publicly with HF_TOKEN")
|
| 50 |
p.add_argument("--namespace", default="vanshnawander")
|
| 51 |
args = p.parse_args()
|
| 52 |
+
from diffusion_eval_and_vis.config import SLICE_TRAINING_EXECUTION
|
| 53 |
+
execution = dict(SLICE_TRAINING_EXECUTION)
|
| 54 |
cfg = StructuredPruningConfig()
|
| 55 |
cfg.eval.dtype, cfg.eval.device = args.dtype, args.device
|
| 56 |
if args.show_config:
|
| 57 |
print(json.dumps({"finetune_config": asdict(cfg.finetune), "eval_config": asdict(cfg.eval),
|
| 58 |
+
"dataset_revisions": DATASET_REVISIONS, "execution": execution,
|
| 59 |
"effective_dataset_order": cfg.finetune.datasets_for_model(args.repo)}, indent=2))
|
| 60 |
return
|
| 61 |
import torch
|
|
|
|
| 93 |
print(json.dumps(uploaded, indent=2))
|
| 94 |
return
|
| 95 |
result = training_core.train_one(asdict(cfg), identifier, job, upload, DATASET_REVISIONS,
|
| 96 |
+
lambda: None, deadline=time.monotonic()+args.time_budget_seconds, execution=execution)
|
| 97 |
print(json.dumps(result, indent=2), flush=True)
|
| 98 |
if args.upload and not result.get("continued"):
|
| 99 |
if not os.environ.get("HF_TOKEN"):
|
kaggle_slicegpt_lora.ipynb
CHANGED
|
@@ -19,7 +19,9 @@
|
|
| 19 |
"# Sequential SliceGPT LoRA on Kaggle\n",
|
| 20 |
"This is the same masked-diffusion LoRA procedure as Modal training: one adapter and pinned training datasets. Base models use WikiText-2 \u2192 C4 (2048 optimizer steps). Instruct models use WikiText-2 \u2192 C4 \u2192 Alpaca (3072 steps). All use rank 8/alpha 32, 4096 examples per stage, 2048 tokens and accumulation 4. The setup cell prints the effective dataset order and full shared configuration.\n",
|
| 21 |
"\n",
|
| 22 |
-
"Enable Internet and GPU. On T4 choose both GPUs; the trainer requires all weights on GPUs, with no CPU/disk training offload. FP16 is an explicit precision change; BF16 is available on supporting GPUs. Hyperparameters stay unchanged. Every 50 steps and stage boundary saves optimizer, adapter and RNG state. A session time budget saves and exits so another session can continue.\n"
|
|
|
|
|
|
|
| 23 |
],
|
| 24 |
"id": "cell-0"
|
| 25 |
},
|
|
|
|
| 19 |
"# Sequential SliceGPT LoRA on Kaggle\n",
|
| 20 |
"This is the same masked-diffusion LoRA procedure as Modal training: one adapter and pinned training datasets. Base models use WikiText-2 \u2192 C4 (2048 optimizer steps). Instruct models use WikiText-2 \u2192 C4 \u2192 Alpaca (3072 steps). All use rank 8/alpha 32, 4096 examples per stage, 2048 tokens and accumulation 4. The setup cell prints the effective dataset order and full shared configuration.\n",
|
| 21 |
"\n",
|
| 22 |
+
"Enable Internet and GPU. On T4 choose both GPUs; the trainer requires all weights on GPUs, with no CPU/disk training offload. FP16 is an explicit precision change; BF16 is available on supporting GPUs. Hyperparameters stay unchanged. Every 50 steps and stage boundary saves optimizer, adapter and RNG state. A session time budget saves and exits so another session can continue.\n",
|
| 23 |
+
"\n",
|
| 24 |
+
"Execution now preloads the tokenized stage datasets onto GPU, tests physical microbatches 4/2/1, and keeps the fastest fit. The effective optimizer batch remains four. CUDA BF16 execution uses autocast and fused AdamW. Actual microbatch, timing and GPU memory are logged; the config cell prints execution settings. Changing GPU/microbatch can change floating-point results and random-number grouping, while sample counts, learning-rate schedule and optimizer cursor are preserved.\n"
|
| 25 |
],
|
| 26 |
"id": "cell-0"
|
| 27 |
},
|
portable_eval.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42745741277f2faa095934a94f10580fde89b18b6f59c11dcc8e809f60c65972
|
| 3 |
+
size 71482
|