NorbertKlockiewicz commited on
Commit
08c22ab
·
1 Parent(s): 3df529f

Use min/max dynamic shape bounds for forward inputs/outputs

Browse files
1_2b/mlx/config.json CHANGED
@@ -26,14 +26,36 @@
26
  "use_kv_cache": true,
27
  "use_sdpa_with_kv_cache": true,
28
  "forward": {
29
- "inputs": [],
30
- "outputs": []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
  }
33
  }
34
  ],
35
- "size": "1_2b",
36
- "_methods_needing_shapes": [
37
- "forward"
38
- ]
39
  }
 
26
  "use_kv_cache": true,
27
  "use_sdpa_with_kv_cache": true,
28
  "forward": {
29
+ "inputs": [
30
+ {
31
+ "name": "tokens",
32
+ "shape": [
33
+ 1,
34
+ {
35
+ "min": 1,
36
+ "max": 64
37
+ }
38
+ ],
39
+ "dtype": "int64"
40
+ }
41
+ ],
42
+ "outputs": [
43
+ {
44
+ "name": "logits",
45
+ "shape": [
46
+ 1,
47
+ {
48
+ "min": 1,
49
+ "max": 64
50
+ },
51
+ 65536
52
+ ],
53
+ "dtype": "float32"
54
+ }
55
+ ]
56
  }
57
  }
58
  }
59
  ],
60
+ "size": "1_2b"
 
 
 
61
  }
1_2b/xnnpack/config.json CHANGED
@@ -20,7 +20,10 @@
20
  {
21
  "shape": [
22
  1,
23
- 2047
 
 
 
24
  ],
25
  "dtype": "int64"
26
  },
@@ -65,7 +68,10 @@
65
  {
66
  "shape": [
67
  1,
68
- 2047
 
 
 
69
  ],
70
  "dtype": "int64"
71
  },
 
20
  {
21
  "shape": [
22
  1,
23
+ {
24
+ "min": 1,
25
+ "max": 2048
26
+ }
27
  ],
28
  "dtype": "int64"
29
  },
 
68
  {
69
  "shape": [
70
  1,
71
+ {
72
+ "min": 1,
73
+ "max": 2048
74
+ }
75
  ],
76
  "dtype": "int64"
77
  },
350m/mlx/config.json CHANGED
@@ -26,14 +26,36 @@
26
  "use_kv_cache": true,
27
  "use_sdpa_with_kv_cache": true,
28
  "forward": {
29
- "inputs": [],
30
- "outputs": []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
  }
33
  }
34
  ],
35
- "size": "350m",
36
- "_methods_needing_shapes": [
37
- "forward"
38
- ]
39
  }
 
26
  "use_kv_cache": true,
27
  "use_sdpa_with_kv_cache": true,
28
  "forward": {
29
+ "inputs": [
30
+ {
31
+ "name": "tokens",
32
+ "shape": [
33
+ 1,
34
+ {
35
+ "min": 1,
36
+ "max": 64
37
+ }
38
+ ],
39
+ "dtype": "int64"
40
+ }
41
+ ],
42
+ "outputs": [
43
+ {
44
+ "name": "logits",
45
+ "shape": [
46
+ 1,
47
+ {
48
+ "min": 1,
49
+ "max": 64
50
+ },
51
+ 65536
52
+ ],
53
+ "dtype": "float32"
54
+ }
55
+ ]
56
  }
57
  }
58
  }
59
  ],
60
+ "size": "350m"
 
 
 
61
  }
350m/xnnpack/config.json CHANGED
@@ -20,7 +20,10 @@
20
  {
21
  "shape": [
22
  1,
23
- 2047
 
 
 
24
  ],
25
  "dtype": "int64"
26
  },
@@ -65,7 +68,10 @@
65
  {
66
  "shape": [
67
  1,
68
- 2047
 
 
 
69
  ],
70
  "dtype": "int64"
71
  },
 
20
  {
21
  "shape": [
22
  1,
23
+ {
24
+ "min": 1,
25
+ "max": 2048
26
+ }
27
  ],
28
  "dtype": "int64"
29
  },
 
68
  {
69
  "shape": [
70
  1,
71
+ {
72
+ "min": 1,
73
+ "max": 2048
74
+ }
75
  ],
76
  "dtype": "int64"
77
  },