Rim2000 commited on
Commit
ece3b11
·
verified ·
1 Parent(s): 26cbd31

Add CRISPR 3B checkpoints (9x, 16x) and model card

Browse files
3b_16x/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20caa8d00eacc5464c7b388707210da0e178c0013e22b35845ebceb2128b9899
3
+ size 503644725
3b_16x/config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "decoder_path": "./Qwen/Qwen2.5-VL-3B-Instruct",
3
+ "use_token_mixer": true,
4
+ "token_mixer_num_layers": 2,
5
+ "token_mixer_num_heads": 16,
6
+ "token_mixer_dropout": 0.1,
7
+ "freeze_token_mixer": false,
8
+ "use_local_c3": true,
9
+ "local_c3_block_size": 4,
10
+ "local_c3_num_heads": 8,
11
+ "num_post_encoder_layers": 2,
12
+ "use_rope_alignment": true,
13
+ "use_kl_distillation": true,
14
+ "kl_loss_weight": 0.5,
15
+ "teacher_temperature": 1.0,
16
+ "use_hidden_distillation": true,
17
+ "hidden_loss_weight": 0.1,
18
+ "use_decoder_lora": false,
19
+ "data_path": "./data/train/stage2_mixed/combined_v4.jsonl",
20
+ "max_length": 768,
21
+ "max_samples": null,
22
+ "max_image_size": 672,
23
+ "output_dir": "./outputs/image_c3_v7_3b_16x_stage2_20260318_160014",
24
+ "epochs": 3,
25
+ "batch_size": 2,
26
+ "gradient_accumulation_steps": 4,
27
+ "lr_local_c3": 1e-05,
28
+ "lr_token_mixer": 1e-05,
29
+ "lr_decoder_lora": 1e-05,
30
+ "weight_decay": 0.01,
31
+ "warmup_ratio": 0.1,
32
+ "max_grad_norm": 1.0,
33
+ "log_steps": 50,
34
+ "save_steps": 500,
35
+ "gpu": 0,
36
+ "num_workers": 4,
37
+ "resume_from": null,
38
+ "timestamp": "2026-03-18T19:00:35.309642",
39
+ "world_size": 8
40
+ }
3b_9x/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b01b082b255f304cd176b1fd5373760505b09da8a28453addf238617069ca95
3
+ size 503616053
3b_9x/config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "decoder_path": "./Qwen/Qwen2.5-VL-3B-Instruct",
3
+ "use_token_mixer": true,
4
+ "token_mixer_num_layers": 2,
5
+ "token_mixer_num_heads": 16,
6
+ "token_mixer_dropout": 0.1,
7
+ "freeze_token_mixer": false,
8
+ "use_local_c3": true,
9
+ "local_c3_block_size": 3,
10
+ "local_c3_num_heads": 8,
11
+ "num_post_encoder_layers": 2,
12
+ "use_rope_alignment": true,
13
+ "use_kl_distillation": true,
14
+ "kl_loss_weight": 0.5,
15
+ "teacher_temperature": 1.0,
16
+ "use_hidden_distillation": true,
17
+ "hidden_loss_weight": 0.1,
18
+ "use_decoder_lora": false,
19
+ "data_path": "./data/train/stage2_mixed/combined_v4.jsonl",
20
+ "max_length": 768,
21
+ "max_samples": null,
22
+ "max_image_size": 672,
23
+ "output_dir": "./outputs/image_c3_v7_3b_9x_stage2_20260316_222808",
24
+ "epochs": 3,
25
+ "batch_size": 2,
26
+ "gradient_accumulation_steps": 4,
27
+ "lr_local_c3": 1e-05,
28
+ "lr_token_mixer": 1e-05,
29
+ "lr_decoder_lora": 1e-05,
30
+ "weight_decay": 0.01,
31
+ "warmup_ratio": 0.1,
32
+ "max_grad_norm": 1.0,
33
+ "log_steps": 50,
34
+ "save_steps": 500,
35
+ "gpu": 0,
36
+ "num_workers": 4,
37
+ "resume_from": null,
38
+ "timestamp": "2026-03-17T05:42:27.910473",
39
+ "world_size": 8
40
+ }
README.md CHANGED
@@ -1,3 +1,67 @@
1
  ---
