prince-canuma
commited on
Upload folder using huggingface_hub
Browse files- README.md +1 -1
- config.json +60 -23
- model.safetensors +2 -2
- model.safetensors.index.json +1 -3
- tokenizer_config.json +1 -0
README.md
CHANGED
@@ -16,7 +16,7 @@ tags:
|
|
16 |
---
|
17 |
|
18 |
# mlx-community/Molmo-7B-D-0924-3bit
|
19 |
-
This model was converted to MLX format from [`allenai/Molmo-7B-D-0924`]() using mlx-vlm version **0.1.
|
20 |
Refer to the [original model card](https://huggingface.co/allenai/Molmo-7B-D-0924) for more details on the model.
|
21 |
## Use with mlx
|
22 |
|
|
|
16 |
---
|
17 |
|
18 |
# mlx-community/Molmo-7B-D-0924-3bit
|
19 |
+
This model was converted to MLX format from [`allenai/Molmo-7B-D-0924`]() using mlx-vlm version **0.1.6**.
|
20 |
Refer to the [original model card](https://huggingface.co/allenai/Molmo-7B-D-0924) for more details on the model.
|
21 |
## Use with mlx
|
22 |
|
config.json
CHANGED
@@ -2,38 +2,75 @@
|
|
2 |
"architectures": [
|
3 |
"MolmoForCausalLM"
|
4 |
],
|
5 |
-
"attention_layer_norm": false,
|
6 |
"auto_map": {
|
7 |
"AutoConfig": "config_molmo.MolmoConfig",
|
8 |
"AutoModelForCausalLM": "modeling_molmo.MolmoForCausalLM"
|
9 |
},
|
10 |
-
"clip_qkv": null,
|
11 |
-
"embedding_size": 152064,
|
12 |
-
"hidden_size": 3584,
|
13 |
-
"initializer_range": 0.02,
|
14 |
-
"intermediate_size": 37888,
|
15 |
-
"layer_norm_eps": 1e-06,
|
16 |
-
"layer_norm_type": "rms",
|
17 |
-
"max_position_embeddings": 4096,
|
18 |
"model_type": "molmo",
|
19 |
-
"norm_after": false,
|
20 |
-
"num_attention_heads": 28,
|
21 |
-
"num_hidden_layers": 28,
|
22 |
-
"num_key_value_heads": 4,
|
23 |
-
"qkv_bias": true,
|
24 |
"quantization": {
|
25 |
"group_size": 64,
|
26 |
"bits": 3
|
27 |
},
|
28 |
-
"
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
"vision_config": {
|
35 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
},
|
37 |
-
"vocab_size": 152064
|
38 |
-
"weight_tying": false
|
39 |
}
|
|
|
2 |
"architectures": [
|
3 |
"MolmoForCausalLM"
|
4 |
],
|
|
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "config_molmo.MolmoConfig",
|
7 |
"AutoModelForCausalLM": "modeling_molmo.MolmoForCausalLM"
|
8 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
"model_type": "molmo",
|
|
|
|
|
|
|
|
|
|
|
10 |
"quantization": {
|
11 |
"group_size": 64,
|
12 |
"bits": 3
|
13 |
},
|
14 |
+
"text_config": {
|
15 |
+
"model_type": "molmo",
|
16 |
+
"max_position_embeddings": 4096,
|
17 |
+
"d_model": 3584,
|
18 |
+
"n_heads": 28,
|
19 |
+
"n_kv_heads": 4,
|
20 |
+
"n_layers": 28,
|
21 |
+
"mlp_ratio": 4,
|
22 |
+
"max_sequence_length": 1024,
|
23 |
+
"act_output_multiplier": 0.5,
|
24 |
+
"mlp_hidden_size": 37888,
|
25 |
+
"vocab_size": 152064,
|
26 |
+
"embedding_size": 152064,
|
27 |
+
"additional_vocab_size": 128,
|
28 |
+
"attention_dropout": 0.1,
|
29 |
+
"residual_dropout": 0.1,
|
30 |
+
"embedding_dropout": 0.1,
|
31 |
+
"layer_norm_eps": 1e-05,
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"pad_token_id": -1,
|
34 |
+
"rope": true,
|
35 |
+
"rope_theta": 1000000.0,
|
36 |
+
"weight_tying": false,
|
37 |
+
"rope_full_precision": true,
|
38 |
+
"rope_impl": "interleave"
|
39 |
+
},
|
40 |
"vision_config": {
|
41 |
+
"model_type": "molmo",
|
42 |
+
"num_channels": 3,
|
43 |
+
"image_default_input_size": [
|
44 |
+
336,
|
45 |
+
336
|
46 |
+
],
|
47 |
+
"image_patch_size": 14,
|
48 |
+
"image_pos_patch_size": 14,
|
49 |
+
"hidden_size": 18944,
|
50 |
+
"image_emb_dim": 1024,
|
51 |
+
"image_num_heads": 16,
|
52 |
+
"image_num_key_value_heads": 16,
|
53 |
+
"image_num_layers": 23,
|
54 |
+
"image_head_dim": 64,
|
55 |
+
"image_mlp_dim": 4096,
|
56 |
+
"image_mlp_activations": "gelu",
|
57 |
+
"image_dropout_rate": 0.0,
|
58 |
+
"image_num_pos": 577,
|
59 |
+
"image_norm_eps": 1e-05,
|
60 |
+
"attention_dropout": 0.0,
|
61 |
+
"residual_dropout": 0.0,
|
62 |
+
"initializer_range": 0.02,
|
63 |
+
"d_model": 3584,
|
64 |
+
"image_pooling_h": 2,
|
65 |
+
"image_pooling_w": 2,
|
66 |
+
"vit_layers": [
|
67 |
+
-2,
|
68 |
+
-9
|
69 |
+
],
|
70 |
+
"image_pooling_2d": "attention-meanq",
|
71 |
+
"image_padding_embed": "pad_and_partial_pad",
|
72 |
+
"intermediate_size": 588,
|
73 |
+
"skip_vision_non_divisible": true
|
74 |
},
|
75 |
+
"vocab_size": 152064
|
|
|
76 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0574f80e4b56192739ecdd2913ac1493e670def9bc06944f02d14e9c87e94ead
|
3 |
+
size 4364499163
|
model.safetensors.index.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"metadata": {
|
3 |
-
"total_size":
|
4 |
},
|
5 |
"weight_map": {
|
6 |
"language_model.model.blocks.0.att_proj.bias": "model.safetensors",
|
@@ -455,8 +455,6 @@
|
|
455 |
"vision_tower.image_projector.w3.scales": "model.safetensors",
|
456 |
"vision_tower.image_projector.w3.weight": "model.safetensors",
|
457 |
"vision_tower.image_vit.class_embedding": "model.safetensors",
|
458 |
-
"vision_tower.image_vit.patch_embedding.biases": "model.safetensors",
|
459 |
-
"vision_tower.image_vit.patch_embedding.scales": "model.safetensors",
|
460 |
"vision_tower.image_vit.patch_embedding.weight": "model.safetensors",
|
461 |
"vision_tower.image_vit.positional_embedding": "model.safetensors",
|
462 |
"vision_tower.image_vit.pre_ln.bias": "model.safetensors",
|
|
|
1 |
{
|
2 |
"metadata": {
|
3 |
+
"total_size": 4364354560
|
4 |
},
|
5 |
"weight_map": {
|
6 |
"language_model.model.blocks.0.att_proj.bias": "model.safetensors",
|
|
|
455 |
"vision_tower.image_projector.w3.scales": "model.safetensors",
|
456 |
"vision_tower.image_projector.w3.weight": "model.safetensors",
|
457 |
"vision_tower.image_vit.class_embedding": "model.safetensors",
|
|
|
|
|
458 |
"vision_tower.image_vit.patch_embedding.weight": "model.safetensors",
|
459 |
"vision_tower.image_vit.positional_embedding": "model.safetensors",
|
460 |
"vision_tower.image_vit.pre_ln.bias": "model.safetensors",
|
tokenizer_config.json
CHANGED
@@ -3843,6 +3843,7 @@
|
|
3843 |
"clean_up_tokenization_spaces": false,
|
3844 |
"eos_token": "<|endoftext|>",
|
3845 |
"errors": "replace",
|
|
|
3846 |
"model_max_length": 32768,
|
3847 |
"pad_token": "<|endoftext|>",
|
3848 |
"processor_class": "MolmoProcessor",
|
|
|
3843 |
"clean_up_tokenization_spaces": false,
|
3844 |
"eos_token": "<|endoftext|>",
|
3845 |
"errors": "replace",
|
3846 |
+
"extra_special_tokens": {},
|
3847 |
"model_max_length": 32768,
|
3848 |
"pad_token": "<|endoftext|>",
|
3849 |
"processor_class": "MolmoProcessor",
|