lucianommartins commited on
Commit
54c0222
·
verified ·
1 Parent(s): e3dacad

Raise per-image vision soft-token budget from 280 to 1120

Browse files

Increases the default per-image vision soft-token budget from 280 to 1120 (the maximum supported value) so images are encoded at higher resolution by default. Video budget is unchanged (`video_processor.max_soft_tokens` = 70); no other values are modified.

Exact changes in this repo:
- `config.json`:
- `vision_config.default_output_length`: 280 → 1120
- `vision_soft_tokens_per_image`: 280 → 1120
- `processor_config.json`:
- `image_processor.image_seq_length`: 280 → 1120
- `image_processor.max_soft_tokens`: 280 → 1120
- `image_seq_length`: 280 → 1120

Files changed (2) hide show
  1. config.json +2 -2
  2. processor_config.json +3 -3
config.json CHANGED
@@ -369,7 +369,7 @@
369
  "attention_bias": false,
370
  "attention_dropout": 0.0,
371
  "chunk_size_feed_forward": 0,
372
- "default_output_length": 280,
373
  "dtype": "bfloat16",
374
  "global_head_dim": 72,
375
  "head_dim": 72,
@@ -406,5 +406,5 @@
406
  "standardize": true,
407
  "use_clipped_linears": false
408
  },
409
- "vision_soft_tokens_per_image": 280
410
  }
 
369
  "attention_bias": false,
370
  "attention_dropout": 0.0,
371
  "chunk_size_feed_forward": 0,
372
+ "default_output_length": 1120,
373
  "dtype": "bfloat16",
374
  "global_head_dim": 72,
375
  "head_dim": 72,
 
406
  "standardize": true,
407
  "use_clipped_linears": false
408
  },
409
+ "vision_soft_tokens_per_image": 1120
410
  }
processor_config.json CHANGED
@@ -33,19 +33,19 @@
33
  0.0
34
  ],
35
  "image_processor_type": "Gemma4ImageProcessor",
36
- "image_seq_length": 280,
37
  "image_std": [
38
  1.0,
39
  1.0,
40
  1.0
41
  ],
42
- "max_soft_tokens": 280,
43
  "patch_size": 16,
44
  "pooling_kernel_size": 3,
45
  "resample": 3,
46
  "rescale_factor": 0.00392156862745098
47
  },
48
- "image_seq_length": 280,
49
  "processor_class": "Gemma4Processor",
50
  "video_processor": {
51
  "do_convert_rgb": true,
 
33
  0.0
34
  ],
35
  "image_processor_type": "Gemma4ImageProcessor",
36
+ "image_seq_length": 1120,
37
  "image_std": [
38
  1.0,
39
  1.0,
40
  1.0
41
  ],
42
+ "max_soft_tokens": 1120,
43
  "patch_size": 16,
44
  "pooling_kernel_size": 3,
45
  "resample": 3,
46
  "rescale_factor": 0.00392156862745098
47
  },
48
+ "image_seq_length": 1120,
49
  "processor_class": "Gemma4Processor",
50
  "video_processor": {
51
  "do_convert_rgb": true,