Add CRISPR 7B/16x checkpoint; update model card
Browse files- 7b_16x/checkpoint.pt +3 -0
- 7b_16x/config.json +40 -0
- README.md +11 -5
7b_16x/checkpoint.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aebf530a60a1e42d7bc58c35c84eee7fb6439a98efec7993aaedfd5db73d3482
|
| 3 |
+
size 1541964962
|
7b_16x/config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"decoder_path": "./Qwen/Qwen2.5-VL-7B-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_16x_stage2_20260311_150346",
|
| 24 |
+
"epochs": 3,
|
| 25 |
+
"batch_size": 1,
|
| 26 |
+
"gradient_accumulation_steps": 16,
|
| 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-11T19:46:38.538636",
|
| 39 |
+
"world_size": 4
|
| 40 |
+
}
|
README.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
-
base_model:
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
- vision-language-model
|
| 6 |
- token-compression
|
| 7 |
- multimodal
|
| 8 |
---
|
| 9 |
|
| 10 |
-
# CRISPR — Checkpoints
|
| 11 |
|
| 12 |
Checkpoints for **CRISPR: Context-Refined Information Spatial Pooling with
|
| 13 |
Region-awareness for Efficient Visual Token Compression in VLMs**, accepted
|
|
@@ -16,9 +18,10 @@ at ACM MM 2026.
|
|
| 16 |
- Code: https://github.com/ZuyiZhou/CRISPR
|
| 17 |
- Paper DOI: https://doi.org/10.1145/3767308.3835007
|
| 18 |
|
| 19 |
-
This repo
|
| 20 |
-
|
| 21 |
-
|
|
|
|
| 22 |
|
| 23 |
## Files
|
| 24 |
|
|
@@ -28,6 +31,8 @@ in a subsequent update.
|
|
| 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,
|
|
@@ -45,6 +50,7 @@ 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
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
base_model:
|
| 4 |
+
- Qwen/Qwen2.5-VL-3B-Instruct
|
| 5 |
+
- Qwen/Qwen2.5-VL-7B-Instruct
|
| 6 |
tags:
|
| 7 |
- vision-language-model
|
| 8 |
- token-compression
|
| 9 |
- multimodal
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# CRISPR — Checkpoints
|
| 13 |
|
| 14 |
Checkpoints for **CRISPR: Context-Refined Information Spatial Pooling with
|
| 15 |
Region-awareness for Efficient Visual Token Compression in VLMs**, accepted
|
|
|
|
| 18 |
- Code: https://github.com/ZuyiZhou/CRISPR
|
| 19 |
- Paper DOI: https://doi.org/10.1145/3767308.3835007
|
| 20 |
|
| 21 |
+
This repo hosts CRISPR checkpoints for the Qwen2.5-VL-3B-Instruct backbone
|
| 22 |
+
(9x and 16x compression) and the Qwen2.5-VL-7B-Instruct backbone (16x
|
| 23 |
+
compression). The 7B/9x checkpoint is not currently available (lost prior to
|
| 24 |
+
this release) and is not planned unless retraining happens in the future.
|
| 25 |
|
| 26 |
## Files
|
| 27 |
|
|
|
|
| 31 |
| `3b_9x/config.json` | | | training config used to produce this checkpoint |
|
| 32 |
| `3b_16x/checkpoint.pt` | 16x (4x4 block) | Qwen2.5-VL-3B-Instruct | Stage-2, best checkpoint by val loss |
|
| 33 |
| `3b_16x/config.json` | | | training config used to produce this checkpoint |
|
| 34 |
+
| `7b_16x/checkpoint.pt` | 16x (4x4 block) | Qwen2.5-VL-7B-Instruct | Stage-2, best checkpoint by val loss |
|
| 35 |
+
| `7b_16x/config.json` | | | training config used to produce this checkpoint |
|
| 36 |
|
| 37 |
Each `checkpoint.pt` is a plain `torch.save` dict with keys `config`,
|
| 38 |
`token_mixer` (TokenMixer state dict), and `local_c3` (LocalC3 state dict,
|
|
|
|
| 50 |
|
| 51 |
model = create_model_v7(decoder_path="./Qwen/Qwen2.5-VL-3B-Instruct")
|
| 52 |
model.load_checkpoint("3b_9x/checkpoint.pt") # see crispr/model_v7.py for the loader
|
| 53 |
+
# for the 7B backbone: decoder_path="./Qwen/Qwen2.5-VL-7B-Instruct", checkpoint="7b_16x/checkpoint.pt"
|
| 54 |
```
|
| 55 |
|
| 56 |
See the main repository (https://github.com/ZuyiZhou/CRISPR) for the model
|