Views
No views yet
preprocessor_config.json for mlx-community/LFM2-VL-1.6B-bf16.preprocessor_config.json:image_processor_type is set to "Siglip2ImageProcessor" instead of "Lfm2VlImageProcessorFast"input_data_format is set to "channels_last" instead of nullRuntimeError: The size of tensor a (H) must match the size of tensor b (3) at non-singleton dimension 1input_data_format: "channels_last" tells the image processor the input is already in (H, W, C) format, but torchvision's normalize expects (C, H, W). When set to null, the processor auto-detects the format correctly.preprocessor_config.json:| Field | mlx-community (broken) | LiquidAI (correct) | This fix |
|---|---|---|---|
image_processor_type | Siglip2ImageProcessor | Lfm2VlImageProcessorFast | Lfm2VlImageProcessorFast |
input_data_format | "channels_last" | null | null |
1from mlx_vlm import load
2model, processor = load("mlx-community/LFM2-VL-1.6B-bf16")
3processor.image_processor.input_data_format = None