LFM3-ExecuTorch / vl_2b /mlx /config.json
msluszniak's picture
Add LFM3-1.7B and LFM3-VL-2B (XNNPACK 8da4w, MLX int4/int8)
09c463b verified
Raw History Blame Contribute Delete
4.04 kB
{
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
"model": "lfm3_vl_2b",
"family": "lfm3",
"capabilities": [
"vision"
],
"backend": "mlx",
"license": "lfm-1.0",
"variants": [
{
"file": "lfm_3_vl_2b_mlx_int4.pte",
"precision": "int4",
"quantized": true,
"default": true,
"methods": {
"vision_encoder": {
"inputs": [
{
"shape": [
1,
3,
512,
512
],
"dtype": "float32"
}
],
"outputs": [
{
"shape": [
1,
256,
2048
],
"dtype": "float32"
}
]
},
"token_embedding": {
"inputs": [
{
"shape": [
1,
256
],
"dtype": "int64"
}
],
"outputs": [
{
"shape": [
1,
256,
2048
],
"dtype": "float32"
}
]
},
"text_decoder": {
"inputs": [
{
"shape": [
1,
256,
2048
],
"dtype": "float32"
},
{
"shape": [
256
],
"dtype": "int64"
}
],
"outputs": [
{
"shape": [
1,
128000
],
"dtype": "float32"
}
]
},
"enable_dynamic_shape": true,
"get_bos_id": 124894,
"get_eos_ids": [
124900
],
"get_max_context_len": 8192,
"get_max_seq_len": 256,
"get_n_layers": 24,
"get_vocab_size": 128000,
"use_kv_cache": true,
"use_sdpa_with_kv_cache": true
}
},
{
"file": "lfm_3_vl_2b_mlx_int8.pte",
"precision": "int8",
"quantized": true,
"default": false,
"methods": {
"vision_encoder": {
"inputs": [
{
"shape": [
1,
3,
512,
512
],
"dtype": "float32"
}
],
"outputs": [
{
"shape": [
1,
256,
2048
],
"dtype": "float32"
}
]
},
"token_embedding": {
"inputs": [
{
"shape": [
1,
256
],
"dtype": "int64"
}
],
"outputs": [
{
"shape": [
1,
256,
2048
],
"dtype": "float32"
}
]
},
"text_decoder": {
"inputs": [
{
"shape": [
1,
256,
2048
],
"dtype": "float32"
},
{
"shape": [
256
],
"dtype": "int64"
}
],
"outputs": [
{
"shape": [
1,
128000
],
"dtype": "float32"
}
]
},
"enable_dynamic_shape": true,
"get_bos_id": 124894,
"get_eos_ids": [
124900
],
"get_max_context_len": 8192,
"get_max_seq_len": 256,
"get_n_layers": 24,
"get_vocab_size": 128000,
"use_kv_cache": true,
"use_sdpa_with_kv_cache": true
}
}
]
}