Upload BUILD.md with huggingface_hub
Browse files
BUILD.md
CHANGED
|
@@ -150,3 +150,10 @@ How to graft new modalities onto a pretrained LLM to make an omni-model (what we
|
|
| 150 |
π PRE-EXTRACT confirmed in-loop: frozen vision features encoded ONCE (`enc_vision` under no_grad), reused every step β only the projector runs in the training graph. This IS the portability enabler (train projectors on cached features β fits 6900XT/Kaggle/Colab; no 12GB encoder in the loop).
|
| 151 |
KAGGLE/COLAB for adapters: YES via QLoRA+Unsloth (CUDA recipe). Text/reason/code/agentic LoRA on 8B-in-4bit fits T4-16GB; multimodal adapters use pre-extracted features to skip loading encoders. β οΈ T4=fp16-only (no bf16) β 4-bit QLoRA + fp16 LoRA (Unsloth default; distinct from the 6900XT ROCm fp16-collapse rule).
|
| 152 |
NEXT: sliver curation (wire caption/tag stack + streaming loaders + 3D SLAT pre-extract in curate_slivers.py) β real alignment run across all modalities.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
π PRE-EXTRACT confirmed in-loop: frozen vision features encoded ONCE (`enc_vision` under no_grad), reused every step β only the projector runs in the training graph. This IS the portability enabler (train projectors on cached features β fits 6900XT/Kaggle/Colab; no 12GB encoder in the loop).
|
| 151 |
KAGGLE/COLAB for adapters: YES via QLoRA+Unsloth (CUDA recipe). Text/reason/code/agentic LoRA on 8B-in-4bit fits T4-16GB; multimodal adapters use pre-extracted features to skip loading encoders. β οΈ T4=fp16-only (no bf16) β 4-bit QLoRA + fp16 LoRA (Unsloth default; distinct from the 6900XT ROCm fp16-collapse rule).
|
| 152 |
NEXT: sliver curation (wire caption/tag stack + streaming loaders + 3D SLAT pre-extract in curate_slivers.py) β real alignment run across all modalities.
|
| 153 |
+
|
| 154 |
+
## ββ PORTABLE PRE-EXTRACT + CACHED TRAINING VERIFIED (2026-09-27) β trains with NO encoders ββ
|
| 155 |
+
β
preextract.py: run the 3 frozen encoders ONCE, cache raw features to disk (/work/slivers_cache/<modality>/<id>.pt + index.jsonl). vision (1025,3200)=6.4MB, audio (100,1280)=0.5MB, geom {(300,8)+xyz}=18KB per item. Encoders live only on the big box; the cache travels.
|
| 156 |
+
β
train_cached.py: base LM + projectors ONLY, **NO ENCODERS LOADED** (17.8GB VRAM) β the 6900XT / Kaggle-T4 / Colab path. Trains projectors + new embed rows from the cached features. Grad-safe torch.where splice; per-modality M-RoPE (geom uses cached xyz).
|
| 157 |
+
β
OVERFIT PROOF across ALL 3 modalities at once (8 cached items: 4 vision + 2 audio + 2 geom): loss **10.25 β 0.42 over 250 steps** β `CACHED MULTIMODAL ALIGNMENT OK (no encoders) β loss collapsed`. Mixed-modality is harder than vision-only (60-step run plateaued ~4.1; needs the longer schedule) but collapses cleanly.
|
| 158 |
+
π THIS IS THE RESILIENCE + PORTABILITY BACKBONE: pre-extract on MI300 β train the ~140M projectors from cache on any small card. 4-bit QLoRA of the base drops the 17.8GB further toward T4-16GB. Adapters (text/reason/code/agentic) train the same way. If MI300 dies mid-run, resume from cache + last projector checkpoint on 6900XT/Kaggle/Colab.
|
| 159 |
+
NEXT: real sliver curation β replace synthetic encoder inputs with streamed Tier-A paired items (caption+tag stage), pre-extract at scale, run the real alignment schedule.
|