fengluoqiuwu commited on
Commit
0fdeb41
·
verified ·
1 Parent(s): 7d9108e

Release fengluoqiuwu/Object-Vision-Text-Only-7B-SFT (lfs+curl, no xet)

Browse files
Files changed (3) hide show
  1. README.md +49 -0
  2. config.json +62 -0
  3. model.pt +3 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: pytorch
4
+ pipeline_tag: image-text-to-text
5
+ tags:
6
+ - qwen2.5-vl
7
+ - object-vision
8
+ - vision-language
9
+ - pytorch
10
+ base_model: Qwen/Qwen2.5-VL-7B-Instruct
11
+ ---
12
+ # Text-only 7B SFT
13
+
14
+ Weights from **Object Vision** in *Re-encode the Mention* (text-only control after SFT (still receives the image; no regional visual insertions)).
15
+
16
+ - Paper checkpoint step: **12000**
17
+ - Base model: [`Qwen/Qwen2.5-VL-7B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct)
18
+ - Source package name: `baseline-qwen2.5-7b-full`
19
+ - Files: `model.pt`, `config.json`
20
+
21
+ ## Method (short)
22
+
23
+ Object Vision triggers on object mentions during generation, selects a region from mention attention, re-encodes that region with a frozen vision encoder in isolation, and inserts the features back with original M-RoPE indices. Training updates the language model only (SFT, then GRPO).
24
+
25
+ ## Load / inference
26
+
27
+ These files are **project-native** weights (`model.pt` + `config.json`), not a Transformers `from_pretrained()` checkpoint.
28
+
29
+ ```python
30
+ from models.object_vision.generate import load_engine_from_checkpoint
31
+
32
+ engine = load_engine_from_checkpoint(
33
+ "path/to/this/folder",
34
+ expect_model="qwen",
35
+ expect_plan="baseline",
36
+ )
37
+ ```
38
+
39
+ Default evaluation setting in the paper: region budget **K=100**. Set `record_pastes=True` to inspect inserted regions.
40
+
41
+ Standard `transformers.AutoModel` / `generate()` is **not** the entry point for this package. Public inference helpers will be linked here when released; until then this Hub repo provides weights and config only.
42
+
43
+ ## License / attribution
44
+
45
+ This release is fine-tuned from [`Qwen/Qwen2.5-VL-7B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct) (base model card lists Apache-2.0). Training data includes Visual-CoT / ZwZ-RL-VQA; please review those dataset terms before redistributing or commercial use. This repository does **not** redistribute training images. We do **not** claim unconditional Apache-2.0 for these weights.
46
+
47
+ ## Citation
48
+
49
+ If you use these weights, please cite the paper *Re-encode the Mention* (Object Vision).
config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "qwen",
3
+ "plan": "baseline",
4
+ "type": "qwen25-7b-full",
5
+ "run": "qwen/baseline/qwen25-7b-full",
6
+ "dataset": "visual-cot-key",
7
+ "max_steps": 12000,
8
+ "global_batch_size": 8,
9
+ "task_cfg": {
10
+ "_doc": "普通拼接 · qwen25-7b-full",
11
+ "base_model": "Qwen2.5-VL-7B-Instruct",
12
+ "dataset": [
13
+ "visual-cot-key"
14
+ ],
15
+ "seed": 42,
16
+ "init_ckpt": null,
17
+ "train_llm_only": true,
18
+ "optimizer": {
19
+ "dtype": "bf16",
20
+ "learning_rate": 1e-05,
21
+ "weight_decay": 0.01,
22
+ "beta1": 0.9,
23
+ "beta2": 0.999,
24
+ "grad_clip": 1.0,
25
+ "ema_decay": 0,
26
+ "adam_8bit": true
27
+ },
28
+ "batch": {
29
+ "batch_size": 1,
30
+ "global_batch_size": 8
31
+ },
32
+ "schedule": {
33
+ "max_steps": 12000,
34
+ "warmup_ratio": 0.03,
35
+ "min_lr_ratio": 1.0,
36
+ "log_plot_step": 40,
37
+ "resume": true,
38
+ "gradient_checkpointing": true,
39
+ "max_samples": 0,
40
+ "save_step": 2000,
41
+ "eval_step": 2000
42
+ },
43
+ "eval": {
44
+ "skip": false,
45
+ "eval_sample_seed": 42,
46
+ "forward_samples": 32,
47
+ "vstar_samples": 0,
48
+ "sample_seed": 42,
49
+ "max_new_tokens": 256,
50
+ "eval_sample_count": 32
51
+ },
52
+ "generate": {
53
+ "insert_latent": false
54
+ },
55
+ "arch": {
56
+ "hub": "Qwen/Qwen2.5-VL-7B-Instruct",
57
+ "arch": "qwen2.5-vl",
58
+ "name": "qwen25-7b"
59
+ },
60
+ "size": "qwen25-7b"
61
+ }
62
+ }
model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4e5ed7b58fc6d1fd5054f94f116e785ebf0889032c9262a846916f5b987f67e
3
+ size 16578891053