td-toolkit / hugging /td_lang /engine /__init__.py
td-builder's picture
Upload 127 files
8b4149e verified
Raw
History Blame Contribute Delete
1.11 kB
"""
TD Lang Engine β€” the merge/heal/validate runtime (formerly td_fuse).
All model merging, transport, healing, and validation logic lives here.
td_lang compiles .td files into Python that imports from this engine.
Architecture:
td_lang/engine/
β”œβ”€β”€ __init__.py ← This file
β”œβ”€β”€ config.py ← Model configs, merge order, hyperparameters
β”œβ”€β”€ canary.py ← Canary injection + testing ("brain surgery")
β”œβ”€β”€ transport.py ← Wrapper around official T&M code
β”œβ”€β”€ techniques.py ← Advanced techniques (Theseus, ARM, OTMF, RAM, Mergeability)
β”œβ”€β”€ merge.py ← Sequential merge orchestrator
β”œβ”€β”€ validate.py ← Post-merge validation (canary, perplexity, benchmarks)
β”œβ”€β”€ heal.py ← QLoRA healing fine-tune via Unsloth
└── run.py ← Standalone entry point (optional)
Usage (via td_lang):
python -m td_lang run td_start.td
python -m td_lang run demo_merge.td
"""
__version__ = "0.2.0"
__author__ = "Milan (TD Project)"