msluszniak commited on
Commit
a3efaea
·
verified ·
1 Parent(s): 2e777b5

Re-export lfm_2_5_vl_1_6b_mlx_int4.pte for ExecuTorch 1.6

Browse files
vl_1_6b/mlx/config.json CHANGED
@@ -13,56 +13,174 @@
13
  "file": "lfm_2_5_vl_1_6b_mlx_int4.pte",
14
  "precision": "int4",
15
  "methods": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  "enable_dynamic_shape": true,
17
  "get_eos_ids": [
18
  7
19
  ],
20
- "get_max_context_len": 2048,
21
  "get_max_seq_len": 64,
22
  "get_n_layers": null,
23
  "get_vocab_size": 65536,
24
  "use_kv_cache": true,
25
- "use_sdpa_with_kv_cache": false,
26
- "text_decoder": {
27
- "inputs": [],
28
- "outputs": []
29
- },
30
- "token_embedding": {
31
- "inputs": [],
32
- "outputs": []
33
- },
34
- "vision_encoder": {
35
- "inputs": [],
36
- "outputs": []
37
- }
38
  }
39
  },
40
  {
41
  "file": "lfm_2_5_vl_1_6b_mlx_int8.pte",
42
  "precision": "int8",
43
  "methods": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  "enable_dynamic_shape": true,
45
  "get_eos_ids": [
46
  7
47
  ],
48
- "get_max_context_len": 2048,
49
  "get_max_seq_len": 64,
50
  "get_n_layers": null,
51
  "get_vocab_size": 65536,
52
  "use_kv_cache": true,
53
- "use_sdpa_with_kv_cache": false,
54
- "text_decoder": {
55
- "inputs": [],
56
- "outputs": []
57
- },
58
- "token_embedding": {
59
- "inputs": [],
60
- "outputs": []
61
- },
62
- "vision_encoder": {
63
- "inputs": [],
64
- "outputs": []
65
- }
66
  }
67
  }
68
  ],
 
13
  "file": "lfm_2_5_vl_1_6b_mlx_int4.pte",
14
  "precision": "int4",
15
  "methods": {
16
+ "vision_encoder": {
17
+ "inputs": [
18
+ {
19
+ "shape": [
20
+ 1,
21
+ 3,
22
+ 512,
23
+ 512
24
+ ],
25
+ "dtype": "bfloat16"
26
+ }
27
+ ],
28
+ "outputs": [
29
+ {
30
+ "shape": [
31
+ 1,
32
+ 256,
33
+ 2048
34
+ ],
35
+ "dtype": "bfloat16"
36
+ }
37
+ ]
38
+ },
39
+ "token_embedding": {
40
+ "inputs": [
41
+ {
42
+ "shape": [
43
+ 1,
44
+ 64
45
+ ],
46
+ "dtype": "int64"
47
+ }
48
+ ],
49
+ "outputs": [
50
+ {
51
+ "shape": [
52
+ 1,
53
+ 64,
54
+ 2048
55
+ ],
56
+ "dtype": "bfloat16"
57
+ }
58
+ ]
59
+ },
60
+ "text_decoder": {
61
+ "inputs": [
62
+ {
63
+ "shape": [
64
+ 1,
65
+ 64,
66
+ 2048
67
+ ],
68
+ "dtype": "bfloat16"
69
+ },
70
+ {
71
+ "shape": [
72
+ 64
73
+ ],
74
+ "dtype": "int64"
75
+ }
76
+ ],
77
+ "outputs": [
78
+ {
79
+ "shape": [
80
+ 1,
81
+ 65536
82
+ ],
83
+ "dtype": "bfloat16"
84
+ }
85
+ ]
86
+ },
87
  "enable_dynamic_shape": true,
88
  "get_eos_ids": [
89
  7
90
  ],
91
+ "get_max_context_len": 8192,
92
  "get_max_seq_len": 64,
93
  "get_n_layers": null,
94
  "get_vocab_size": 65536,
95
  "use_kv_cache": true,
96
+ "use_sdpa_with_kv_cache": false
 
 
 
 
 
 
 
 
 
 
 
 
97
  }
98
  },
99
  {
100
  "file": "lfm_2_5_vl_1_6b_mlx_int8.pte",
101
  "precision": "int8",
102
  "methods": {
103
+ "vision_encoder": {
104
+ "inputs": [
105
+ {
106
+ "shape": [
107
+ 1,
108
+ 3,
109
+ 512,
110
+ 512
111
+ ],
112
+ "dtype": "bfloat16"
113
+ }
114
+ ],
115
+ "outputs": [
116
+ {
117
+ "shape": [
118
+ 1,
119
+ 256,
120
+ 2048
121
+ ],
122
+ "dtype": "bfloat16"
123
+ }
124
+ ]
125
+ },
126
+ "token_embedding": {
127
+ "inputs": [
128
+ {
129
+ "shape": [
130
+ 1,
131
+ 64
132
+ ],
133
+ "dtype": "int64"
134
+ }
135
+ ],
136
+ "outputs": [
137
+ {
138
+ "shape": [
139
+ 1,
140
+ 64,
141
+ 2048
142
+ ],
143
+ "dtype": "bfloat16"
144
+ }
145
+ ]
146
+ },
147
+ "text_decoder": {
148
+ "inputs": [
149
+ {
150
+ "shape": [
151
+ 1,
152
+ 64,
153
+ 2048
154
+ ],
155
+ "dtype": "bfloat16"
156
+ },
157
+ {
158
+ "shape": [
159
+ 64
160
+ ],
161
+ "dtype": "int64"
162
+ }
163
+ ],
164
+ "outputs": [
165
+ {
166
+ "shape": [
167
+ 1,
168
+ 65536
169
+ ],
170
+ "dtype": "bfloat16"
171
+ }
172
+ ]
173
+ },
174
  "enable_dynamic_shape": true,
175
  "get_eos_ids": [
176
  7
177
  ],
178
+ "get_max_context_len": 8192,
179
  "get_max_seq_len": 64,
180
  "get_n_layers": null,
181
  "get_vocab_size": 65536,
182
  "use_kv_cache": true,
183
+ "use_sdpa_with_kv_cache": false
 
 
 
 
 
 
 
 
 
 
 
 
184
  }
185
  }
186
  ],
vl_1_6b/mlx/lfm_2_5_vl_1_6b_mlx_int4.pte CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:54147237e6876af3c4bd02f676027bbfc762595e43eb2f6bfd2291d19c2fac75
3
- size 2370669056
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bb0e102b70575399f7a8ace416f5838577b7a0a186b1b895af9bdde4c1b0028
3
+ size 2380109312