lucasjin commited on
Commit
f3588fe
1 Parent(s): 08b3cf0

Upload folder using huggingface_hub

Browse files
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "checkpoints/mono-ve-3b-v0/checkpoint-7400/",
3
  "architectures": [
4
  "MonoForConditionalGeneration"
5
  ],
 
1
  {
2
+ "_name_or_path": "checkpoints/mono-ve-3b/",
3
  "architectures": [
4
  "MonoForConditionalGeneration"
5
  ],
generation_config.json CHANGED
@@ -2,6 +2,5 @@
2
  "_from_model_config": true,
3
  "bos_token_id": 151643,
4
  "eos_token_id": 151645,
5
- "transformers_version": "4.46.2",
6
- "use_cache": false
7
  }
 
2
  "_from_model_config": true,
3
  "bos_token_id": 151643,
4
  "eos_token_id": 151645,
5
+ "transformers_version": "4.46.2"
 
6
  }
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8a35a90d9e2f350fbed0c43707bbc51e1ca4b7605512f054b571bbb06bf1b45b
3
  size 4993038848
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa103e12dbfbfe9472e0011410274c02fa299063ab5f6a044b8328b15d9c70aa
3
  size 4993038848
model-00002-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bfee8731806f389a71319d02d93a67d6ab5520a27a440e3743117e8a55f14dc9
3
- size 3634863200
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ebba94046658bfa8783bf41eb2d5f39231277d5e668d51e5d7a10665b0335a7
3
+ size 4101610800
model.safetensors.index.json CHANGED
@@ -1,8 +1,9 @@
1
  {
2
  "metadata": {
3
- "total_size": 8627842048
4
  },
5
  "weight_map": {
 
6
  "mm_projector.linear_proj.dense_4h_to_h.weight": "model-00002-of-00002.safetensors",
7
  "mm_projector.linear_proj.dense_h_to_4h.weight": "model-00002-of-00002.safetensors",
8
  "mm_projector.linear_proj.gate_proj.weight": "model-00002-of-00002.safetensors",
 
1
  {
2
  "metadata": {
3
+ "total_size": 9094589440
4
  },
5
  "weight_map": {
6
+ "lm_head.weight": "model-00002-of-00002.safetensors",
7
  "mm_projector.linear_proj.dense_4h_to_h.weight": "model-00002-of-00002.safetensors",
8
  "mm_projector.linear_proj.dense_h_to_4h.weight": "model-00002-of-00002.safetensors",
9
  "mm_projector.linear_proj.gate_proj.weight": "model-00002-of-00002.safetensors",
modeling_mono.py CHANGED
@@ -90,7 +90,7 @@ class MonoForConditionalGeneration(MonoPretrainedModel, GenerationMixin):
90
  # print(f"pixel_values: {pixel_values}")
91
  batch_size, C, H, W = pixel_values.shape
92
  x = self.vision_tower(pixel_values, output_hidden_states=True)
93
- x = x[-2]
94
  # print(x)
95
  x = self.mm_projector(x)
96
  # print(f"image features: {x}")
 
90
  # print(f"pixel_values: {pixel_values}")
91
  batch_size, C, H, W = pixel_values.shape
92
  x = self.vision_tower(pixel_values, output_hidden_states=True)
93
+ x = x.hidden_states[-2]
94
  # print(x)
95
  x = self.mm_projector(x)
96
  # print(f"image features: {x}")