Add MLX int8 variants for 135M, 360M and 1.7B
Browse files- .gitattributes +3 -0
- 135m/mlx/config.json +61 -0
- 135m/mlx/smollm2_135m_mlx_int8.pte +3 -0
- 1_7b/mlx/config.json +61 -0
- 1_7b/mlx/smollm2_1_7b_mlx_int8.pte +3 -0
- 360m/mlx/config.json +61 -0
- 360m/mlx/smollm2_360m_mlx_int8.pte +3 -0
.gitattributes
CHANGED
|
@@ -49,3 +49,6 @@ smolLm-2-1.7B/quantized/smolLm2_1_7B_8da4w.pte filter=lfs diff=lfs merge=lfs -te
|
|
| 49 |
135m/xnnpack/smollm2_135m_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text
|
| 50 |
360m/xnnpack/smollm2_360m_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text
|
| 51 |
1_7b/xnnpack/smollm2_1_7b_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
135m/xnnpack/smollm2_135m_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text
|
| 50 |
360m/xnnpack/smollm2_360m_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text
|
| 51 |
1_7b/xnnpack/smollm2_1_7b_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
135m/mlx/smollm2_135m_mlx_int8.pte filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
360m/mlx/smollm2_360m_mlx_int8.pte filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
1_7b/mlx/smollm2_1_7b_mlx_int8.pte filter=lfs diff=lfs merge=lfs -text
|
135m/mlx/config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
+
"model": "smollm2",
|
| 4 |
+
"family": "smollm",
|
| 5 |
+
"capabilities": [
|
| 6 |
+
"text-generation"
|
| 7 |
+
],
|
| 8 |
+
"backend": "mlx",
|
| 9 |
+
"license": "apache-2.0",
|
| 10 |
+
"variants": [
|
| 11 |
+
{
|
| 12 |
+
"file": "smollm2_135m_mlx_int8.pte",
|
| 13 |
+
"precision": "8w",
|
| 14 |
+
"quantized": true,
|
| 15 |
+
"default": true,
|
| 16 |
+
"methods": {
|
| 17 |
+
"enable_dynamic_shape": true,
|
| 18 |
+
"forward": {
|
| 19 |
+
"inputs": [
|
| 20 |
+
{
|
| 21 |
+
"shape": [
|
| 22 |
+
1,
|
| 23 |
+
{
|
| 24 |
+
"min": 1,
|
| 25 |
+
"max": 2047
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"dtype": "int64"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"shape": [
|
| 32 |
+
1
|
| 33 |
+
],
|
| 34 |
+
"dtype": "int64"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"outputs": [
|
| 38 |
+
{
|
| 39 |
+
"shape": [
|
| 40 |
+
1,
|
| 41 |
+
49152
|
| 42 |
+
],
|
| 43 |
+
"dtype": "bfloat16"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"get_bos_id": 1,
|
| 48 |
+
"get_eos_ids": [
|
| 49 |
+
2
|
| 50 |
+
],
|
| 51 |
+
"get_max_context_len": 2048,
|
| 52 |
+
"get_max_seq_len": 2048,
|
| 53 |
+
"get_n_layers": 30,
|
| 54 |
+
"get_vocab_size": 49152,
|
| 55 |
+
"use_kv_cache": true,
|
| 56 |
+
"use_sdpa_with_kv_cache": true
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"size": "135m"
|
| 61 |
+
}
|
135m/mlx/smollm2_135m_mlx_int8.pte
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b523149edadbf5c8511fc5b7d48e5edd00f3980520414d847b5c95a80491f66
|
| 3 |
+
size 195630848
|
1_7b/mlx/config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
+
"model": "smollm2",
|
| 4 |
+
"family": "smollm",
|
| 5 |
+
"capabilities": [
|
| 6 |
+
"text-generation"
|
| 7 |
+
],
|
| 8 |
+
"backend": "mlx",
|
| 9 |
+
"license": "apache-2.0",
|
| 10 |
+
"variants": [
|
| 11 |
+
{
|
| 12 |
+
"file": "smollm2_1_7b_mlx_int8.pte",
|
| 13 |
+
"precision": "8w",
|
| 14 |
+
"quantized": true,
|
| 15 |
+
"default": true,
|
| 16 |
+
"methods": {
|
| 17 |
+
"enable_dynamic_shape": true,
|
| 18 |
+
"forward": {
|
| 19 |
+
"inputs": [
|
| 20 |
+
{
|
| 21 |
+
"shape": [
|
| 22 |
+
1,
|
| 23 |
+
{
|
| 24 |
+
"min": 1,
|
| 25 |
+
"max": 2047
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"dtype": "int64"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"shape": [
|
| 32 |
+
1
|
| 33 |
+
],
|
| 34 |
+
"dtype": "int64"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"outputs": [
|
| 38 |
+
{
|
| 39 |
+
"shape": [
|
| 40 |
+
1,
|
| 41 |
+
49152
|
| 42 |
+
],
|
| 43 |
+
"dtype": "bfloat16"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"get_bos_id": 1,
|
| 48 |
+
"get_eos_ids": [
|
| 49 |
+
2
|
| 50 |
+
],
|
| 51 |
+
"get_max_context_len": 2048,
|
| 52 |
+
"get_max_seq_len": 2048,
|
| 53 |
+
"get_n_layers": 24,
|
| 54 |
+
"get_vocab_size": 49152,
|
| 55 |
+
"use_kv_cache": true,
|
| 56 |
+
"use_sdpa_with_kv_cache": true
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"size": "1_7b"
|
| 61 |
+
}
|
1_7b/mlx/smollm2_1_7b_mlx_int8.pte
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e591dbcd44b2c42ddd0a63746e771c0072a235d8da3b21e68ff7e3a5188d1687
|
| 3 |
+
size 1966486016
|
360m/mlx/config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
+
"model": "smollm2",
|
| 4 |
+
"family": "smollm",
|
| 5 |
+
"capabilities": [
|
| 6 |
+
"text-generation"
|
| 7 |
+
],
|
| 8 |
+
"backend": "mlx",
|
| 9 |
+
"license": "apache-2.0",
|
| 10 |
+
"variants": [
|
| 11 |
+
{
|
| 12 |
+
"file": "smollm2_360m_mlx_int8.pte",
|
| 13 |
+
"precision": "8w",
|
| 14 |
+
"quantized": true,
|
| 15 |
+
"default": true,
|
| 16 |
+
"methods": {
|
| 17 |
+
"enable_dynamic_shape": true,
|
| 18 |
+
"forward": {
|
| 19 |
+
"inputs": [
|
| 20 |
+
{
|
| 21 |
+
"shape": [
|
| 22 |
+
1,
|
| 23 |
+
{
|
| 24 |
+
"min": 1,
|
| 25 |
+
"max": 2047
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"dtype": "int64"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"shape": [
|
| 32 |
+
1
|
| 33 |
+
],
|
| 34 |
+
"dtype": "int64"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"outputs": [
|
| 38 |
+
{
|
| 39 |
+
"shape": [
|
| 40 |
+
1,
|
| 41 |
+
49152
|
| 42 |
+
],
|
| 43 |
+
"dtype": "bfloat16"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"get_bos_id": 1,
|
| 48 |
+
"get_eos_ids": [
|
| 49 |
+
2
|
| 50 |
+
],
|
| 51 |
+
"get_max_context_len": 2048,
|
| 52 |
+
"get_max_seq_len": 2048,
|
| 53 |
+
"get_n_layers": 32,
|
| 54 |
+
"get_vocab_size": 49152,
|
| 55 |
+
"use_kv_cache": true,
|
| 56 |
+
"use_sdpa_with_kv_cache": true
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"size": "360m"
|
| 61 |
+
}
|
360m/mlx/smollm2_360m_mlx_int8.pte
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3574e1c68f7d1becf6dff573e638e0909e884e9ea74f2d05db02ab49e67ce42d
|
| 3 |
+
size 467832064
|