Instructions to use efratT/wsp-visual-loras with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use efratT/wsp-visual-loras with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.1-T2V-1.3B-Diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("efratT/wsp-visual-loras") prompt = "A man with short gray hair plays a red electric guitar." output = pipe(prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Weight-Space Reading Goes Visual: LoRAs and test adapters
LoRAs of Wan2.1-T2V-1.3B trained on two procedurally generated cartoon puppies whose every detail is known, plus the test adapters used to ask whether an LLM can read what a LoRA learned. Companion to the blog post Weight-Space Reading Goes Visual. No Pixels to Look At: Can an LLM Read a Video Diffusion LoRA? (Efrat Taig, 2026), which builds on Sparks of Weight-Space Programming (Takehi et al., 2026).
Intended use: research on reading and auditing adapter weights. Not a product, and not tuned for generation quality.
Contents
| Folder | What | Files |
|---|---|---|
loras/pupA_rank16/ |
pupA, rank 16; a checkpoint every 100 steps to 3,000, then the continuation to 5,000 | step_000100 ... step_005000 |
loras/pupB_rank16/ |
pupB, the same settings | step_000100 ... step_005000 |
loras/pupA_rank4/, loras/pupA_rank1/ |
pupA at rank 4 and rank 1, identical learning-rate history | every 100 steps to 3,000 |
failed_runs/first_pilot_bugs/ |
the first pilot: logit-normal noise-level sampling and broken text conditioning (no attention mask, padding not zeroed), trigger "pupa", lr 1e-4 constant, 1,100 steps | pupA, pupB |
failed_runs/lr_5e-4/ |
learning rate 5e-4 constant ("burned": extreme colours, broken proportions), bare trigger caption, 2,000 steps | pupA, pupB |
failed_runs/no_class_word/ |
captions "zorvik, , " without the class word, lr 1e-4 cosine; stopped at step 200 of 2,000 | pupA |
test_adapters/noise/ |
never-trained controls in the exact LoRA layout (one global scale, per-layer scale, shuffled entries) | 3 |
test_adapters/damaged/ |
pupA step 3,000: unmodified control; block 6 zeroed; blocks.27.attn1.to_k B x10; Gaussian noise in block 4 | 4 |
test_adapters/scaled/ |
pupA step 3,000 with every B doubled | 1 |
test_adapters/merge/ |
pupA, pupB and pupA + pupB (summed updates), all re-factored by SVD at rank 16 | 3 |
SHA256SUMS lists every file.
Training (the loras/ folders)
- Base: Wan2.1-T2V-1.3B-Diffusers, commit
0fad780a534b6463e45facd96134c9f345acfa5b. - Trainer: finetrainers
684c0dbwith two patches (published in the code repository). - LoRA: rank = alpha (16, 4 or 1), on q / k / v / out of self- and cross-attention in all 30 blocks.
- Optimisation: AdamW, lr 1e-4 with cosine decay, uniform noise-level sampling, seed 42, batch 1.
- Data: 40 clips per puppy, 832 x 480, 81 frames.
- Captions: "a zorvik puppy, , " (pupB: "a quelmar puppy, ..."). They never name a colour or a part.
- 5,000-step runs: continued from 3,000 with a new cosine schedule.
What each LoRA measurably learned (eye colour, badge, cheek spot, side) is in the code repository's
data/truth_cards.md.
Format
safetensors, float32, diffusers / PEFT tensor names (transformer.blocks.<i>.attn1.to_q.lora_A.weight). The trained
LoRAs keep their only metadata, the PEFT lora_config; test adapters carry none.
License
Apache-2.0, matching the base model (Wan2.1-T2V-1.3B, Apache-2.0).
- Downloads last month
- -
Model tree for efratT/wsp-visual-loras
Base model
Wan-AI/Wan2.1-T2V-1.3B-Diffusers