Add MLX int8 variants for 135M, 360M and 1.7B
Browse filesFiles changed (7)
- .gitattributes+3
- 135m/mlx/config.jsonAdded+61
- 135m/mlx/smollm2_135m_mlx_int8.pteAdded+3
- 1_7b/mlx/config.jsonAdded+61
- 1_7b/mlx/smollm2_1_7b_mlx_int8.pteAdded+3
- 360m/mlx/config.jsonAdded+61
- 360m/mlx/smollm2_360m_mlx_int8.pteAdded+3
48 unmodified lines49505148 unmodified lines135m/xnnpack/smollm2_135m_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text360m/xnnpack/smollm2_360m_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text1_7b/xnnpack/smollm2_1_7b_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text48 unmodified lines49505152535448 unmodified lines135m/xnnpack/smollm2_135m_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text360m/xnnpack/smollm2_360m_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text1_7b/xnnpack/smollm2_1_7b_xnnpack_8da8w.pte filter=lfs diff=lfs merge=lfs -text135m/mlx/smollm2_135m_mlx_int8.pte filter=lfs diff=lfs merge=lfs -text360m/mlx/smollm2_360m_mlx_int8.pte filter=lfs diff=lfs merge=lfs -text1_7b/mlx/smollm2_1_7b_mlx_int8.pte filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", "model": "smollm2", "family": "smollm", "capabilities": [ "text-generation" ], "backend": "mlx", "license": "apache-2.0", "variants": [ { "file": "smollm2_135m_mlx_int8.pte", "precision": "8w", "quantized": true, "default": true, "methods": { "enable_dynamic_shape": true, "forward": { "inputs": [ { "shape": [ 1, { "min": 1, "max": 2047 } ], "dtype": "int64" }, { "shape": [ 1 ], "dtype": "int64" } ], "outputs": [ { "shape": [ 1, 49152 ], "dtype": "bfloat16" } ] }, "get_bos_id": 1, "get_eos_ids": [ 2 ], "get_max_context_len": 2048, "get_max_seq_len": 2048, "get_n_layers": 30, "get_vocab_size": 49152, "use_kv_cache": true, "use_sdpa_with_kv_cache": true } } ], "size": "135m"}123version https://git-lfs.github.com/spec/v1oid sha256:6b523149edadbf5c8511fc5b7d48e5edd00f3980520414d847b5c95a80491f66size 19563084812345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", "model": "smollm2", "family": "smollm", "capabilities": [ "text-generation" ], "backend": "mlx", "license": "apache-2.0", "variants": [ { "file": "smollm2_1_7b_mlx_int8.pte", "precision": "8w", "quantized": true, "default": true, "methods": { "enable_dynamic_shape": true, "forward": { "inputs": [ { "shape": [ 1, { "min": 1, "max": 2047 } ], "dtype": "int64" }, { "shape": [ 1 ], "dtype": "int64" } ], "outputs": [ { "shape": [ 1, 49152 ], "dtype": "bfloat16" } ] }, "get_bos_id": 1, "get_eos_ids": [ 2 ], "get_max_context_len": 2048, "get_max_seq_len": 2048, "get_n_layers": 24, "get_vocab_size": 49152, "use_kv_cache": true, "use_sdpa_with_kv_cache": true } } ], "size": "1_7b"}123version https://git-lfs.github.com/spec/v1oid sha256:e591dbcd44b2c42ddd0a63746e771c0072a235d8da3b21e68ff7e3a5188d1687size 196648601612345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", "model": "smollm2", "family": "smollm", "capabilities": [ "text-generation" ], "backend": "mlx", "license": "apache-2.0", "variants": [ { "file": "smollm2_360m_mlx_int8.pte", "precision": "8w", "quantized": true, "default": true, "methods": { "enable_dynamic_shape": true, "forward": { "inputs": [ { "shape": [ 1, { "min": 1, "max": 2047 } ], "dtype": "int64" }, { "shape": [ 1 ], "dtype": "int64" } ], "outputs": [ { "shape": [ 1, 49152 ], "dtype": "bfloat16" } ] }, "get_bos_id": 1, "get_eos_ids": [ 2 ], "get_max_context_len": 2048, "get_max_seq_len": 2048, "get_n_layers": 32, "get_vocab_size": 49152, "use_kv_cache": true, "use_sdpa_with_kv_cache": true } } ], "size": "360m"}123version https://git-lfs.github.com/spec/v1oid sha256:3574e1c68f7d1becf6dff573e638e0909e884e9ea74f2d05db02ab49e67ce42dsize 467832064.gitattributes+3
135m/mlx/config.jsonAdded+61
135m/mlx/smollm2_135m_mlx_int8.pteAdded+3
1_7b/mlx/config.jsonAdded+61
1_7b/mlx/smollm2_1_7b_mlx_int8.pteAdded+3
360m/mlx/config.jsonAdded+61
360m/mlx/smollm2_360m_mlx_int8.pteAdded+3