Instructions to use LiJiaxing/DistillAlign with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- SelfForcing
How to use LiJiaxing/DistillAlign with SelfForcing:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Add teacher reference feature caches
Browse files
teacher_caches/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Teacher Reference Caches
|
| 2 |
+
|
| 3 |
+
Ready-made teacher reference artifacts for the teacher-normalized
|
| 4 |
+
distribution evaluation of
|
| 5 |
+
[Alignment to Balance](https://github.com/YOUR_ORG/YOUR_REPO). They replace
|
| 6 |
+
the `teacher-sample` + `extract` stage entirely: pass the `.npz` file to
|
| 7 |
+
`--teacher-features` and only the student side needs to be generated.
|
| 8 |
+
|
| 9 |
+
## Contents
|
| 10 |
+
|
| 11 |
+
```text
|
| 12 |
+
wan2.1_t2v_1.3b_reference_vjepa2.npz V-JEPA2 features, 256 x 2560
|
| 13 |
+
wan2.1_t2v_1.3b_reference_vjepa2.meta.json extraction + sampling protocol
|
| 14 |
+
wan2.1_t2v_14b_reference_vjepa2.npz
|
| 15 |
+
wan2.1_t2v_14b_reference_vjepa2.meta.json
|
| 16 |
+
videos/wan2.1_t2v_1.3b_reference/ 256 reference videos (p{prompt}_s{seed}.mp4)
|
| 17 |
+
videos/wan2.1_t2v_14b_reference/ 256 reference videos
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
## Protocol
|
| 21 |
+
|
| 22 |
+
Both caches follow the paper protocol:
|
| 23 |
+
|
| 24 |
+
- Teacher: Wan2.1-T2V-1.3B / Wan2.1-T2V-14B, 25-step UniPC, timestep
|
| 25 |
+
shift 8.0, classifier-free guidance 5.0, official negative prompt.
|
| 26 |
+
- Grid: 16 prompts (`prompts/distribution_eval_16.txt`) x 16 seeds
|
| 27 |
+
(`11,22,33,42,44,55,66,77,88,123,456,789,2024,3407,7777,9999`),
|
| 28 |
+
256 samples per teacher.
|
| 29 |
+
- Features: `facebook/vjepa2-vith-fpc64-256`, 8 uniform frames from the
|
| 30 |
+
first 81 frames, token mean/std concat pooling, L2-normalized, 2560-D.
|
| 31 |
+
|
| 32 |
+
The exact extractor fingerprint and prompt/seed hash are embedded in each
|
| 33 |
+
`.npz` and validated by the metric CLI, which rejects incompatible student
|
| 34 |
+
caches instead of producing incomparable numbers.
|
| 35 |
+
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
python evaluate_distribution.py run \
|
| 40 |
+
--checkpoint checkpoints/alignment_to_balance.pt \
|
| 41 |
+
--jobs outputs/eval_jobs.jsonl \
|
| 42 |
+
--teacher-model Wan2.1-T2V-14B \
|
| 43 |
+
--teacher-features teacher_caches/wan2.1_t2v_14b_reference_vjepa2.npz \
|
| 44 |
+
--output-dir outputs/my_eval
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
The videos are provided for inspection and for re-extraction under future
|
| 48 |
+
feature encoders; they are not needed when using the `.npz` caches.
|
teacher_caches/wan2.1_t2v_1.3b_reference_vjepa2.meta.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clip_frames": 81,
|
| 3 |
+
"description": "Wan2.1-T2V-1.3B teacher reference V-JEPA2 features for teacher-normalized distribution evaluation",
|
| 4 |
+
"encoder": "vjepa2",
|
| 5 |
+
"extractor_source_sha256": "0f93a1ec54ce0e257cba7f448ac03ead22ce4005d729fea9bf0dbcb07ab45ea0",
|
| 6 |
+
"frame_selection": "linspace",
|
| 7 |
+
"implementation_sha256": "0f93a1ec54ce0e257cba7f448ac03ead22ce4005d729fea9bf0dbcb07ab45ea0",
|
| 8 |
+
"inference_dtype": "bfloat16",
|
| 9 |
+
"manifest": "wan2.1_t2v_1.3b_reference_vjepa2.meta",
|
| 10 |
+
"manifest_sha256": "27be60663de086cbdaa22ddf669621bab3404bf2a08c09a032cf4118f9c5de42",
|
| 11 |
+
"model_commit": "b5eac8703e3efdc1547fbb6ddfbeb133dc0bdee5",
|
| 12 |
+
"model_id": "facebook/vjepa2-vith-fpc64-256",
|
| 13 |
+
"model_revision": "b5eac8703e3efdc1547fbb6ddfbeb133dc0bdee5",
|
| 14 |
+
"num_frames": 8,
|
| 15 |
+
"numpy_version": "1.26.4",
|
| 16 |
+
"pooling": "token_mean_sample_std_concat_l2",
|
| 17 |
+
"processor": "VJEPA2VideoProcessor",
|
| 18 |
+
"protocol_sha256": "5c9ded5e2dac1a2cad6188153d6449ece64485af214dd5a580c91b7c1eaf7391",
|
| 19 |
+
"row_count": 256,
|
| 20 |
+
"sample_keys_sha256": "d15d18526509ab047ef4e270e95013795639a9c12a110bd58f04dbb35c342cd3",
|
| 21 |
+
"schema_version": 1,
|
| 22 |
+
"teacher_sampling": {
|
| 23 |
+
"guidance_scale": 5.0,
|
| 24 |
+
"model": "Wan2.1-T2V-1.3B",
|
| 25 |
+
"negative_prompt": "wan2.1_official_chinese_default",
|
| 26 |
+
"prompts": "prompts/distribution_eval_16.txt (16 prompts)",
|
| 27 |
+
"samples": 256,
|
| 28 |
+
"seeds": [
|
| 29 |
+
11,
|
| 30 |
+
22,
|
| 31 |
+
33,
|
| 32 |
+
42,
|
| 33 |
+
44,
|
| 34 |
+
55,
|
| 35 |
+
66,
|
| 36 |
+
77,
|
| 37 |
+
88,
|
| 38 |
+
123,
|
| 39 |
+
456,
|
| 40 |
+
789,
|
| 41 |
+
2024,
|
| 42 |
+
3407,
|
| 43 |
+
7777,
|
| 44 |
+
9999
|
| 45 |
+
],
|
| 46 |
+
"solver": "UniPC",
|
| 47 |
+
"steps": 25,
|
| 48 |
+
"timestep_shift": 8.0
|
| 49 |
+
},
|
| 50 |
+
"torch_version": "2.6.0+cu124",
|
| 51 |
+
"transformers_version": "4.57.6"
|
| 52 |
+
}
|
teacher_caches/wan2.1_t2v_1.3b_reference_vjepa2.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a52856c18f4bed08a2ae87071cb36631471da146c4a13e37793e8656b31ec614
|
| 3 |
+
size 2414949
|
teacher_caches/wan2.1_t2v_14b_reference_vjepa2.meta.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clip_frames": 81,
|
| 3 |
+
"description": "Wan2.1-T2V-14B teacher reference V-JEPA2 features for teacher-normalized distribution evaluation",
|
| 4 |
+
"encoder": "vjepa2",
|
| 5 |
+
"extractor_source_sha256": "0f93a1ec54ce0e257cba7f448ac03ead22ce4005d729fea9bf0dbcb07ab45ea0",
|
| 6 |
+
"frame_selection": "linspace",
|
| 7 |
+
"implementation_sha256": "0f93a1ec54ce0e257cba7f448ac03ead22ce4005d729fea9bf0dbcb07ab45ea0",
|
| 8 |
+
"inference_dtype": "bfloat16",
|
| 9 |
+
"manifest": "wan2.1_t2v_14b_reference_vjepa2.meta",
|
| 10 |
+
"manifest_sha256": "f7df9ff0a90d7442571b8599ee39f85a6c0b3ae568c1d15eb41ebc4a1afed38c",
|
| 11 |
+
"model_commit": "b5eac8703e3efdc1547fbb6ddfbeb133dc0bdee5",
|
| 12 |
+
"model_id": "facebook/vjepa2-vith-fpc64-256",
|
| 13 |
+
"model_revision": "b5eac8703e3efdc1547fbb6ddfbeb133dc0bdee5",
|
| 14 |
+
"num_frames": 8,
|
| 15 |
+
"numpy_version": "1.26.4",
|
| 16 |
+
"pooling": "token_mean_sample_std_concat_l2",
|
| 17 |
+
"processor": "VJEPA2VideoProcessor",
|
| 18 |
+
"protocol_sha256": "5c9ded5e2dac1a2cad6188153d6449ece64485af214dd5a580c91b7c1eaf7391",
|
| 19 |
+
"row_count": 256,
|
| 20 |
+
"sample_keys_sha256": "d15d18526509ab047ef4e270e95013795639a9c12a110bd58f04dbb35c342cd3",
|
| 21 |
+
"schema_version": 1,
|
| 22 |
+
"teacher_sampling": {
|
| 23 |
+
"guidance_scale": 5.0,
|
| 24 |
+
"model": "Wan2.1-T2V-14B",
|
| 25 |
+
"negative_prompt": "wan2.1_official_chinese_default",
|
| 26 |
+
"prompts": "prompts/distribution_eval_16.txt (16 prompts)",
|
| 27 |
+
"samples": 256,
|
| 28 |
+
"seeds": [
|
| 29 |
+
11,
|
| 30 |
+
22,
|
| 31 |
+
33,
|
| 32 |
+
42,
|
| 33 |
+
44,
|
| 34 |
+
55,
|
| 35 |
+
66,
|
| 36 |
+
77,
|
| 37 |
+
88,
|
| 38 |
+
123,
|
| 39 |
+
456,
|
| 40 |
+
789,
|
| 41 |
+
2024,
|
| 42 |
+
3407,
|
| 43 |
+
7777,
|
| 44 |
+
9999
|
| 45 |
+
],
|
| 46 |
+
"solver": "UniPC",
|
| 47 |
+
"steps": 25,
|
| 48 |
+
"timestep_shift": 8.0
|
| 49 |
+
},
|
| 50 |
+
"torch_version": "2.6.0+cu124",
|
| 51 |
+
"transformers_version": "4.57.6"
|
| 52 |
+
}
|
teacher_caches/wan2.1_t2v_14b_reference_vjepa2.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6104933cd0a89c69d31df61c936b0d17708884903648894596f8b454e25781b2
|
| 3 |
+
size 2415610
|