Re-export the 8da4w text variants at the sweep's group size
Browse filesThe published 8da4w files predate the quantization sweep: they carry no quantized embedding table, which is why they are ~176 MB larger than these.
- 350m: group_size 32, embedding_quantize 8,32
- 1_2b: group_size 32, embedding_quantize 8,0
Also fixes the export emitting bf16 logits: the published artifacts and every config declare float32, and the quantized branch was overriding the dtype to bf16, so any re-export silently changed the output contract.
Configs gain get_n_layers (16), which was null in all four. The fp16 and MLX variants are untouched. Both .pte were probed against their config and match.
Files changed (6)
12345672 unmodified lines10111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "lfm_2_5","family": "lfm","capabilities": ["text-generation"],2 unmodified lines"variants": [{"file": "lfm_2_5_1_2b_mlx_int4.pte","precision": "int4","quantized": true,"default": true,"methods": {"enable_dynamic_shape": true,"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 65,"get_n_layers": null,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true,"forward": {"inputs": [{"name": "tokens","shape": [1,{"min": 1,"max": 64}],"dtype": "int64"}],"outputs": [{"name": "logits","shape": [1,{"min": 1,"max": 64},65536],"dtype": "float32"}]}}}],"size": "1_2b"}12345672 unmodified lines101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "lfm2_5_text_1_2b","family": "lfm2","capabilities": ["text-generation"],2 unmodified lines"variants": [{"file": "lfm_2_5_1_2b_mlx_int4.pte","precision": "4w","quantized": true,"default": true,"methods": {"forward": {"inputs": [{"shape": [1,64],"dtype": "int64"},{"shape": [1],"dtype": "int64"}],"outputs": [{"shape": [1,65536],"dtype": "bfloat16"}]},"enable_dynamic_shape": true,"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 65,"get_n_layers": 16,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true}}]}
12345671 unmodified line9101112131415161718192021222324252627282910 unmodified lines404142434445464748495051525354555657585960616263646566676869707172737475767710 unmodified lines888990919293949596979899100101102103104105106107108109{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "lfm_2_5","family": "lfm","capabilities": ["text-generation"],1 unmodified line"license": "lfm-1.0","variants": [{"file": "lfm_2_5_1_2b_xnnpack_fp16.pte","precision": "fp16","quantized": false,"default": true,"methods": {"enable_dynamic_shape": true,"forward": {"inputs": [{"shape": [1,{"min": 1,"max": 2048}],"dtype": "int64"},10 unmodified lines1,65536],"dtype": "float16"}]},"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 2048,"get_n_layers": null,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true}},{"file": "lfm_2_5_1_2b_xnnpack_8da4w.pte","precision": "8da4w","quantized": true,"default": true,"methods": {"enable_dynamic_shape": true,"forward": {"inputs": [{"shape": [1,{"min": 1,"max": 2048}],"dtype": "int64"},10 unmodified lines1,65536],"dtype": "float32"}]},"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 2048,"get_n_layers": null,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true}}],"size": "1_2b"}12345671 unmodified line91011121314151617181920212223242510 unmodified lines363738394041424344454647484950515253545556575859606162636465666768697010 unmodified lines81828384858687888990919293949596979899100101102{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "lfm2_5_text_1_2b","family": "lfm2","capabilities": ["text-generation"],1 unmodified line"license": "lfm-1.0","variants": [{"file": "lfm_2_5_1_2b_xnnpack_8da4w.pte","precision": "8da4w","quantized": true,"default": true,"methods": {"forward": {"inputs": [{"shape": [1,2047],"dtype": "int64"},10 unmodified lines1,65536],"dtype": "float32"}]},"enable_dynamic_shape": true,"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 2048,"get_n_layers": 16,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true}},{"file": "lfm_2_5_1_2b_xnnpack_fp16.pte","precision": "fp16","quantized": false,"default": false,"methods": {"forward": {"inputs": [{"shape": [1,2047],"dtype": "int64"},10 unmodified lines1,65536],"dtype": "float16"}]},"enable_dynamic_shape": true,"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 2048,"get_n_layers": 16,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true}}]}
123version https://git-lfs.github.com/spec/v1oid sha256:9c41fb45d1892e181fdb141e3c5696cdc54f29b3ea962ce786a804696505d5b8size 1143218176123version https://git-lfs.github.com/spec/v1oid sha256:69b9d1d7f7d576e124ba052e88277b3ad220d3f3a91dcb9506f3ec7735eb1e09size 795679104
12345672 unmodified lines10111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "lfm_2_5","family": "lfm","capabilities": ["text-generation"],2 unmodified lines"variants": [{"file": "lfm_2_5_350m_mlx_int4.pte","precision": "int4","quantized": true,"default": true,"methods": {"enable_dynamic_shape": true,"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 65,"get_n_layers": null,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true,"forward": {"inputs": [{"name": "tokens","shape": [1,{"min": 1,"max": 64}],"dtype": "int64"}],"outputs": [{"name": "logits","shape": [1,{"min": 1,"max": 64},65536],"dtype": "float32"}]}}}],"size": "350m"}12345672 unmodified lines101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "lfm2_5_text_350m","family": "lfm2","capabilities": ["text-generation"],2 unmodified lines"variants": [{"file": "lfm_2_5_350m_mlx_int4.pte","precision": "4w","quantized": true,"default": true,"methods": {"forward": {"inputs": [{"shape": [1,64],"dtype": "int64"},{"shape": [1],"dtype": "int64"}],"outputs": [{"shape": [1,65536],"dtype": "bfloat16"}]},"enable_dynamic_shape": true,"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 65,"get_n_layers": 16,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true}}]}
12345676 unmodified lines1415161718192021222324252627282914 unmodified lines444546474849505152535455563 unmodified lines60616263646566676869707172737475767714 unmodified lines9293949596979899100101102103104105106107108109{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "lfm_2_5","family": "lfm","capabilities": ["text-generation"],6 unmodified lines"quantized": true,"default": true,"methods": {"enable_dynamic_shape": true,"forward": {"inputs": [{"shape": [1,{"min": 1,"max": 2048}],"dtype": "int64"},14 unmodified lines}]},"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 2048,"get_n_layers": null,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true3 unmodified lines"file": "lfm_2_5_350m_xnnpack_fp16.pte","precision": "fp16","quantized": false,"default": true,"methods": {"enable_dynamic_shape": true,"forward": {"inputs": [{"shape": [1,{"min": 1,"max": 2048}],"dtype": "int64"},14 unmodified lines}]},"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 2048,"get_n_layers": null,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true}}],"size": "350m"}12345676 unmodified lines14151617181920212223242514 unmodified lines40414243444546474849505152533 unmodified lines575859606162636465666768697014 unmodified lines858687888990919293949596979899100101102{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "lfm2_5_text_350m","family": "lfm2","capabilities": ["text-generation"],6 unmodified lines"quantized": true,"default": true,"methods": {"forward": {"inputs": [{"shape": [1,2047],"dtype": "int64"},14 unmodified lines}]},"enable_dynamic_shape": true,"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 2048,"get_n_layers": 16,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true3 unmodified lines"file": "lfm_2_5_350m_xnnpack_fp16.pte","precision": "fp16","quantized": false,"default": false,"methods": {"forward": {"inputs": [{"shape": [1,2047],"dtype": "int64"},14 unmodified lines}]},"enable_dynamic_shape": true,"get_bos_id": 1,"get_eos_ids": [7],"get_max_context_len": 2048,"get_max_seq_len": 2048,"get_n_layers": 16,"get_vocab_size": 65536,"use_kv_cache": true,"use_sdpa_with_kv_cache": true}}]}
123version https://git-lfs.github.com/spec/v1oid sha256:32b2a8f2b0af07e5040ddef77a03dbe4bef131b513491ed885956b4c81af340fsize 453885568123version https://git-lfs.github.com/spec/v1oid sha256:e8c38e0d933932b02dddbcf92df813045899d0f71bf5346dbceecf5c4078f05dsize 277555584
1_2b/mlx/config.json+24-28
1_2b/xnnpack/config.json+18-25
1_2b/xnnpack/lfm_2_5_1_2b_xnnpack_8da4w.pte+2-2
350m/mlx/config.json+24-28
350m/xnnpack/config.json+10-17
350m/xnnpack/lfm_2_5_350m_xnnpack_8da4w.pte+2-2