2
  license: mit
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ base_model: Qwen/Qwen2.5-VL-3B-Instruct
4
+ tags:
5
+ - vision-language-model
6
+ - token-compression
7
+ - multimodal
8
  ---
9
+
10
+ # CRISPR — Checkpoints (Qwen2.5-VL-3B backbone)
11
+
12
+ Checkpoints for **CRISPR: Context-Refined Information Spatial Pooling with
13
+ Region-awareness for Efficient Visual Token Compression in VLMs**, accepted
14
+ at ACM MM 2026.
15
+
16
+ - Code: https://github.com/ZuyiZhou/CRISPR
17
+ - Paper DOI: https://doi.org/10.1145/3767308.3835007
18
+
19
+ This repo currently hosts the **Qwen2.5-VL-3B-Instruct** backbone checkpoints
20
+ at 9x and 16x compression. Qwen2.5-VL-7B backbone checkpoints will be added
21
+ in a subsequent update.
22
+
23
+ ## Files
24
+
25
+ | Path | Compression ratio | Backbone | Notes |
26
+ |---|---|---|---|
27
+ | `3b_9x/checkpoint.pt` | 9x (3x3 block) | Qwen2.5-VL-3B-Instruct | Stage-2, best checkpoint by val loss |
28
+ | `3b_9x/config.json` | | | training config used to produce this checkpoint |
29
+ | `3b_16x/checkpoint.pt` | 16x (4x4 block) | Qwen2.5-VL-3B-Instruct | Stage-2, best checkpoint by val loss |
30
+ | `3b_16x/config.json` | | | training config used to produce this checkpoint |
31
+
32
+ Each `checkpoint.pt` is a plain `torch.save` dict with keys `config`,
33
+ `token_mixer` (TokenMixer state dict), and `local_c3` (LocalC3 state dict,
34
+ which also contains the Global Token Fusion sub-module). Only the trainable
35
+ CRISPR modules are included — the frozen Qwen2.5-VL vision encoder and
36
+ decoder weights are not part of this checkpoint and must be obtained
37
+ separately from [Qwen2.5-VL](https://github.com/QwenLM/Qwen2.5-VL). Optimizer/
38
+ scheduler state is not included (only the model weights needed for inference
39
+ or further fine-tuning are provided).
40
+
41
+ ## Usage
42
+
43
+ ```python
44
+ from crispr import create_model_v7
45
+
46
+ model = create_model_v7(decoder_path="./Qwen/Qwen2.5-VL-3B-Instruct")
47
+ model.load_checkpoint("3b_9x/checkpoint.pt") # see crispr/model_v7.py for the loader
48
+ ```
49
+
50
+ See the main repository (https://github.com/ZuyiZhou/CRISPR) for the model
51
+ code, training script, and evaluation scripts.
52
+
53
+ ## Citation
54
+
55
+ ```bibtex
56
+ @inproceedings{zhou2026crispr,
57
+ author = {Zhou, Zuyi and Xue, Dizhan and Qian, Shengsheng and Xu, Changsheng},
58
+ title = {CRISPR: Context-Refined Information Spatial Pooling with
59
+ Region-awareness for Efficient Visual Token Compression in VLMs},
60
+ booktitle = {Proceedings of the 34th ACM International Conference on
61
+ Multimedia (MM '26)},
62
+ year = {2026},
63
+ publisher = {Association for Computing Machinery},
64
+ address = {New York, NY, USA},
65
+ doi = {10.1145/3767308.3835007}
66
+ }
67
+ ```