Example Gallery¶
A fast index into the newer end-to-end examples: one entry per script, what
pattern it demonstrates, and the concrete receipt it prints and asserts –
a real measured number or invariant, not a restatement of the description. Each
example is paired with a smoke test under mixle/tests/ that pins the same
receipt programmatically.
For the full, general example inventory (distribution families, HMMs, enumeration, engines, and so on) see Examples. This page covers the newer applied adapter and multimodal-pretraining workflows, each landing as its own example.
Adapter and Multimodal Pretraining Patterns¶
Example |
Pattern |
Receipt |
|---|---|---|
|
A real HuggingFace checkpoint ( |
Base checkpoint weights are bitwise unchanged after fitting (drift
|
|
LLaVA-style stage-1 pretraining on synthetic volumes: a frozen 3-D
|
All 11 frozen backbone tensors are bitwise unchanged
( |
Running the Examples¶
python examples/peft_lora_grad_leaf.py
python examples/multimodal_stage1_demo.py
peft_lora_grad_leaf.py additionally needs pip install "mixle[torch]" transformers peft
(example-only dependencies, not a package extra, since GradLeaf has no
opinion on what module it is handed). multimodal_stage1_demo.py needs only
mixle[torch].
Every receipt above is pinned by a paired smoke test:
mixle/tests/peft_lora_grad_leaf_smoke_test.py and
mixle/tests/multimodal_stage1_demo_smoke_test.py.